aboutsummaryrefslogtreecommitdiff
path: root/target-i386/gdbstub.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2014-02-24 14:59:54 -0800
committerRichard Henderson <rth@twiddle.net>2014-02-28 08:44:01 -0800
commit4e47e39ab0ded72c0af174131ecf49d588d66c12 (patch)
tree678d24cda64ee50b354571babe8eca5806529201 /target-i386/gdbstub.c
parentd2fe51bda8adf33d07c21e034fdc13a1e1fa4e19 (diff)
target-i386: Fix SSE status flag corruption
When we restore the mxcsr register with FXRSTOR, or set it with gdb, we need to update the various SSE status flags in CPUX86State Reported-by: Richard Purdie <richard.purdie@linuxfoundation.org> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target-i386/gdbstub.c')
-rw-r--r--target-i386/gdbstub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-i386/gdbstub.c b/target-i386/gdbstub.c
index 15bebeff89..d34e5355f7 100644
--- a/target-i386/gdbstub.c
+++ b/target-i386/gdbstub.c
@@ -222,7 +222,7 @@ int x86_cpu_gdb_write_register(CPUState *cs, uint8_t *mem_buf, int n)
return 4;
case IDX_MXCSR_REG:
- env->mxcsr = ldl_p(mem_buf);
+ cpu_set_mxcsr(env, ldl_p(mem_buf));
return 4;
}
}