Zenfone 2 workaround for emulation freeze bug
This commit is contained in:
parent
e0cc0d749a
commit
d58d58fcfc
2 changed files with 10 additions and 2 deletions
|
@ -112,6 +112,8 @@ static word_20 jumpmasks[] = {
|
||||||
0xffff0000, 0xfff00000, 0xff000000, 0xf0000000
|
0xffff0000, 0xfff00000, 0xff000000, 0xf0000000
|
||||||
};
|
};
|
||||||
|
|
||||||
|
int check_out_register();
|
||||||
|
|
||||||
int
|
int
|
||||||
#ifdef __FunctionProto__
|
#ifdef __FunctionProto__
|
||||||
decode_group_80(void)
|
decode_group_80(void)
|
||||||
|
@ -694,7 +696,7 @@ decode_group_1()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
inline int
|
int
|
||||||
#ifdef __FunctionProto__
|
#ifdef __FunctionProto__
|
||||||
decode_8_thru_f(int op1)
|
decode_8_thru_f(int op1)
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -630,6 +630,12 @@ GetEvent()
|
||||||
int code = (*android_env)->CallIntMethod(android_env, android_callback, waitEvent);
|
int code = (*android_env)->CallIntMethod(android_env, android_callback, waitEvent);
|
||||||
|
|
||||||
//LOGI("code: %d", code);
|
//LOGI("code: %d", code);
|
||||||
|
//FIX for Zenfone 2
|
||||||
|
struct timespec req, rem;
|
||||||
|
req.tv_sec = 0;
|
||||||
|
req.tv_nsec = 100L;
|
||||||
|
nanosleep(&req , &rem);
|
||||||
|
|
||||||
if (code < 0)
|
if (code < 0)
|
||||||
{
|
{
|
||||||
code = -code;
|
code = -code;
|
||||||
|
|
Loading…
Reference in a new issue