Is CBO.CLEAN equivalent to a fence?
No. CMO/prefetch has cache-block semantics and is not a general memory-ordering substitute.
cache-block clean (Zicbom).
CBO.CLEAN is a Zicbom cache-block management instruction that performs a clean operation on the cache block containing the effective address in rs1: if the copy in the coherent cache set was modified, a write transfer is performed so stores by coherent agents become visible to relevant non-coherent agents. The cache-block size is discovered from the execution environment and is not fixed at 64 bytes; the assembly offset may be omitted, and if present must evaluate to 0. An implementation may perform a flush instead of a clean.
Shows the official CMO/prefetch encoding, offset(base) operands, effective-address-to-cache-block selection, and ISA-visible effects.
CBO.CLEAN uses a 32-bit encoding; the animation starts by splitting the official fields.
The example cache-block size is 64 bytes only to show how the address selects a block; the real size is discovered from the execution environment and is not fixed at 64 bytes.
This animation shows only architectural semantics from the RISC-V CMO extension: the effective address selects a cache block, execution can be environment-controlled, and prefetch is an ignorable HINT; it does not model concrete cache state, cache-line size, bus transactions, timing, or performance.
CBO.CLEAN is a CMO cache-block operation; it locates a cache block by effective address but is not an ordinary load/store.
Understand this scenario with real code like «cbo.clean 0(a1)».
Understand this scenario with real code like «cbo.clean 0(a1)».
Understand this scenario with real code like «cbo.clean 0(a1)».
No. CMO/prefetch has cache-block semantics and is not a general memory-ordering substitute.
CBO instructions do not require rs1 to be aligned to cache-block size.