Skip to content

enable write_misa() and RISCV_FEATURE_* cleanups

Daniel Henrique Barboza qemu-devel qemu-riscv 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest10 patches 7 repliesIn review
  2. v211 patches 11 repliesSuperseded
  3. v111 patches 14 repliesSuperseded

Changes in v3 from the cover letter

- all patches but patch 2 are acked/reviewed
- patch 2:
- remove the RISCV_FEATURE_MISA validation from write_misa()
- v2 link: https://lists.gnu.org/archive/html/qemu-devel/2023-02/msg03934.html

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10target/riscv: do not mask unsupported QEMU extensions in write_misa()target/riscv/csr.c+0 -30 replies
2/10target/riscv: always allow write_misa() to write MISAtarget/riscv/cpu.h target/riscv/csr.c+0 -67 replies
3/10target/riscv: introduce riscv_cpu_cfg()target/riscv/cpu.h+5 -00 replies
4/10target/riscv: remove RISCV_FEATURE_DEBUGtarget/riscv/cpu.c target/riscv/cpu.h target/riscv/cpu_helper.c +2 more+4 -100 replies
5/10target/riscv/cpu.c: error out if EPMP is enabled without PMPtarget/riscv/cpu.c+7 -20 replies
6/10target/riscv: remove RISCV_FEATURE_EPMPtarget/riscv/cpu.c target/riscv/cpu.h target/riscv/csr.c +1 more+6 -110 replies
7/10target/riscv: remove RISCV_FEATURE_PMPtarget/riscv/cpu.c target/riscv/cpu.h target/riscv/cpu_helper.c +4 more+5 -110 replies
8/10hw/riscv/virt.c: do not use RISCV_FEATURE_MMU in create_fdt_socket_cpus()hw/riscv/virt.c+4 -30 replies
9/10target/riscv: remove RISCV_FEATURE_MMUtarget/riscv/cpu.c target/riscv/cpu.h target/riscv/cpu_helper.c +3 more+5 -160 replies
10/10target/riscv/cpu: remove CPUArchState::features and friendstarget/riscv/cpu.h target/riscv/machine.c+2 -150 replies

Reviews trailers per patch

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

PatchWeiwei LiBin MengAndrew Jones
1/10R-b R-b R-b
2/10R-b
3/10R-b R-b R-b
4/10R-b R-b R-b
5/10R-b R-b R-b
6/10R-b R-b R-b
7/10R-b R-b R-b
8/10R-b R-b R-b
9/10R-b R-b R-b
10/10R-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 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 00/10] enable write_misa() and RISCV_FEATURE_* cleanups

Hi,

In this new version the most notable change was in the write_misa() logic. I decided to follow Bin's suggestion and removed the verification at the start of the function.

As the result, the patch that removes RISCV_FEATURE_MISA was merged with the patch that makes this change (patch 2).

I also removed the v2 acks from it since the patch now does something different than before. Patch 2 is also the only patch that is missing acks.

Changes from v2:
- all patches but patch 2 are acked/reviewed
- patch 2:
- remove the RISCV_FEATURE_MISA validation from write_misa()
- v2 link: https://lists.gnu.org/archive/html/qemu-devel/2023-02/msg03934.html

Daniel Henrique Barboza (10):
target/riscv: do not mask unsupported QEMU extensions in write_misa() target/riscv: always allow write_misa() to write MISA target/riscv: introduce riscv_cpu_cfg()
target/riscv: remove RISCV_FEATURE_DEBUG target/riscv/cpu.c: error out if EPMP is enabled without PMP target/riscv: remove RISCV_FEATURE_EPMP
target/riscv: remove RISCV_FEATURE_PMP
hw/riscv/virt.c: do not use RISCV_FEATURE_MMU in
create_fdt_socket_cpus()
target/riscv: remove RISCV_FEATURE_MMU
target/riscv/cpu: remove CPUArchState::features and friends

 hw/riscv/virt.c           |  7 ++++---
 target/riscv/cpu.c        | 19 ++++---------------
 target/riscv/cpu.h        | 28 +++++-----------------------
 target/riscv/cpu_helper.c |  6 +++---
 target/riscv/csr.c        | 18 +++++-------------
 target/riscv/machine.c    | 11 ++++-------
 target/riscv/monitor.c    |  2 +-
 target/riscv/op_helper.c  |  2 +-
 target/riscv/pmp.c        |  8 ++++----
 9 files changed, 31 insertions(+), 70 deletions(-)
Signature · 1 line
2.39.1