From 4e47e39ab0ded72c0af174131ecf49d588d66c12 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Mon, 24 Feb 2014 14:59:54 -0800 Subject: 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 Reviewed-by: Paolo Bonzini Signed-off-by: Richard Henderson --- target-i386/gdbstub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target-i386/gdbstub.c') 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; } } -- cgit v1.2.3