Skip to content

make write_misa a no-op and FEATURE_* cleanups

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest10 patches 9 repliesIn review
  2. v69 patches 25 repliesSuperseded
  3. v59 patches 1 replySuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v410 patches5 repliesSuperseded

Changes in v7 from the cover letter

- patches without reviews/acks: patch 3
- patch 2: taken from version 3, acks and r-bs preserved
- patch 3:
- rename 'misa-w' to 'x-misa-w' to be clearer about our intents with the cfg option
- v6 link: https://lists.gnu.org/archive/html/qemu-devel/2023-02/msg05047.html

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10target/riscv: introduce riscv_cpu_cfg()target/riscv/cpu.h+5 -00 replies
2/10target/riscv: do not mask unsupported QEMU extensions in write_misa()target/riscv/csr.c+0 -30 replies
3/10target/riscv: allow MISA writes as experimentaltarget/riscv/cpu.c target/riscv/cpu.h target/riscv/csr.c+8 -27 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.

PatchBin MengLIU ZhiweiWeiwei LiRichard HendersonAndrew Jones
1/10R-b R-b R-b R-b
2/10R-b R-b R-b
3/10R-b R-b R-b R-b R-b
4/10R-b R-b R-b R-b
5/10R-b R-b R-b R-b
6/10R-b R-b R-b R-b
7/10R-b R-b R-b R-b
8/10R-b R-b R-b R-b
9/10R-b R-b R-b R-b
10/10R-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 5 reviewers.

Read the v7 thread

Cover letter [PATCH v7 00/10] make write_misa a no-op and FEATURE_* cleanups

Hi,

In this version we gave up removing all the write_misa() body and, instead, we went back to something closer to what we were doing in v2. write_misa() is now gated behind an experimental x-misa-w cfg option, defaulted to false.

The idea is that x-misa-w allow us to keep experimenting and testing the code. Marking it as experimental will (hopefully) make users wary of the fact that this feature is unstable. The expectation is that the flag will be removed once write_misa() is ready to always write MISA.

Changes from v6:
- patches without reviews/acks: patch 3
- patch 2: taken from version 3, acks and r-bs preserved
- patch 3:
- rename 'misa-w' to 'x-misa-w' to be clearer about our intents with the cfg option
- v6 link: https://lists.gnu.org/archive/html/qemu-devel/2023-02/msg05047.html

Daniel Henrique Barboza (10):
target/riscv: introduce riscv_cpu_cfg()
target/riscv: do not mask unsupported QEMU extensions in write_misa() target/riscv: allow MISA writes as experimental 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        | 25 ++++++++++---------------
 target/riscv/cpu.h        | 29 ++++++-----------------------
 target/riscv/cpu_helper.c |  6 +++---
 target/riscv/csr.c        | 15 ++++++---------
 target/riscv/machine.c    | 11 ++++-------
 target/riscv/monitor.c    |  2 +-
 target/riscv/op_helper.c  |  2 +-
 target/riscv/pmp.c        |  8 ++++----
 9 files changed, 39 insertions(+), 66 deletions(-)
Signature · 1 line
2.39.2