在 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->mstatus_fs != MSTATUS_FS) {

This should also test RVF.

Finally, there needs to be a change to write_misa -- MSTATUS_FS needs to be cleared when RVF is disabled.


OK. I'll update this.
r~


Reply via email to