b43: revert frameless (hang), S12 keep/divert split (PBL contract), sphist+tpop diag
This commit is contained in:
+12
-8
@@ -788,11 +788,12 @@ static void saimaa_machine_init(MachineState *machine)
|
||||
uint32_t v = 0x47702000;
|
||||
cpu_physical_memory_write(0x00221EF8, &v, 4);
|
||||
}
|
||||
/* S12-stub (b27, 100B @0x08006964, ARM): blx-to-padding
|
||||
/* S12-stub (b27/b43, 132B @0x08006964, ARM): blx-to-padding
|
||||
* becomes smart dispatcher: ldr ip,[sp,#4] (=pushed lr);
|
||||
* ip==STUBV/even/non-code => ip=poll resumption 0x8007779;
|
||||
* else keep pushed-lr (NO add-sp!); restore r7;
|
||||
* ACK peripheral bit1 ([literal 0x073A100]); bx lr.
|
||||
* keep (odd code): appended tail restores r7, ACKs bit1,
|
||||
* ([literal2 0x073A100]) and bx lr to wrapper tail (paired
|
||||
* pop, balanced). default: shared restore/ACK then bx ip to
|
||||
* poll resumption (no tail visit, no creep).
|
||||
* PBL would place the real ARM helper here. */
|
||||
{
|
||||
static const uint8_t s12[] = {
|
||||
@@ -801,15 +802,18 @@ static void saimaa_machine_init(MachineState *machine)
|
||||
0x09, 0x00, 0x00, 0x0a, 0x01, 0x00, 0x1c, 0xe3,
|
||||
0x07, 0x00, 0x00, 0x0a, 0x2c, 0x3c, 0xa0, 0xe1,
|
||||
0x08, 0x00, 0x53, 0xe3, 0x00, 0x00, 0x00, 0x1a,
|
||||
0x05, 0x00, 0x00, 0xea, 0x2c, 0x3e, 0xa0, 0xe1,
|
||||
0x0d, 0x00, 0x00, 0xea, 0x2c, 0x3e, 0xa0, 0xe1,
|
||||
0x08, 0x00, 0x53, 0xe3, 0x00, 0x00, 0x00, 0x1a,
|
||||
0x01, 0x00, 0x00, 0xea, 0x79, 0xc7, 0x07, 0xe3,
|
||||
0x09, 0x00, 0x00, 0xea, 0x79, 0xc7, 0x07, 0xe3,
|
||||
0x00, 0xc8, 0x40, 0xe3, 0x00, 0x70, 0x0a, 0xe3,
|
||||
0x73, 0x70, 0x40, 0xe3, 0x0c, 0x30, 0x9f, 0xe5,
|
||||
0x00, 0x20, 0x93, 0xe5, 0x02, 0x20, 0x82, 0xe3,
|
||||
0x00, 0x20, 0x83, 0xe5, 0x1c, 0xff, 0x2f, 0xe1,
|
||||
0x00, 0xa1, 0x73, 0x00, 0x00, 0x70, 0x0a, 0xe3,
|
||||
0x73, 0x70, 0x40, 0xe3, 0x0c, 0x30, 0x9f, 0xe5,
|
||||
0x00, 0x20, 0x93, 0xe5, 0x02, 0x20, 0x82, 0xe3,
|
||||
0x00, 0x20, 0x83, 0xe5, 0x1e, 0xff, 0x2f, 0xe1,
|
||||
0x00, 0xa1, 0x73, 0x00,
|
||||
};
|
||||
0x00, 0xa1, 0x73, 0x00,};
|
||||
size_t k;
|
||||
for (k = 0; k < sizeof(s12); k += 4) {
|
||||
uint32_t word = 0;
|
||||
|
||||
Reference in New Issue
Block a user