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

@@ -328,12 +328,7 @@ void helper_write_eflags(CPUX86State *env, target_ulong t0,
target_ulong helper_read_eflags(CPUX86State *env)
{
uint32_t eflags;
eflags = cpu_cc_compute_all(env, CC_OP);
eflags |= (env->df & DF_MASK);
eflags |= env->eflags & ~(VM_MASK | RF_MASK);
return eflags;
return cpu_compute_eflags(env);
}
void helper_clts(CPUX86State *env)