From 26b01d56f59bc17f48044ce79fbea41a7e2439cb Mon Sep 17 00:00:00 2001 From: xctan Date: Sun, 28 May 2023 23:17:09 +0800 Subject: [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 --- src/include/box64context.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/include') 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) -- cgit 1.4.1