OSDN Git Service

target/arm/vfp_helper: Call set_fpscr_to_host before updating to FPSCR
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Mon, 8 Jul 2019 13:11:31 +0000 (14:11 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 8 Jul 2019 13:11:31 +0000 (14:11 +0100)
commit85795187f416326f87177cabc39fae1911f04c50
treee8ba4903432b7205cc46ee69593869ea78326566
parentc8ead5712486edb5058475fdef2c616857f5056f
target/arm/vfp_helper: Call set_fpscr_to_host before updating to FPSCR

In commit e9d652824b0 we extracted the vfp_set_fpscr_to_host()
function but failed at calling it in the correct place, we call
it after xregs[ARM_VFP_FPSCR] is modified.

Fix by calling this function before we update FPSCR.

Reported-by: Laurent Desnogues <laurent.desnogues@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Laurent Desnogues <laurent.desnogues@gmail.com>
Tested-by: Laurent Desnogues <laurent.desnogues@gmail.com>
Message-id: 20190705124318.1075-1-philmd@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/vfp_helper.c