target-i386: Fix SSE status flag corruption
authorRichard Henderson <rth@twiddle.net>
Mon, 24 Feb 2014 22:59:54 +0000 (14:59 -0800)
committerRichard Henderson <rth@twiddle.net>
Fri, 28 Feb 2014 16:44:01 +0000 (08:44 -0800)
commit4e47e39ab0ded72c0af174131ecf49d588d66c12
tree678d24cda64ee50b354571babe8eca5806529201
parentd2fe51bda8adf33d07c21e034fdc13a1e1fa4e19
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>
target-i386/cpu.h
target-i386/fpu_helper.c
target-i386/gdbstub.c