|
From: | Richard Henderson |
Subject: | Re: [PATCH v3 2/6] target/riscv: hardwire mstatus.FS to zero when enable zfinx |
Date: | Fri, 7 Jan 2022 12:48:23 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 |
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.
r~
[Prev in Thread] | Current Thread | [Next in Thread] |