IMEM tripwire (poison broke stack)
This commit is contained in:
+3
-3
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user