Skip to content

Pointer Masking update for Zjpm v1.0

[email protected] qemu-devel qemu-riscv 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 5 repliesIn review
  2. v17 patches 2 repliesSuperseded

[v0] from the cover letter

As Pointer Masking is finally ratified, these patches intend to update the existing code to the final version.
These patches have been submitted previously and I tried to address all the suggestions, but I'd suggest to review them from the clean slate and then finally push them to the repo. Thanks.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7target/riscv: Remove obsolete pointer masking extension code.target/riscv/cpu.c target/riscv/cpu.h target/riscv/cpu_bits.h +6 more+19 -5442 replies
2/7target/riscv: Add new CSR fields for S{sn, mn, m}pm extensions as part of Zjpm v1.0target/riscv/cpu.h target/riscv/cpu_bits.h target/riscv/cpu_cfg.h +3 more+57 -40 replies
3/7target/riscv: Add helper functions to calculate current number of masked bits for pointer maskingtarget/riscv/cpu.h target/riscv/cpu_helper.c+79 -00 replies
4/7target/riscv: Add pointer masking tb flagstarget/riscv/cpu.h target/riscv/cpu_helper.c target/riscv/translate.c+11 -00 replies
5/7target/riscv: Update address modify functions to take into account pointer maskingtarget/riscv/translate.c target/riscv/vector_helper.c+32 -60 replies
6/7target/riscv: Apply pointer masking for virtualized memory accessestarget/riscv/cpu.h target/riscv/cpu_helper.c target/riscv/insn_trans/trans_rvh.c.inc +1 more+36 -00 replies
7/7target/riscv: Enable updates for pointer masking variables and thus enable pointer masking extensiontarget/riscv/cpu.c+6 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/7] Pointer Masking update for Zjpm v1.0

From: Alexey Baturo <[email protected]>

Hi,

I've rebased this patch series and addressed Richard's and Daniel's comments. Thanks

*** BLURB HERE ***
[v0]:
As Pointer Masking is finally ratified, these patches intend to update the existing code to the final version.
These patches have been submitted previously and I tried to address all the suggestions, but I'd suggest to review them from the clean slate and then finally push them to the repo. Thanks.

Alexey Baturo (7):
target/riscv: Remove obsolete pointer masking extension code. target/riscv: Add new CSR fields for S{sn,mn,m}pm extensions as part
of Zjpm v1.0
target/riscv: Add helper functions to calculate current number of
masked bits for pointer masking
target/riscv: Add pointer masking tb flags
target/riscv: Update address modify functions to take into account
pointer masking
target/riscv: Apply pointer masking for virtualized memory accesses target/riscv: Enable updates for pointer masking variables and thus
enable pointer masking extension

 target/riscv/cpu.c                      |  19 +-
 target/riscv/cpu.h                      |  51 ++--
 target/riscv/cpu_bits.h                 |  91 +-----
 target/riscv/cpu_cfg.h                  |   3 +
 target/riscv/cpu_helper.c               | 124 +++++---
 target/riscv/csr.c                      | 357 ++----------------------
 target/riscv/insn_trans/trans_rvh.c.inc |  11 +
 target/riscv/machine.c                  |  17 +-
 target/riscv/pmp.c                      |  14 +-
 target/riscv/pmp.h                      |   1 +
 target/riscv/tcg/tcg-cpu.c              |   5 +-
 target/riscv/translate.c                |  51 ++--
 target/riscv/vector_helper.c            |  18 +-
 13 files changed, 224 insertions(+), 538 deletions(-)
Signature · 1 line
2.39.5