Skip to content

RISCVCPUConfig related cleanups

Daniel Henrique Barboza qemu-devel qemu-riscv 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4target/riscv/csr.c: use env_archcpu() in ctr()target/riscv/csr.c+1 -21 reply
2/4target/riscv/csr.c: simplify mctr()target/riscv/csr.c+2 -31 reply
3/4target/riscv/csr.c: use riscv_cpu_cfg() to avoid env_cpu() pointerstarget/riscv/csr.c+12 -381 reply
4/4target/riscv/csr.c: avoid env_archcpu() usages when reading RISCVCPUConfigtarget/riscv/csr.c+9 -231 reply

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchRichard HendersonWeiwei Li
SeriesR-b
1/4
2/4R-b
3/4R-b
4/4R-b

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

Read the v1 thread

Cover letter [PATCH 0/4] RISCVCPUConfig related cleanups

Hi,

These cleanups were suggested by LIU Zhiwei during the review of the RISCV_FEATURE_* cleanups, currently on version 7 [1].

These are dependent on the patch "[PATCH v7 01/10] target/riscv: introduce riscv_cpu_cfg()" from [1] because we use the riscv_cpu_cfg() API.

[1] https://lists.gnu.org/archive/html/qemu-devel/2023-02/msg06467.html

Daniel Henrique Barboza (4):
target/riscv/csr.c: use env_archcpu() in ctr() target/riscv/csr.c: simplify mctr()
target/riscv/csr.c: use riscv_cpu_cfg() to avoid env_cpu() pointers target/riscv/csr.c: avoid env_archcpu() usages when reading
RISCVCPUConfig

 target/riscv/csr.c | 90 +++++++++++++---------------------------------
 1 file changed, 24 insertions(+), 66 deletions(-)
Signature · 1 line
2.39.2