aboutsummaryrefslogtreecommitdiff
path: root/cpu-exec.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2013-03-19 12:11:56 -0700
committerBlue Swirl <blauwirbel@gmail.com>2013-03-23 14:30:12 +0000
commit4980ef9e3e12be3b4ef9092abc2d5a665199b422 (patch)
treed28f3ed87b87b23c6ca7ac014d53b426f5d9913a /cpu-exec.c
parentc53de1a2896ccc9ab18bb9c2f1a2f7b93629b564 (diff)
downloadqemu-arm-4980ef9e3e12be3b4ef9092abc2d5a665199b422.tar.gz
target-i386: Don't modify env->eflags around cpu_dump_state
We can compute the value in cpu_dump_state anyway, and gratuitous modifications to eflags creates heisenbugs. Cc: Blue Swirl <blauwirbel@gmail.com> Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'cpu-exec.c')
-rw-r--r--cpu-exec.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/cpu-exec.c b/cpu-exec.c
index b87c1c07c6..e74e55656a 100644
--- a/cpu-exec.c
+++ b/cpu-exec.c
@@ -571,10 +571,7 @@ int cpu_exec(CPUArchState *env)
if (qemu_loglevel_mask(CPU_LOG_TB_CPU)) {
/* restore flags in standard format */
#if defined(TARGET_I386)
- env->eflags = env->eflags | cpu_cc_compute_all(env, CC_OP)
- | (DF & DF_MASK);
log_cpu_state(env, CPU_DUMP_CCOP);
- env->eflags &= ~(DF_MASK | CC_O | CC_S | CC_Z | CC_A | CC_P | CC_C);
#elif defined(TARGET_M68K)
cpu_m68k_flush_flags(env, env->cc_op);
env->cc_op = CC_OP_FLAGS;