sys/cpu: Use Q constraint for aarch64 locked_read to avoid ldar offset
diff --git a/common/sys/cpu.h b/common/sys/cpu.h
index f8ee3b39..ecd4e34a 100644
--- a/common/sys/cpu.h
+++ b/common/sys/cpu.h
@@ -241,7 +241,7 @@ static inline uint64_t tsc_freq_arch(void) {
asm volatile ( \
"ldar %0, %1" \
: "=r" (locked_read__ret) \
- : "m" (*(var)) \
+ : "Q" (*(var)) \
: "memory" \
); \
locked_read__ret; \
