target/riscv: Fix PMP address alignment
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
- v5 Latest2 patches 5 repliesApplied
- v42 patches 4 repliesSuperseded
- v32 patches 2 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 2 patches | 0 replies | Superseded | |
| v1 | 1 patch | 5 replies | Superseded |
Changes in v4 from the cover letter
- Rebase riscv-to-apply.next
Patches in v5 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | target/riscv: Align pmp size to pmp-granularitytarget/ | +8 | 1 reply | |
| 2/2 | target/riscv: Improve PMP address alignment readabilitytarget/ | +6 | 2 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Frank Chang | Daniel Henrique Barboza | Chao Liu | Alistair Francis |
|---|---|---|---|---|
| 1/2 | R-b | R-b | R-b | |
| 2/2 | R-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.
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