Skip to content

Commit 7dd475a

Browse files
authored
Revert "lockhammer/prefetch64: do not dereference lock pointer"
1 parent 29a2e39 commit 7dd475a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmarks/lockhammer/include/atomics.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ static inline void prefetch64 (unsigned long *ptr) {
9595
#if defined(__aarch64__)
9696
asm volatile(" prfm pstl1keep, %[ptr]\n"
9797
:
98-
: [ptr] "Q" (ptr));
98+
: [ptr] "Q" (*(unsigned long *)ptr));
9999
#endif
100100
}
101101

0 commit comments

Comments
 (0)