diff options
-rw-r--r-- | rts/include/stg/SMP.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/include/stg/SMP.h b/rts/include/stg/SMP.h index de706da290..282680c772 100644 --- a/rts/include/stg/SMP.h +++ b/rts/include/stg/SMP.h @@ -449,7 +449,7 @@ load_load_barrier(void) { #elif defined(aarch64_HOST_ARCH) __asm__ __volatile__ ("dmb sy" : : : "memory"); #elif defined(riscv64_HOST_ARCH) - __asm__ __volatile__ ("fence w,r" : : : "memory"); + __asm__ __volatile__ ("fence r,r" : : : "memory"); #else #error memory barriers unimplemented on this architecture #endif |