From 5863dc6c7cf3f56e0a850773a4241d67630d2045 Mon Sep 17 00:00:00 2001 From: Yang Liu Date: Wed, 11 Oct 2023 23:14:33 +0800 Subject: [RV64_DYNAREC] Fix a build warning (#1020) ``` warning: implicit declaration of function 'rv64_lock_get_b' ``` --- src/dynarec/rv64/rv64_lock.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/dynarec/rv64/rv64_lock.h b/src/dynarec/rv64/rv64_lock.h index 67fc9ed6..8f9d95b1 100644 --- a/src/dynarec/rv64/rv64_lock.h +++ b/src/dynarec/rv64/rv64_lock.h @@ -50,6 +50,9 @@ extern void rv64_lock_store_dd(void*p, uint64_t v); // (mostly) Atomically store val1 and val2 at [p] if old [p] is ref. Return 0 if OK, 1 is not. p needs to be aligned extern int rv64_lock_cas_dq(void* p, uint64_t ref, uint64_t val1, uint64_t val2); +// atomic get (with memory barrier) +extern uint32_t rv64_lock_get_b(void* p); + // atomic get (with memory barrier) extern uint32_t rv64_lock_get_d(void* p); -- cgit 1.4.1