Skip to content

target/riscv: Fix PMP address alignment

Jay Chang qemu-devel 5 versions – Applied

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

  1. v5 Latest2 patches 5 repliesApplied
  2. v42 patches 4 repliesSuperseded
  3. v32 patches 2 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v22 patches0 repliesSuperseded
v11 patch5 repliesSuperseded

Changes in v4 from the cover letter

- Rebase riscv-to-apply.next

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/2target/riscv: Align pmp size to pmp-granularitytarget/riscv/pmp.c+8 -21 reply
2/2target/riscv: Improve PMP address alignment readabilitytarget/riscv/pmp.c+6 -42 replies

Reviews trailers per patch

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

PatchFrank ChangDaniel Henrique BarbozaChao LiuAlistair Francis
1/2R-b R-b R-b
2/2R-b A-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 4 reviewers.

Read the v5 thread

Cover letter [PATCH v5 0/2] target/riscv: Fix PMP address alignment

This series fixes PMP address alignment to comply with the RISC-V specification WARL (Write-Any, Read-Legal) semantics.

When configuring pmpcfg (TOR, NA4, or NAPOT) and pmpaddr, if the value is smaller than the PMP granularity, it needs to be aligned to the PMP granularity.

Chagnes in v5:
- Use uint64_t for granule, in preparation for upcoming single-binary work:
https://lore.kernel.org/qemu-devel/[email protected]/

Changes in v4:
- Rebase riscv-to-apply.next

Changes in v3:
- Use ROUND_UP() macro for NAPOT address alignment

Changes in v2:
- Fixed commit message grammar ("it needs to be aligned")
- Use ROUND_DOWN() macro for TOR address alignment to improve code readability

Jay Chang (2):
target/riscv: Align pmp size to pmp-granularity target/riscv: Improve PMP address alignment readability

 target/riscv/pmp.c | 20 ++++++++++++++------
 1 file changed, 14 insertions(+), 6 deletions(-)
Signature · 1 line
2.48.1