]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
target-i386: update fp status fix
authorPavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
Wed, 17 Sep 2014 08:05:19 +0000 (12:05 +0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 18 Sep 2014 15:06:12 +0000 (17:06 +0200)
commit5bde14078d181439a1170094d7774372242ab739
tree99535a4249042c14262d08f32569c424a7fd7621
parent7dbb4c49bfa60b92251a97ddda2c3cdace6b73e4
target-i386: update fp status fix

This patch introduces cpu_set_fpuc() function, which changes fpuc field
of the CPU state and calls update_fp_status() function.
These calls update status of softfloat library and prevent bugs caused
by non-coherent rounding settings of the FPU and softfloat.

v2 changes:
 * Added missed calls and intoduced setter function (as suggested by TeLeMan)

Reviewed-by: TeLeMan <geleman@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
target-i386/cpu.c
target-i386/cpu.h
target-i386/fpu_helper.c
target-i386/gdbstub.c
target-i386/machine.c