For implementations with a cacheability-control mechanism, the situation may arise that a program uncacheably accesses a memory location that is currently cache-resident.
In this situation, the cached copy must be ignored.
--
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/ca1b3bf5-6097-4094-8148-f0f824e696a2n%40groups.riscv.org.
Unless the cacheability PMA (or some other) specifically calls out that CBOflush to an uncacheable region will cause a trap,my reading of (just) the above is that sec3.6.5 says it should not trap (i.e, it's a nop).
I don't trust my reading of this, except how the phrase"If a PMA indicates non-cacheability, then accesses to that region must be satisfied by the memory itself, not by any caches."For implementations with a cacheability-control mechanism, the situation may arise that a program uncacheably accesses a memory location that is currently cache-resident.
In this situation, the cached copy must be ignored.
I interpret that as a Flush to an address that is treated as uncacheable is identical to a flush to an address that is cacheable, but not cache resident--On Sat, Feb 22, 2025 at 12:04 PM Adnan Hamid <adnan....@gmail.com> wrote:If a cbo.flush is executed on an address that is NOT cachable / does not support Cacheablity PMA,1. MAY a RISCV complaint implementation choose to raise an exception ?2. MUST a RISCV complaint implementation raise an exception ?From priv spec 3.6 Physical Memory Attributes"To aid in system debugging, we strongly recommend that, where possible, RISC-
V processors precisely trap physical memory accesses that fail PMA checks."From priv spec 3.6.5 Coherence and Cacheability PMAs"The cacheability of a memory region should not affect the software view of the region except for differences reflected in other PMAs,"--
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/ca1b3bf5-6097-4094-8148-f0f824e696a2n%40groups.riscv.org.
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.
Thank you for the follow up Guy.For now we are assuming that any member of the TSC (RISCV Technical Steering Committee) is an authority and can provide definitive guidance on the specification.-adnan