ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 1,823 microarchs · 16,083 chips · 105 sources
Arch:
Tier:

cbo.flush

T1 riscv alu insn
Cache Block Flush
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRV32/RV64 Zicbom
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
Privilegeuser
ExtensionsZicbom

Summary

Flushes an entire cache block by cleaning it and then invalidating it in all caches.

Syntax / Encoding

cbo.flush (xs1) | 000000000010xxxxx010000000001111 (mask=0xfff07fff match=0x0020200f)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32RV000000000010xxxxx0100000000011110xfff07fff / 0x0020200f

Operands

NameDescription
xs1bits [19:15]

Reference Notes

Flushes an entire cache block by cleaning it and then invalidating it in all caches.

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

<%- if (CACHE_BLOCK_SIZE.bit_length - 1) > [PMP_GRANULARITY, PMA_GRANULARITY].min -%>
Both PMP and PMA access control must be the same for all bytes in the block; otherwise, `cbo.flush` has UNSPECIFIED behavior.
<%- end -%>

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

  <%- if ext?(:H) -%>
  * `Store/AMO Guest-Page Fault` if virtual memory translation fails during G-stage translation.
  <%- end -%>
  * `Store/AMO Page Fault` if virtual memory translation fails <% if ext?(:H) %>when V=0 or during VS-stage translation<% end %>
  * `Store/AMO Access Fault` if a PMP or PMA access check fails.

<%- if (CACHE_BLOCK_SIZE.bit_length - 1) <= [PMP_GRANULARITY, PMA_GRANULARITY].min -%>
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.
<%- end -%>

CBO operations never raise a misaligned address fault.