target/riscv: Support the true Zicclsm extension
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
- v8 Latest7 patches 1 replyApplied
- v78 patches 7 repliesSuperseded
- v66 patches 2 repliesSuperseded
Earlier versions · 5
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v5 | 7 patches | 0 replies | Superseded | |
| v4 | 6 patches | 6 replies | Superseded | |
| v3 | 5 patches | 4 replies | Superseded | |
| v2 | 4 patches | 0 replies | Superseded | |
| v1 | 4 patches | 6 replies | Superseded |
Changes in v8 from the cover letter
* Squash patch#1 into patch#2.
Patches in v8 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | target/riscv: Add Zicclsm CPU option and enable it for the eligible CPUstarget/ target/ | +9 | 0 replies | |
| 2/7 | hw/riscv: sifive_u: Align ROM reset vector datahw/ | +6 | 0 replies | |
| 3/7 | target/riscv: Support raising misaligned exceptions for scalar loads/storestarget/ | +6 | 0 replies | |
| 4/7 | target/riscv: Support raising misaligned exceptions for floating-point loads/storestarget/ target/ target/ | +18 | 0 replies | |
| 5/7 | target/riscv: Support raising misaligned exceptions for vector loads/storestarget/ target/ | +65 | 0 replies | |
| 6/7 | target/riscv: Expose Zicclsm as a CPU property and update RVA22U64 profiletarget/ | +2 | 0 replies | |
| 7/7 | tests/tcg/riscv64: Add test for Zicclsmtests/ tests/ | +390 | 0 replies |
Reviews trailers per patch
All 7 patches have a Reviewed-by or Acked-by.
| Patch | Daniel Henrique Barboza | Max Chou | Alistair Francis |
|---|---|---|---|
| 1/7 | R-b | R-b | A-b |
| 2/7 | R-b | ||
| 3/7 | R-b | R-b | |
| 4/7 | R-b | ||
| 5/7 | R-b | A-b | |
| 6/7 | R-b | ||
| 7/7 | 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.
Cover letter [PATCH v8 0/7] target/riscv: Support the true Zicclsm extension
From: Frank Chang <[email protected]>
Support the true Zicclsm extension so that we can trap misaligned accesses when Zicclsm is disabled.
To enable/disable Zicclsm, simply set zicclsm=[true|false], e.g.:
-cpu rv64,zicclsm=[true|false]
QEMU will raise a misaligned load/store exception when executing misaligned load/store instructions if Zicclsm is disabled.
Changelog:
v8:
* Squash patch#1 into patch#2.
v7:
* Raise the misaligned exceptions for floating-point instructions (RVF, RVD, Zfh) when Zicclsm is disabled.
* Add Zicclsm unit tests.
v6:
* Reorder and squash Zicclsm CPU property and RVA22U64 profile patches to make every single commit to pass make check.
v5:
* Add Zicclsm to RVA22U64 profile explicitly.
* Rebase to the latest riscv-to-apply.next.
v4:
* Align ROM reset vector data at 8-byte aligned offsets.
v3:
* Enable Zicclsm for the compatible CPUs.
* Rebase to the latest riscv-to-apply.next.
v2:
* Use (size_memop(size) | mo_endian_env(env)) to calculate MemOp.
* Use (log2_esz << MO_ASHIFT) to calculate aligment MemOp for vector load/store whole register instructions.
Frank Chang (7):
target/riscv: Add Zicclsm CPU option and enable it for the eligible
CPUs
hw/riscv: sifive_u: Align ROM reset vector data target/riscv: Support raising misaligned exceptions for scalar
loads/stores
target/riscv: Support raising misaligned exceptions for floating-point
loads/stores
target/riscv: Support raising misaligned exceptions for vector
loads/stores
target/riscv: Expose Zicclsm as a CPU property and update RVA22U64
profile
tests/tcg/riscv64: Add test for Zicclsm
hw/riscv/sifive_u.c | 11 +- target/riscv/cpu.c | 10 +- target/riscv/cpu_cfg_fields.h.inc | 2 + target/riscv/tcg/insn_trans/trans_rvd.c.inc | 6 + target/riscv/tcg/insn_trans/trans_rvf.c.inc | 6 + target/riscv/tcg/insn_trans/trans_rvi.c.inc | 6 + target/riscv/tcg/insn_trans/trans_rvv.c.inc | 18 +- target/riscv/tcg/insn_trans/trans_rvzfh.c.inc | 6 + target/riscv/tcg/vector_helper.c | 65 +++- tests/tcg/riscv64/Makefile.softmmu-target | 22 ++ tests/tcg/riscv64/test-zicclsm.S | 368 ++++++++++++++++++ 11 files changed, 496 insertions(+), 24 deletions(-) create mode 100644 tests/tcg/riscv64/test-zicclsm.S
--
2.43.0