arch-riscv: Fix fence.i instruction in O3 CPU

We should clean the instruction buffer after the fence.i is execute
to avoid execute old instruction for self-modifying code

Change-Id: Iece0ee0d10631fcd9bd17ee67cf0c92f72acdbd8
This commit is contained in:
Roger Chang
2024-01-29 11:43:27 +08:00
parent ce32d7c523
commit d94ef08a36

View File

@@ -771,7 +771,8 @@ decode QUADRANT default Unknown::unknown() {
0x0: fence({{
}}, uint64_t, IsReadBarrier, IsWriteBarrier, No_OpClass);
0x1: fence_i({{
}}, uint64_t, IsNonSpeculative, IsSerializeAfter, No_OpClass);
}}, uint64_t, IsNonSpeculative, IsSerializeAfter,
IsSquashAfter, No_OpClass);
}
0x2: decode FUNCT12 {