]> www.infradead.org Git - users/dwmw2/qemu.git/commit
target/loongarch: Remove cpu_fcsr0
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 6 Aug 2022 17:04:44 +0000 (10:04 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 9 Aug 2022 02:42:53 +0000 (19:42 -0700)
commit10dcb08b03863221faa41f4f1aa835cdca441b96
treec4945ccad293e7454842baeea9d57749c8561164
parent7b06148df8a22d984e77e796322aeb5901dc653c
target/loongarch: Remove cpu_fcsr0

All of the fpu operations are defined with TCG_CALL_NO_WG, but they
all modify FCSR0.  The most efficient way to fix this is to remove
cpu_fcsr0, and instead use explicit load and store operations for the
two instructions that manipulate that value.

Acked-by: Qi Hu <huqi@loongson.cn>
Reviewed-by: Song Gao <gaosong@loongson.cn>
Reported-by: Feiyang Chen <chenfeiyang@loongson.cn>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/loongarch/fpu_helper.c
target/loongarch/helper.h
target/loongarch/insn_trans/trans_fmov.c.inc
target/loongarch/translate.c
tests/tcg/loongarch64/Makefile.target
tests/tcg/loongarch64/test_fcsr.c [new file with mode: 0644]