From 5feb3b8332bad763afe03e8d3dbf2fabbebe6ecf Mon Sep 17 00:00:00 2001 From: SashegDev Date: Fri, 11 Sep 2026 07:26:43 +0000 Subject: [PATCH] saimaa: low-RAM scratch at 0x3000 for SBL probes --- qemu/saimaa.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/qemu/saimaa.c b/qemu/saimaa.c index a6dd2a9..cfb48ba 100644 --- a/qemu/saimaa.c +++ b/qemu/saimaa.c @@ -290,6 +290,15 @@ static void saimaa_machine_init(MachineState *machine) memory_region_add_subregion(sysmem, 0x0, vec); } + /* Low-RAM scratch for SBL1 low-address probes (e.g. [0x3146]). + * Real HW has PBL ROM/XPU here; zeros for now (WIP). */ + { + MemoryRegion *low = g_new(MemoryRegion, 1); + memory_region_init_ram(low, NULL, "saimaa.low", 0x1000, + &error_fatal); + memory_region_add_subregion(sysmem, 0x3000, low); + } + /* SDHCI + eMMC image */ DeviceState *sdhci = qdev_new(TYPE_SYSBUS_SDHCI); sysbus_realize(SYS_BUS_DEVICE(sdhci), &error_fatal);