smurk-too / gbadev

Automatically exported from code.google.com/p/gbadev
0 stars 0 forks source link

TEST: patch out core disabling register pokes #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
See if it still runs normally after just patching a nop over the register pokes 
at the beginning of 1-512

Hopefully that would make us able to just init the other cores at any time.

Original issue reported on code.google.com by maxternal on 9 Jul 2013 at 10:07

GoogleCodeExporter commented 8 years ago

Original comment by maxternal on 19 Jul 2013 at 12:00

GoogleCodeExporter commented 8 years ago
Okay, patching out the first couple
//0x1330168
hid5 &= ~0x80000000;?
//0x1330188
bcr |= 0x10000000;
(which are supposedly, actually, unreachable code)
didn't do any damage so now we can move on to see what else we can safely 
remove.

the ones that are left to test are
//0x1330208
hid0 = 0x00110c64;
//0x1330214
msr = 0x00002000; // enable floating point
//0x1330220
hid4 &= ~0x02000000;?
//0x133022c
hid0 |= 0x0000c000;

Original comment by maxternal on 19 Jul 2013 at 4:23

GoogleCodeExporter commented 8 years ago

Original comment by maxternal on 20 Jul 2013 at 1:19

GoogleCodeExporter commented 8 years ago
Okay, now the only one left is
msr = 0x00002000; // enable floating point
only that and the jump stub are written to the very beginning of 1-512

DONE

Original comment by maxternal on 24 Jul 2013 at 1:03