PREFETCH.W
Prefetch Write
PREFETCH.W offset(rs1)
Hints to hardware to bring the cache block at the address into the data cache for writing (exclusive ownership).
Encoding
Binary Layout
imm12hi
31:25
00011
24:20
rs1
19:15
110000000010011
14:0
Operands
-
rs1
Base Address -
offset
Offset
Example
PREFETCH.W 0(x10)
// Prepare D-Cache for writing.
Related
Across architectures
Cache Prefetch Hint : how x86, ARM, RISC-V, and PowerISA each do this.
More in Zicbop
Reference
View in RISC-V Unprivileged ISA Specification ↗
RISC-V ISA Manual
Description
PREFETCH.W is a hint to the memory system to prefetch the cache block at rs1+offset into the data cache for a write access.
Operation
Prefetch(D-Cache, Write, R[rs1] + offset);