OSDN Git Service

target/riscv: Reuse tb->flags.FS
authorMayuresh Chitale <mchitale@ventanamicro.com>
Thu, 18 May 2023 17:50:57 +0000 (23:20 +0530)
committerAlistair Francis <alistair.francis@wdc.com>
Tue, 13 Jun 2023 07:24:00 +0000 (17:24 +1000)
commite0b343b5fa493f273e0e6d98d632b4360ebd6def
tree2c823e17a1229dcb6d01816bb366468a8a56dcc8
parent9514fc72d0b92a973297fea0c82d64232a64d127
target/riscv: Reuse tb->flags.FS

When misa.F is 0 tb->flags.FS field is unused and can be used to save
the current state of smstateen0.FCSR check which is needed by the
floating point translation routines.

Signed-off-by: Mayuresh Chitale <mchitale@ventanamicro.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Weiwei Li <liweiwei@iscas.ac.cn>
Message-Id: <20230518175058.2772506-3-mchitale@ventanamicro.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/cpu_helper.c
target/riscv/insn_trans/trans_rvf.c.inc