Skip to content

riscv: Add support for Zicbo[m,z,p] instructions

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. v8 Latest4 patches 3 repliesIn review
  2. v74 patches 13 repliesSuperseded
  3. v64 patches 7 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v54 patches5 repliesSuperseded

Changes in v8 from the cover letter

- patch 1: queued in tcg-next, included here to facilitate testing the other patches
- patch 2:
- changed check_zicbo_envcfg() to trigger the virtual faults before triggering the illegal exception from S mode.
- v7 link: https://lists.gnu.org/archive/html/qemu-devel/2023-02/msg07041.html

Patches in v8 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4tcg: add 'size' param to probe_access_flags()accel/stubs/tcg-stub.c accel/tcg/cputlb.c accel/tcg/user-exec.c +5 more+26 -130 replies
2/4target/riscv: implement Zicboz extensiontarget/riscv/cpu.c target/riscv/cpu.h target/riscv/helper.h +4 more+117 -11 reply
3/4target/riscv: implement Zicbom extensiontarget/riscv/cpu.c target/riscv/cpu.h target/riscv/helper.h +3 more+106 -00 replies
4/4target/riscv: add Zicbop cbo.prefetch{i, r, m} placeholdertarget/riscv/insn32.decode+1 -00 replies

Reviews trailers per patch

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

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

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

Read the v8 thread

Cover letter [PATCH v8 0/4] riscv: Add support for Zicbo[m,z,p] instructions

Hi,

This version has a change in patch 2, proposed by Weiwei Li, where we're now triggering virt_instruction_fault before triggering illegal_insn fault from S mode.

Richard already queued patch 1 is queued in tcg-next already. I'm still including it here to allow for easier testing of the remaining patches.

Changes from v7:
- patch 1: queued in tcg-next, included here to facilitate testing the other patches
- patch 2:
- changed check_zicbo_envcfg() to trigger the virtual faults before triggering the illegal exception from S mode.
- v7 link: https://lists.gnu.org/archive/html/qemu-devel/2023-02/msg07041.html

Christoph Muellner (3):
target/riscv: implement Zicboz extension target/riscv: implement Zicbom extension target/riscv: add Zicbop cbo.prefetch{i,r,m} placeholder

Daniel Henrique Barboza (1):
tcg: add 'size' param to probe_access_flags()

 accel/stubs/tcg-stub.c                      |   2 +-
 accel/tcg/cputlb.c                          |  17 ++-
 accel/tcg/user-exec.c                       |   5 +-
 include/exec/exec-all.h                     |   3 +-
 semihosting/uaccess.c                       |   2 +-
 target/arm/ptw.c                            |   2 +-
 target/arm/sve_helper.c                     |   2 +-
 target/riscv/cpu.c                          |   7 +
 target/riscv/cpu.h                          |   4 +
 target/riscv/helper.h                       |   5 +
 target/riscv/insn32.decode                  |  16 ++-
 target/riscv/insn_trans/trans_rvzicbo.c.inc |  57 +++++++++
 target/riscv/op_helper.c                    | 135 ++++++++++++++++++++
 target/riscv/translate.c                    |   1 +
 target/s390x/tcg/mem_helper.c               |   6 +-
 15 files changed, 250 insertions(+), 14 deletions(-)
 create mode 100644 target/riscv/insn_trans/trans_rvzicbo.c.inc
Signature · 1 line
2.39.2