IMEM tripwire (poison broke stack)

This commit is contained in:
lumia-emu
2026-09-14 00:15:36 +00:00
parent 2a3bdcd72d
commit 503c334b2e
3 changed files with 12 additions and 8 deletions
+3 -3
View File
@@ -822,12 +822,12 @@ static void saimaa_machine_init(MachineState *machine)
cpu_physical_memory_write(a, &fill, 4);
}
}
/* IMEM poison [0x8600000,0x8600F00): drift-sink trap (UDF in
* both modes). IMEM stack [0x8600F00,0x8610000) intact. */
/* IMEM tripwire [0x8600000,0x8600010): drift-sink trap.
* Rest of IMEM stays zeros (SBL stack reads data there). */
{
uint32_t p = 0xFFFFFFFF;
uint32_t a;
for (a = 0x08600000; a < 0x08600F00; a += 4) {
for (a = 0x08600000; a < 0x08600010; a += 4) {
cpu_physical_memory_write(a, &p, 4);
}
}