Skip to content

Commit 0b167fa

Browse files
authored
Merge pull request #7133 from miyazakh/arm_isb
fix unsupported arm instruction compile error
2 parents 089468f + b2f9715 commit 0b167fa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfssl/wolfcrypt/wc_port.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1194,7 +1194,7 @@ WOLFSSL_ABI WOLFSSL_API int wolfCrypt_Cleanup(void);
11941194
#ifndef WOLFSSL_NO_FENCE
11951195
#if defined (__i386__) || defined(__x86_64__)
11961196
#define XFENCE() XASM_VOLATILE("lfence")
1197-
#elif defined (__arm__) || defined(__aarch64__)
1197+
#elif (defined (__arm__) && (__ARM_ARCH > 6)) || defined(__aarch64__)
11981198
#define XFENCE() XASM_VOLATILE("isb")
11991199
#elif defined(__riscv)
12001200
#define XFENCE() XASM_VOLATILE("fence")

0 commit comments

Comments
 (0)