在 2022/1/8 上午4:48, Richard Henderson 写道:
On 1/7/22 3:27 AM, Weiwei Li wrote:
@@ -342,6 +342,11 @@ static void mark_fs_dirty(DisasContext *ctx)
{
TCGv tmp;
+ /* hardwire mstatus.FS to zero when enable zfinx */
+ if (ctx->ext_zfinx) {
+ return;
+ }
+
if (ctx->msta
On 1/7/22 3:27 AM, Weiwei Li wrote:
@@ -342,6 +342,11 @@ static void mark_fs_dirty(DisasContext *ctx)
{
TCGv tmp;
+/* hardwire mstatus.FS to zero when enable zfinx */
+if (ctx->ext_zfinx) {
+return;
+}
+
if (ctx->mstatus_fs != MSTATUS_FS) {
This should also
Co-authored-by: ardxwe
Signed-off-by: Weiwei Li
Signed-off-by: Junqiang Wang
---
target/riscv/cpu_helper.c | 6 +-
target/riscv/csr.c| 21 -
target/riscv/translate.c | 5 +
3 files changed, 26 insertions(+), 6 deletions(-)
diff --git a/target/riscv/cpu_he