← Home

prefetch.w

Cache block prefetch for data write

A prefetch.w 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 write (i.e. store) in the near future.

Assembly format

prefetch.w imm(xs1)

Encoding

313029282726252423222120191817161514131211109876543210
imm00011xs1110000000010011

Decode variables

VariableBitsWidth
imm[31:25]7
xs1[19:15]5

Execution

XReg address = X[xs1] + $signed(imm << 5);
prefetch_write(address);

Defined by

Zicbop

Access

SUVSVU
AlwaysAlwaysAlwaysAlways

Version af3eaf9+cheriot.f635218

Data from the RISC-V Unified Database, copyright RISC-V International and contributors.

CHERIoT extensions from the CHERIoT specification and Sail model, copyright Microsoft and the CHERIoT Platform contributors.

This site is provided as a community resource and is NOT affiliated with nor endorsed by RISC-V International.