qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] target/loongarch: Remove cpu_fcsr0


From: gaosong
Subject: Re: [PATCH] target/loongarch: Remove cpu_fcsr0
Date: Mon, 8 Aug 2022 09:23:00 +0800
User-agent: Mozilla/5.0 (X11; Linux loongarch64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0


On 2022/8/7 上午1:08, Richard Henderson wrote:
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.

Cc: Qi Hu<huqi@loongson.cn>
Cc: Song Gao<gaosong@loongson.cn>
Reported-by: Feiyang Chen<chenfeiyang@loongson.cn>
Signed-off-by: Richard Henderson<richard.henderson@linaro.org>
---
  target/loongarch/helper.h                    |  2 +-
  target/loongarch/fpu_helper.c                |  4 +--
  target/loongarch/translate.c                 |  3 --
  tests/tcg/loongarch64/test_fcsr.c            | 15 +++++++++
  target/loongarch/insn_trans/trans_fmov.c.inc | 33 ++++++++++----------
  tests/tcg/loongarch64/Makefile.target        |  1 +
  6 files changed, 36 insertions(+), 22 deletions(-)
  create mode 100644 tests/tcg/loongarch64/test_fcsr.c
Reviewed-by: Song Gao <gaosong@loongson.cn>

Thanks.
Song Gao




reply via email to

[Prev in Thread] Current Thread [Next in Thread]