linux-user/arm: Restrict regpairs_aligned
The function regpairs_aligned is for extracting a 64-bit quantity from a pair of 32-bit registers and does not apply to AArch64. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-id: 20260409035015.132370-2-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Richard Henderson committed
May 5, 2026 at 09:25 UTC
9e25e249c7a786f0070421e888ebaa1c8d94c198
1 file changed
+1
-1
linux-user/user-internals.h
+1
-1
@@ -136,7 +136,7 @@ void print_termios2(void *arg);
136
#endif
137
138
/* ARM EABI and MIPS expect 64bit types aligned even on pairs or registers */
139
-#ifdef TARGET_ARM
139
+#if defined(TARGET_ARM) && !defined(TARGET_AARCH64)
140
static inline int regpairs_aligned(CPUArchState *cpu_env, int num)
141
{
142
return cpu_env->eabi;