From 70da2485fcde5b1fb488f91496af190197725651 Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Wed, 6 Apr 2016 09:36:06 +0800 Subject: [PATCH] x86: comment out restore_eflags() because it breaks some executions. see #505 --- qemu/target-i386/translate.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qemu/target-i386/translate.c b/qemu/target-i386/translate.c index e78ff694..e176c417 100644 --- a/qemu/target-i386/translate.c +++ b/qemu/target-i386/translate.c @@ -4721,6 +4721,7 @@ static void sync_eflags(DisasContext *s, TCGContext *tcg_ctx) tcg_gen_st_tl(tcg_ctx, *cpu_T[0], cpu_env, offsetof(CPUX86State, eflags)); } +/* static void restore_eflags(DisasContext *s, TCGContext *tcg_ctx) { TCGv **cpu_T = (TCGv **)tcg_ctx->cpu_T; @@ -4731,6 +4732,7 @@ static void restore_eflags(DisasContext *s, TCGContext *tcg_ctx) tcg_const_i32(tcg_ctx, (TF_MASK | AC_MASK | ID_MASK | NT_MASK) & 0xffff)); set_cc_op(s, CC_OP_EFLAGS); } +*/ /* convert one instruction. s->is_jmp is set if the translation must be stopped. Return the next pc value */