x86: properly calculate EFLAGS when UC_HOOK_CODE is used. this should fix issue #246

This commit is contained in:
Nguyen Anh Quynh
2015-11-05 20:26:39 +08:00
parent 95745eff3b
commit 51323c9c17
4 changed files with 7 additions and 7 deletions

View File

@ -1141,4 +1141,5 @@ void x86_cpu_exec_exit(CPUState *cs)
CPUX86State *env = &cpu->env;
env->eflags = cpu_compute_eflags(env);
env->eflags0 = env->eflags;
}