From 9e25e249c7a786f0070421e888ebaa1c8d94c198 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Tue, 5 May 2026 09:25:21 +0100 Subject: [PATCH] linux-user/arm: Restrict regpairs_aligned MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Philippe Mathieu-Daudé Message-id: 20260409035015.132370-2-richard.henderson@linaro.org Signed-off-by: Peter Maydell --- linux-user/user-internals.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/user-internals.h b/linux-user/user-internals.h index 24d35998f0..e65373b204 100644 --- a/linux-user/user-internals.h +++ b/linux-user/user-internals.h @@ -136,7 +136,7 @@ void print_termios2(void *arg); #endif /* ARM EABI and MIPS expect 64bit types aligned even on pairs or registers */ -#ifdef TARGET_ARM +#if defined(TARGET_ARM) && !defined(TARGET_AARCH64) static inline int regpairs_aligned(CPUArchState *cpu_env, int num) { return cpu_env->eabi;