Skip to content

RISC-V: Convert the CSR access functions to use

Alistair Francis qemu-devel qemu-riscv 2 versions – Applied

Status from this message: Applied to riscv-to-apply.next

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 10 repliesApplied
  2. v15 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- Renmae the enum
- Rebase on master
- Fix a few incorrect returns

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/5target/riscv: Convert the RISC-V exceptions to an enumtarget/riscv/cpu.c target/riscv/cpu_bits.h target/riscv/cpu_helper.c+26 -241 reply
2/5target/riscv: Use the RISCVException enum for CSR predicatestarget/riscv/cpu.h target/riscv/csr.c+46 -372 replies
3/5target/riscv: Fix 32-bit HS mode access permissionstarget/riscv/csr.c+5 -12 replies
4/5target/riscv: Use the RISCVException enum for CSR operationstarget/riscv/cpu.h target/riscv/csr.c+390 -2672 replies
5/5target/riscv: Use RISCVException enum for CSR accesstarget/riscv/cpu.h target/riscv/csr.c target/riscv/gdbstub.c +1 more+38 -362 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchBin MengRichard Henderson
1/5R-b R-b
2/5R-b R-b
3/5R-b R-b
4/5R-b R-b
5/5R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/5] RISC-V: Convert the CSR access functions to use

V2:
- Renmae the enum
- Rebase on master
- Fix a few incorrect returns

Alistair Francis (5):
target/riscv: Convert the RISC-V exceptions to an enum target/riscv: Use the RISCVException enum for CSR predicates target/riscv: Fix 32-bit HS mode access permissions target/riscv: Use the RISCVException enum for CSR operations target/riscv: Use RISCVException enum for CSR access

 target/riscv/cpu.h        |  28 +-
 target/riscv/cpu_bits.h   |  44 +--
 target/riscv/cpu.c        |   2 +-
 target/riscv/cpu_helper.c |   4 +-
 target/riscv/csr.c        | 740 ++++++++++++++++++++++----------------
 target/riscv/gdbstub.c    |   8 +-
 target/riscv/op_helper.c  |  18 +-
 7 files changed, 492 insertions(+), 352 deletions(-)
Signature · 1 line
2.31.0