about summary refs log tree commit diff stats
path: root/src/include
diff options
context:
space:
mode:
authorxctan <xctan@cirno.icu>2023-05-28 23:17:09 +0800
committerGitHub <noreply@github.com>2023-05-28 17:17:09 +0200
commit26b01d56f59bc17f48044ce79fbea41a7e2439cb (patch)
tree2f4a5c2b808a095b042cec786fee9aa5c922c845 /src/include
parenteb687748c5f6cb39b5f3d70721f3e96a3c04549d (diff)
downloadbox64-26b01d56f59bc17f48044ce79fbea41a7e2439cb.tar.gz
box64-26b01d56f59bc17f48044ce79fbea41a7e2439cb.zip
[RV64_DYNAREC] Added F3 0F B8 POPCNT opcode and fixed LOCK CMPXCHG16B for ML2 (#808)
* [RV64_DYNAREC] Added lock to F0 48 0F C7 LOCK CMPXCHG16B opcode

* [RV64_DYNAREC] Added F3 0F B8 POPCNT opcode

* [RV64_DYNAREC] Moved 16B lock to box64context
Diffstat (limited to 'src/include')
-rwxr-xr-xsrc/include/box64context.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/box64context.h b/src/include/box64context.h
index fb09c004..9b38fa83 100755
--- a/src/include/box64context.h
+++ b/src/include/box64context.h
@@ -151,6 +151,9 @@ typedef struct box64context_s {
     uintptr_t           max_db_size;    // the biggest (in x86_64 instructions bytes) built dynablock
     int                 trace_dynarec;
     pthread_mutex_t     mutex_lock;     // this is for the Test interpreter
+    #ifdef __riscv
+    uint32_t            mutex_16b;
+    #endif
     #endif
 
     library_t           *libclib;       // shortcut to libc library (if loaded, so probably yes)