Skip to content

target/riscv: Support RISC-V privilege 1.13 spec

Fea.Wang qemu-devel qemu-riscv 5 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. v4 Latest6 patches 2 repliesApplied
  2. v36 patches 4 repliesSuperseded
  3. v2 posting 2/25 patches 14 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v2 posting 1/25 patches1 replySuperseded
v15 patches11 repliesSuperseded

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/6target/riscv: Reuse the conversion function of priv_spectarget/riscv/cpu.c target/riscv/cpu.h target/riscv/tcg/tcg-cpu.c+6 -100 replies
2/6target/riscv: Define macros and variables for ss1p13target/riscv/cpu.h target/riscv/cpu_cfg.h+4 -10 replies
3/6target/riscv: Add 'P1P13' bit in SMSTATEEN0target/riscv/cpu_bits.h target/riscv/csr.c+9 -00 replies
4/6target/riscv: Add MEDELEGH, HEDELEGH csrs for RV32target/riscv/cpu_bits.h target/riscv/csr.c+33 -00 replies
5/6target/riscv: Reserve exception codes for sw-check and hw-errtarget/riscv/cpu_bits.h+2 -00 replies
6/6target/riscv: Support the version for ss1p13target/riscv/cpu.c target/riscv/tcg/tcg-cpu.c+9 -11 reply

Reviews trailers per patch

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

PatchFrank ChangWeiwei LiLIU ZhiweiAlistair Francis
1/6R-b R-b R-b
2/6R-b R-b R-b R-b
3/6R-b R-b R-b
4/6R-b R-b R-b
5/6R-b R-b R-b
6/6R-b R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v4 thread

Cover letter [PATCH v4 0/6] target/riscv: Support RISC-V privilege 1.13 spec

Based on the change log for the RISC-V privilege 1.13 spec, add the support for ss1p13.

base-commit: 7a2356147f3a5faebf95dba4140247ec6e5607b1

* Reorder commits

[v3]
* Correct the mstateen0 for P1P13 in commit message
* Refactor commit by splitting to two commits

[v2]
* Check HEDELEGH by hmode32 instead of any32
* Remove unnecessary code
* Refine calling functions

[v1]

Ref:https://github.com/riscv/riscv-isa-manual/blob/a7d93c9/src/priv-preface.adoc?plain=1#L40-L72

Lists what to do without clarification or document format.
* Redefined misa.MXL to be read-only, making MXLEN a constant.(Skip, implementation ignored)
* Added the constraint that SXLEN≥UXLEN.(Skip, implementation ignored)
* Defined the misa.V field to reflect that the V extension has been implemented.(Skip, existed)
* Defined the RV32-only medelegh and hedelegh CSRs.(Done in these patches)
* Defined the misaligned atomicity granule PMA, superseding the proposed Zam extension..(Skip, implementation ignored)
* Allocated interrupt 13 for Sscofpmf LCOFI interrupt.(Skip, existed)
* Defined hardware error and software check exception codes.(Done in these patches)
* Specified synchronization requirements when changing the PBMTE fields in menvcfg and henvcfg.(Skip, implementation ignored)
* Incorporated Svade and Svadu extension specifications.(Skip, existed)

Fea.Wang (5):
target/riscv: Define macros and variables for ss1p13 target/riscv: Add 'P1P13' bit in SMSTATEEN0 target/riscv: Add MEDELEGH, HEDELEGH csrs for RV32 target/riscv: Reserve exception codes for sw-check and hw-err target/riscv: Support the version for ss1p13

Jim Shu (1):
target/riscv: Reuse the conversion function of priv_spec

 target/riscv/cpu.c         |  8 ++++++--
 target/riscv/cpu.h         |  5 ++++-
 target/riscv/cpu_bits.h    |  5 +++++
 target/riscv/cpu_cfg.h     |  1 +
 target/riscv/csr.c         | 39 ++++++++++++++++++++++++++++++++++++++
 target/riscv/tcg/tcg-cpu.c | 17 ++++++++---------
 6 files changed, 63 insertions(+), 12 deletions(-)
Signature · 1 line
2.34.1