Skip to content

target/riscv: Fix medeleg[11] read-only zero bit for M-mode ECALL

Abhigyan Kumar qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1target/riscv: Fix medeleg[11] read-only zero bit for M-mode ECALLtarget/riscv/csr.c+4 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/1] target/riscv: Fix medeleg[11] read-only zero bit for M-mode ECALL

This patch ensures that the read-only zero bit (i.e. the 11th bit) of medeleg remains zero, adhering the RISC-V specification.

I'm a first time contributor. I was a bit confused when it came to writing tests for this. However, I did debug it via gdb myself and confirmed the patch works. I would like to seek guidance on how can I add a test for CSR issues like this -- or if it's even required in this specific case.

Resolves: https://gitlab.com/qemu-project/qemu/-/work_items/3438

Abhigyan Kumar (1):
target/riscv: Fix medeleg[11] read-only zero bit for M-mode ECALL

 target/riscv/csr.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Signature · 1 line
2.54.0