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/cpu.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'target-i386/cpu.h') diff --git a/target-i386/cpu.h b/target-i386/cpu.h index 1b94f0ffb7..5d3f143075 100644 --- a/target-i386/cpu.h +++ b/target-i386/cpu.h @@ -1259,6 +1259,9 @@ static inline void cpu_load_efer(CPUX86State *env, uint64_t val) } } +/* fpu_helper.c */ +void cpu_set_mxcsr(CPUX86State *env, uint32_t val); + /* svm_helper.c */ void cpu_svm_check_intercept_param(CPUX86State *env1, uint32_t type, uint64_t param); -- cgit v1.2.1