Skip to content

Commit 9ec1f60

Browse files
committed
Fix regression: Setting eflags within the hook should take effect
This add an extra compute_eflags after the hooks
1 parent f78a3f2 commit 9ec1f60

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

qemu/target/i386/translate.c

+3
Original file line numberDiff line numberDiff line change
@@ -4834,6 +4834,9 @@ static target_ulong disas_insn(DisasContext *s, CPUState *cpu)
48344834
gen_uc_tracecode(tcg_ctx, 0xf1f1f1f1, UC_HOOK_CODE_IDX, env->uc, pc_start);
48354835

48364836
check_exit_request(tcg_ctx);
4837+
4838+
// Unicorn: Previous hook might change eflags to any state, let's sync it
4839+
gen_compute_eflags(s);
48374840
}
48384841

48394842
s->override = -1;

0 commit comments

Comments
 (0)