OSDN Git Service

target/i386: Split out do_fsave, do_frstor, do_fxsave, do_fxrstor
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 22 Mar 2021 13:27:39 +0000 (14:27 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 10 May 2021 19:41:49 +0000 (15:41 -0400)
commit0ac2b197430ebf19b5575ea48fe3b76d62110ab9
treef878c10bd9a8fa897cfc79a2b8c85ef87db0f90f
parente3a69234540d40b12c7d8f242fd8e21aadc2b81f
target/i386: Split out do_fsave, do_frstor, do_fxsave, do_fxrstor

The helper_* functions must use GETPC() to unwind from TCG.
The cpu_x86_* functions cannot, and directly calling the
helper_* functions is a bug.  Split out new functions that
perform the work and can be used by both.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Claudio Fontana <cfontana@suse.de>
Tested-by: Claudio Fontana <cfontana@suse.de>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210322132800.7470-4-cfontana@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/tcg/fpu_helper.c