[Zicfiss] Should SSPOPCHK set the D bit in the PTE?

26 views
Skip to first unread message

Oscar Jupp

unread,
Jul 22, 2026, 5:16:58 AM (10 days ago) Jul 22
to RISC-V ISA Dev
Hi all,

I have a question about the interaction between SSPOPCHK (Zicfiss) and the
page-table-walk A/D bit management (priv spec, step 9 of the translation
algorithm).

Step 9 checks "if the original memory access is a store and pte.d=0" to
determine whether to raise a page fault (Svade) or update the D bit (Svadu).

SSPOPCHK only performs a load from the shadow stack (the spec explicitly
states it "only read[s] from memory and do[es] not write to it"). However,
shadow stack instructions report faults as store/AMO type and require
read-write permission in PMP and G-stage.

The question: for the purpose of step 9, is SSPOPCHK's memory access
considered "a store" (requiring D=1), or is it treated as a load (only
requiring A=1)?

If it is not a store for D-bit purposes, then SSPOPCHK and SSPUSH would
differ in this regard — SSPUSH would require D=1 (actual store) while
SSPOPCHK would not.

I could not find an explicit statement in the spec or prior discussion on
this point. Any clarification would be appreciated.

Thanks,
Oscar Jupp

Andrew Waterman

unread,
Jul 22, 2026, 10:30:47 PM (10 days ago) Jul 22
to Oscar Jupp, RISC-V ISA Dev
Nope, even though it raises store exceptions, it is still considered a load for most purposes--not just the D bit, but also things like the memory consistency model.

--
You received this message because you are subscribed to the Google Groups "RISC-V ISA Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isa-dev+u...@groups.riscv.org.
To view this discussion visit https://groups.google.com/a/groups.riscv.org/d/msgid/isa-dev/0c0945f1-ad63-4b91-bb82-345160594e61n%40groups.riscv.org.
Message has been deleted

Oscar Jupp

unread,
Jul 23, 2026, 8:01:22 AM (9 days ago) Jul 23
to RISC-V ISA Dev, Andrew Waterman, RISC-V ISA Dev, Oscar Jupp
Thanks Andrew, that's very clear. Appreciate the quick reply. 

Oscar

Reply all
Reply to author
Forward
0 new messages