|
From: | Weiwei Li |
Subject: | Re: [PATCH v3 2/6] target/riscv: hardwire mstatus.FS to zero when enable zfinx |
Date: | Sat, 8 Jan 2022 09:17:19 +0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 |
在 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~
[Prev in Thread] | Current Thread | [Next in Thread] |