FENCE.I

Instruction Fence

FENCE.I

Synchronizes the instruction cache with the data cache (used after self-modifying code).

Details

FENCE.I synchronises the instruction and data streams. It ensures that any stores to instruction memory visible to the current hart are made visible to subsequent instruction fetches by that hart.

Pseudocode Operation

Fence(Store, Fetch);

Example

FENCE.I

Encoding

Binary Layout
imm12
31:20
rs1
19:15
001
14:12
rd
11:7
0001111
6:0
 
Format I-Type
Opcode 0x0000100F
Extension Zifencei

Operands