From ad57743c9886930053e98c59c6db543af1eb8d76 Mon Sep 17 00:00:00 2001 From: Simon McVittie <smcv@collabora.com> Date: Thu, 18 Jul 2024 17:15:41 +0100 Subject: [PATCH] pv-supported-architectures: 0'th architecture is primary On x86, the 0'th architecture is hard-coded to be x86_64. On other platforms, there is only one architecture, which is whatever we are compiling for. Signed-off-by: Simon McVittie <smcv@collabora.com> --- pressure-vessel/supported-architectures.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pressure-vessel/supported-architectures.h b/pressure-vessel/supported-architectures.h index 6d75f45ea..96f0c0b54 100644 --- a/pressure-vessel/supported-architectures.h +++ b/pressure-vessel/supported-architectures.h @@ -31,6 +31,10 @@ #define PV_N_SUPPORTED_ARCHITECTURES 1 #endif +/* Currently the 0'th architecture is always the primary one + * (x86_64 on x86) */ +#define PV_PRIMARY_ARCHITECTURE 0 + #if defined(__i386__) || defined(__x86_64__) #define PV_N_SUPPORTED_ARCHITECTURES_AS_EMULATOR_HOST 1 /* AArch64 */ #else -- GitLab