mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
target/riscv: Check svukte is not enabled in RV32
The spec explicitly says svukte doesn't support RV32. So check that it is not enabled in RV32. Signed-off-by: Fea.Wang <fea.wang@sifive.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-ID: <20241203034932.25185-7-fea.wang@sifive.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
093c613cb6
commit
19d476ff13
1 changed files with 5 additions and 0 deletions
|
@ -652,6 +652,11 @@ void riscv_cpu_validate_set_extensions(RISCVCPU *cpu, Error **errp)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mcc->misa_mxl_max == MXL_RV32 && cpu->cfg.ext_svukte) {
|
||||||
|
error_setg(errp, "svukte is not supported for RV32");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Disable isa extensions based on priv spec after we
|
* Disable isa extensions based on priv spec after we
|
||||||
* validated and set everything we need.
|
* validated and set everything we need.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue