Skip to content

Commit 7ef1dfd

Browse files
nwf-msrjrtc27
authored andcommitted
Fix ARM AAL on Morello
The spelling of inline assembler constraints on Morello would be different, but Jessica Clarke points out that we should just be using the builtin when available, so do that instead. Co-authored-by: Jessica Clarke <[email protected]>
1 parent dd5c91e commit 7ef1dfd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/aal/aal_arm.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ namespace snmalloc
4848
{
4949
#ifdef _MSC_VER
5050
__prefetch(ptr);
51-
#else
52-
# ifdef SNMALLOC_VA_BITS_64
51+
#elif __has_builtin(__builtin_prefetch) && !defined(SNMALLOC_NO_AAL_BUILTINS)
52+
__builtin_prefetch(ptr);
53+
#elif defined(SNMALLOC_VA_BITS_64)
5354
__asm__ volatile("prfm pldl1keep, [%0]" : "=r"(ptr));
54-
# else
55+
#else
5556
__asm__ volatile("pld\t[%0]" : "=r"(ptr));
56-
# endif
5757
#endif
5858
}
5959
};

0 commit comments

Comments
 (0)