From 2c4477442c3980f64e67190b0d2fa628240af49d Mon Sep 17 00:00:00 2001 From: "C.W. Betts" Date: Sat, 16 Jan 2021 12:55:33 -0700 Subject: [PATCH] Also define the asm fence for aarch64 code. --- my_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/my_types.h b/my_types.h index 3c2be106..f32d5d2d 100644 --- a/my_types.h +++ b/my_types.h @@ -498,7 +498,7 @@ typedef struct { } MIPS_type_J; #endif -#if defined(__arm__) && (defined(__GNUC__) || defined(__clang__)) +#if (defined(__arm__) || defined(__aarch64__)) && (defined(__GNUC__) || defined(__clang__)) #define COMPILER_FENCE() __asm__ __volatile__("":::"memory") #else #define COMPILER_FENCE()