target/riscv: Apply pointer masking to SSPUSH/SSPOPCHK
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | target/riscv: Factor out pointer-masking address adjustmenttarget/ | +11 | 1 reply | |
| 2/2 | target/riscv: Apply pointer masking to SSPUSH/SSPOPCHK addressestarget/ | +6 | 2 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Daniel Henrique Barboza |
|---|---|
| 1/2 | R-b |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/2] target/riscv: Apply pointer masking to SSPUSH/SSPOPCHK
SSPUSH and SSPOPCHK form their effective address from ssp rather than a GPR, so they bypass get_address() and never apply the pointer-masking ignore transformation. With pointer masking enabled, a tagged ssp raises a store/AMO page fault, whereas Spike, Sail and Whisper mask the access.
Patch 1 factors the address adjustment out of get_address() and get_address_indexed() into gen_pm_adjust_addr(), with no functional change. Patch 2 applies it to the SSPUSH/SSPOPCHK address. ssp is still written back unmasked, and the SSPOPCHK value comparison is unchanged.
Tested with the reproducer from the issue; all four cases now match Spike.
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/4758
Rishab Pradeep (2):
target/riscv: Factor out pointer-masking address adjustment target/riscv: Apply pointer masking to SSPUSH/SSPOPCHK addresses
.../tcg/insn_trans/trans_rvzicfiss.c.inc | 8 +++++-- target/riscv/tcg/translate.c | 21 ++++++++++--------- 2 files changed, 17 insertions(+), 12 deletions(-)
Signature · 1 line
2.54.0 (Apple Git-157)