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

prefetch.r

T1 riscv alu insn
Cache block prefetch for data read
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRV32/RV64 Zicbop
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
Privilegeuser
ExtensionsZicbop

Summary

A prefetch.r instruction indicates to hardware that the cache block whose effective address is the sum of the base address specified in xs1 and the sign-extended offset encoded in imm[11:0], where imm[4:0] equals 0b00000, is likely to be accessed by a data read (i.e. load) in the near future.

Syntax / Encoding

prefetch.r imm(xs1) | xxxxxxx00001xxxxx110000000010011 (mask=0x01f07fff match=0x00106013)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32RVxxxxxxx00001xxxxx1100000000100110x01f07fff / 0x00106013

Operands

NameDescription
immbits [31:25], sign-extended, shifted << 5
xs1bits [19:15]

Reference Notes

A prefetch.r instruction indicates to hardware that the cache block whose
effective address is the sum of the base address specified in xs1 and the
sign-extended offset encoded in imm[11:0], where imm[4:0] equals 0b00000,
is likely to be accessed by a data read (i.e. load) in the near future.