PowerPC: Add Broadway's PVR (retail Wii)

This commit is contained in:
booto 2019-05-23 00:30:14 -04:00
parent 702344ba9c
commit 27cb407ecf

View File

@ -145,17 +145,25 @@ static void ResetRegisters()
std::fill(std::begin(ppcState.gpr), std::end(ppcState.gpr), 0U); std::fill(std::begin(ppcState.gpr), std::end(ppcState.gpr), 0U);
std::fill(std::begin(ppcState.spr), std::end(ppcState.spr), 0U); std::fill(std::begin(ppcState.spr), std::end(ppcState.spr), 0U);
/* // Gamecube:
0x00080200 = lonestar 2.0 // 0x00080200 = lonestar 2.0
0x00088202 = lonestar 2.2 // 0x00088202 = lonestar 2.2
0x70000100 = gekko 1.0 // 0x70000100 = gekko 1.0
0x00080100 = gekko 2.0 // 0x00080100 = gekko 2.0
0x00083203 = gekko 2.3a // 0x00083203 = gekko 2.3a
0x00083213 = gekko 2.3b // 0x00083213 = gekko 2.3b
0x00083204 = gekko 2.4 // 0x00083204 = gekko 2.4
0x00083214 = gekko 2.4e (8SE) - retail HW2 // 0x00083214 = gekko 2.4e (8SE) - retail HW2
*/ // Wii:
ppcState.spr[SPR_PVR] = 0x00083214; // 0x00087102 = broadway retail hw
if (SConfig::GetInstance().bWii)
{
ppcState.spr[SPR_PVR] = 0x00087102;
}
else
{
ppcState.spr[SPR_PVR] = 0x00083214;
}
ppcState.spr[SPR_HID1] = 0x80000000; // We're running at 3x the bus clock ppcState.spr[SPR_HID1] = 0x80000000; // We're running at 3x the bus clock
ppcState.spr[SPR_ECID_U] = 0x0d96e200; ppcState.spr[SPR_ECID_U] = 0x0d96e200;
ppcState.spr[SPR_ECID_M] = 0x1840c00d; ppcState.spr[SPR_ECID_M] = 0x1840c00d;