scratch to OCIMEM (out of march)

This commit is contained in:
lumia-emu
2026-09-14 00:27:02 +00:00
parent 4fcb316c99
commit 785eb934e6
2 changed files with 14 additions and 12 deletions
+9 -7
View File
@@ -753,15 +753,17 @@ static void saimaa_machine_init(MachineState *machine)
uint32_t v = 0x08006B8D;
cpu_physical_memory_write(0x080528D0, &v, 4);
}
/* PBL dispatcher-table fabrication (b33): retarget literal
* [0x80164F0] (image: hash blob!) to scratch struct at
* 0x08600200 with [0x18]=2 (ready -> dispatch). */
/* PBL dispatcher-table fabrication (b33, moved b37): retarget
* literal [0x80164F0] (image: hash blob!) to scratch struct
* at 0x08024000 (OCIMEM, out of stack-march paths!) with
* [0x18]=2 (ready -> dispatch). Was IMEM 0x08600200
* (self-executed when sp marched there!). */
{
uint32_t v = 0x08600200;
cpu_physical_memory_write(0x08600200, &v, 4);
uint32_t v = 0x08024000;
cpu_physical_memory_write(0x08024000, &v, 4);
v = 0x00000002;
cpu_physical_memory_write(0x08600214, &v, 4);
v = 0x08600200;
cpu_physical_memory_write(0x08024014, &v, 4);
v = 0x08024000;
cpu_physical_memory_write(0x080164F0, &v, 4);
}
/* HW-ready bits (b25/b26): [0x073A100] bits 0,1,2 (SBL