about summary refs log tree commit diff stats
path: root/src/include
diff options
context:
space:
mode:
authorYang Liu <numbksco@gmail.com>2024-05-20 18:04:31 +0800
committerGitHub <noreply@github.com>2024-05-20 12:04:31 +0200
commitaead503f0290eef0e56de76ff4001477f0e8d812 (patch)
tree6d41d40cb8efdca89c1bb5a6a4d770d0dd449d01 /src/include
parent7ef2af254910f9a651c7d3633c2ada696065a8b1 (diff)
downloadbox64-aead503f0290eef0e56de76ff4001477f0e8d812.tar.gz
box64-aead503f0290eef0e56de76ff4001477f0e8d812.zip
[INTERPRETER] Fixed CMPXCHG16B opcode for la64 (#1506)
it's not the best we can do, but it fixes things. Will came up something better with scq extension later.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/box64context.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/box64context.h b/src/include/box64context.h
index 19c45f90..b8706729 100644
--- a/src/include/box64context.h
+++ b/src/include/box64context.h
@@ -165,7 +165,7 @@ typedef struct box64context_s {
     rbtree*             db_sizes;
     int                 trace_dynarec;
     pthread_mutex_t     mutex_lock;     // this is for the Test interpreter
-    #ifdef __riscv
+    #if defined(__riscv) || defined(__loongarch64)
     uint32_t            mutex_16b;
     #endif
     #endif