summaryrefslogtreecommitdiffstats
path: root/target-i386/helper.c
diff options
context:
space:
mode:
authorRichard Henderson2013-03-19 20:11:56 +0100
committerBlue Swirl2013-03-23 15:30:12 +0100
commit4980ef9e3e12be3b4ef9092abc2d5a665199b422 (patch)
treed28f3ed87b87b23c6ca7ac014d53b426f5d9913a /target-i386/helper.c
parenttarget-i386: Fix flags computation for ADOX (diff)
downloadqemu-4980ef9e3e12be3b4ef9092abc2d5a665199b422.tar.gz
qemu-4980ef9e3e12be3b4ef9092abc2d5a665199b422.tar.xz
qemu-4980ef9e3e12be3b4ef9092abc2d5a665199b422.zip
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 'target-i386/helper.c')
-rw-r--r--target-i386/helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-i386/helper.c b/target-i386/helper.c
index 9449a0c49d..282494fcad 100644
--- a/target-i386/helper.c
+++ b/target-i386/helper.c
@@ -189,7 +189,7 @@ void cpu_dump_state(CPUX86State *env, FILE *f, fprintf_function cpu_fprintf,
cpu_synchronize_state(env);
- eflags = env->eflags;
+ eflags = cpu_compute_eflags(env);
#ifdef TARGET_X86_64
if (env->hflags & HF_CS64_MASK) {
cpu_fprintf(f,