|
From: | Richard Henderson |
Subject: | Re: [RFC PATCH 2/4] target/riscv: Add fcsr field in tb->flags |
Date: | Mon, 10 Apr 2023 18:47:11 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 |
On 4/10/23 07:13, Mayuresh Chitale wrote:
The state of smstateen0.FCSR bit impacts the execution of floating point instructions when misa.F==0. Add a field in the tb->flags which stores the current state of smstateen0.fcsr and will be used by floating point translation routines.
Are you certain that you require a new bit?Could the same effect be achieved by forcing one or more of the existing TB_FLAGS.{FS,HS_FS} fields to 0 within cpu_get_tb_cpu_state? I.e. for the purposes of translation, pretend the FS state is DISABLED?
These bits are scarce, are we are nearly out. r~
[Prev in Thread] | Current Thread | [Next in Thread] |