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
000000000000
31:20
00000
19:15
001
14:12
00000
11:7
0001111
6:0
 
Format I-Type
Opcode 0x0F
Extension Zifencei

Operands