Based-on: 20261110232614.83050-1-christianslima@proton.me
("target/riscv: change mstatus bits for read-only if S ou U unsupported")
Hi,
This patch fixes a Gitlab issue where we're writing a SXL val smaller
than UXL in mstatus, which turns out to be a spec violation.
The patch is based on the following patch from Christian:
"[PATCH v2] target/riscv: change mstatus bits for read-only if S ou U
unsupported"
Christian ended up sending a fix in the same code region and I decided
to avoid the conflict by making this fix dependent on his. In case his
fix is delay I can re-send this based on another commit.
Daniel Henrique Barboza (1):
target/riscv: do not write SXL < UXL [GL4821]
target/riscv/tcg/csr.c | 40 +++++++++++++------
tests/tcg/riscv64/system/meson.build | 7 ++++
tests/tcg/riscv64/test-uxl-sxl.S | 59 ++++++++++++++++++++++++++++
3 files changed, 93 insertions(+), 13 deletions(-)
create mode 100644 tests/tcg/riscv64/test-uxl-sxl.S
--
2.43.0