mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
target/riscv: hardwire mstatus.FS to zero when enable zfinx
Co-authored-by: ardxwe <ardxwe@gmail.com> Signed-off-by: Weiwei Li <liweiwei@iscas.ac.cn> Signed-off-by: Junqiang Wang <wangjunqiang@iscas.ac.cn> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-Id: <20220211043920.28981-3-liweiwei@iscas.ac.cn> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
89ffdcec27
commit
c163b3baf9
3 changed files with 29 additions and 6 deletions
|
@ -426,6 +426,10 @@ static void mark_fs_dirty(DisasContext *ctx)
|
|||
{
|
||||
TCGv tmp;
|
||||
|
||||
if (!has_ext(ctx, RVF)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (ctx->mstatus_fs != MSTATUS_FS) {
|
||||
/* Remember the state change for the rest of the TB. */
|
||||
ctx->mstatus_fs = MSTATUS_FS;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue