Commit 59300fb4c2 for qemu.org
commit 59300fb4c23d9e3b74cf739e8c314af71e4e6fa8
Author: Peter Xu <peterx@redhat.com>
Date: Tue Aug 18 13:20:06 2026 -0400
arm/mps: Remove 32bit define for MPS3_DDR_SIZE
QEMU has switched to 64bit-only hosts for all system emulations.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260818172012.3052821-4-peterx@redhat.com
Cc: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-arm@nongnu.org
Signed-off-by: Peter Xu <peterx@redhat.com>
diff --git a/hw/arm/mps2-tz.c b/hw/arm/mps2-tz.c
index 4e6744eddf..7f41a74df1 100644
--- a/hw/arm/mps2-tz.c
+++ b/hw/arm/mps2-tz.c
@@ -190,16 +190,7 @@ OBJECT_DECLARE_TYPE(MPS2TZMachineState, MPS2TZMachineClass, MPS2TZ_MACHINE)
/* Slow 32Khz S32KCLK frequency in Hz */
#define S32KCLK_FRQ (32 * 1000)
-
-/*
- * The MPS3 DDR is 2GiB, but on a 32-bit host QEMU doesn't permit
- * emulation of that much guest RAM, so artificially make it smaller.
- */
-#if HOST_LONG_BITS == 32
-#define MPS3_DDR_SIZE (1 * GiB)
-#else
#define MPS3_DDR_SIZE (2 * GiB)
-#endif
/* For cpu{0,1}_mpu_{ns,s}, means "leave at SSE's default value" */
#define MPU_REGION_DEFAULT UINT32_MAX
diff --git a/hw/arm/mps3r.c b/hw/arm/mps3r.c
index eedb877e4b..4bd5d83d56 100644
--- a/hw/arm/mps3r.c
+++ b/hw/arm/mps3r.c
@@ -58,15 +58,7 @@ typedef struct RAMInfo {
int flags;
} RAMInfo;
-/*
- * The MPS3 DDR is 3GiB, but on a 32-bit host QEMU doesn't permit
- * emulation of that much guest RAM, so artificially make it smaller.
- */
-#if HOST_LONG_BITS == 32
-#define MPS3_DDR_SIZE (1 * GiB)
-#else
#define MPS3_DDR_SIZE (3 * GiB)
-#endif
/*
* Flag values: