mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
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>
This commit is contained in:
parent
9514fc72d0
commit
e0b343b5fa
2 changed files with 10 additions and 3 deletions
|
@ -19,9 +19,10 @@
|
|||
*/
|
||||
|
||||
#define REQUIRE_FPU do {\
|
||||
if (ctx->mstatus_fs == EXT_STATUS_DISABLED) \
|
||||
if (!ctx->cfg_ptr->ext_zfinx) \
|
||||
return false; \
|
||||
if (ctx->mstatus_fs == EXT_STATUS_DISABLED) { \
|
||||
ctx->virt_inst_excp = ctx->virt_enabled && ctx->cfg_ptr->ext_zfinx; \
|
||||
return false; \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#define REQUIRE_ZFINX_OR_F(ctx) do {\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue