mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2024-11-26 15:32:05 +00:00
Fix Zifencei extension issue in RISC-V (#2807)
Refer to: https://github.com/bytecodealliance/wasm-micro-runtime/pull/2805
This commit is contained in:
parent
2175910bac
commit
cb44e56b4e
|
@ -177,7 +177,11 @@ rv_set_val(uint16 *addr, uint32 val)
|
|||
*addr = (val & 0xffff);
|
||||
*(addr + 1) = (val >> 16);
|
||||
|
||||
#ifdef __riscv_zifencei
|
||||
__asm__ volatile("fence.i");
|
||||
#else
|
||||
__asm__ volatile("fence");
|
||||
#endif
|
||||
}
|
||||
|
||||
/* Add a val to given address */
|
||||
|
|
Loading…
Reference in New Issue
Block a user