diff options
| author | Léo Lam <leo@innovatetechnologi.es> | 2019-05-24 14:51:06 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-24 14:51:06 +0200 |
| commit | e07b514b6244913dbe14aa6949ff68f5775bfa4a (patch) | |
| tree | 0d42c1c40c70acc0502039e751ba4ceea51e4a54 /Source | |
| parent | 9373bc3aa982179c70acf405469e4697fa9368a9 (diff) | |
| parent | 27cb407ecff9eb135d82024487988ec0ee2fca3e (diff) | |
Merge pull request #8115 from booto/powerpc_pvr
PowerPC: Add Broadway's PVR (retail Wii)
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/Core/PowerPC/PowerPC.cpp | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/Source/Core/Core/PowerPC/PowerPC.cpp b/Source/Core/Core/PowerPC/PowerPC.cpp index 122e94e0eb..3dd7894915 100644 --- a/Source/Core/Core/PowerPC/PowerPC.cpp +++ b/Source/Core/Core/PowerPC/PowerPC.cpp @@ -145,17 +145,25 @@ static void ResetRegisters() std::fill(std::begin(ppcState.gpr), std::end(ppcState.gpr), 0U); std::fill(std::begin(ppcState.spr), std::end(ppcState.spr), 0U); - /* - 0x00080200 = lonestar 2.0 - 0x00088202 = lonestar 2.2 - 0x70000100 = gekko 1.0 - 0x00080100 = gekko 2.0 - 0x00083203 = gekko 2.3a - 0x00083213 = gekko 2.3b - 0x00083204 = gekko 2.4 - 0x00083214 = gekko 2.4e (8SE) - retail HW2 - */ - ppcState.spr[SPR_PVR] = 0x00083214; + // Gamecube: + // 0x00080200 = lonestar 2.0 + // 0x00088202 = lonestar 2.2 + // 0x70000100 = gekko 1.0 + // 0x00080100 = gekko 2.0 + // 0x00083203 = gekko 2.3a + // 0x00083213 = gekko 2.3b + // 0x00083204 = gekko 2.4 + // 0x00083214 = gekko 2.4e (8SE) - retail HW2 + // Wii: + // 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_ECID_U] = 0x0d96e200; ppcState.spr[SPR_ECID_M] = 0x1840c00d; |
