PREFETCH.I
Prefetch Instruction
PREFETCH.I offset(rs1)
Hints to hardware to bring the cache block containing the instruction at the address into the instruction cache.
Encoding
Binary Layout
imm12hi
31:25
00000
24:20
rs1
19:15
110000000010011
14:0
Operands
-
rs1
Base Address -
offset
Offset
Example
PREFETCH.I 0(x10)
// Prepare I-Cache for upcoming jump.
Related
More in Zicbop
Reference
View in RISC-V Unprivileged ISA Specification ↗
RISC-V ISA Manual
Description
PREFETCH.I is a hint to the memory system to prefetch the cache block at the address rs1+offset into the instruction cache.
Operation
Prefetch(I-Cache, R[rs1] + offset);