← Home

cbo.clean

Cache Block Clean

Cleans an entire cache block globally throughout the system.

Exactly what happens is coherence protocol-dependent, but in general it is expected that after this operation():

* The cache block will be in the clean (not dirty) state in any coherent cache holding a valid copy of the line. * The data will be cleaned to a point such that an incoherent load can observe the cleaned data.

`cbo.clean` is ordered by `FENCE` instructions but not `FENCE.I` or `SFENCE.VMA`.

Both PMP and PMA access control must be the same for all bytes in the block; otherwise, `cbo.clean` has UNSPECIFIED behavior.

Clean operations are treated as stores for page and access permissions. If permission checks fail, one of the following exceptions will occur:

* `Store/AMO Guest-Page Fault` if virtual memory translation fails during G-stage translation.

* `Store/AMO Page Fault` if virtual memory translation fails when V=0 or during VS-stage translation * `Store/AMO Access Fault` if a PMP or PMA access check fails

Because cache blocks are naturally aligned and always fit in a single PMP or PMA regions, the PMP and PMA access checks only need to check a single address in the line.

CBO operations never raise a misaligned address fault.

Assembly format

cbo.clean (xs1)

Encoding

313029282726252423222120191817161514131211109876543210
000000000001xs1010000000001111

Decode variables

VariableBitsWidth
xs1[19:15]5

No execution pseudocode is available for this instruction.

Defined by

Zicbom

Access

MSUVSVU
AlwaysSometimesSometimesSometimesSometimes

Version af3eaf9+cheriot.f635218

Data from the RISC-V Unified Database, copyright RISC-V International and contributors.

CHERIoT extensions from the CHERIoT specification and Sail model, copyright Microsoft and the CHERIoT Platform contributors.

This site is provided as a community resource and is NOT affiliated with nor endorsed by RISC-V International.