Boot: Fix BAT setup in Wii mode

HID4.SBE must be set before calling PowerPC::Update{D,I}BAT, otherwise
extended BATs will not be enabled.
This commit is contained in:
Léo Lam 2017-12-06 20:08:24 +01:00
parent 1a9d6b99e9
commit ecd7191b5a
2 changed files with 1 additions and 1 deletions

View File

@ -335,7 +335,6 @@ bool CBoot::BootUp(std::unique_ptr<BootParameters> boot)
if (config.bWii)
{
HID4.SBE = 1;
// Because there is no TMD to get the requested system (IOS) version from,
// we default to IOS58, which is the version used by the Homebrew Channel.
SetupWiiMemory();

View File

@ -78,6 +78,7 @@ void CBoot::SetupBAT(bool is_wii)
PowerPC::ppcState.spr[SPR_DBAT4L] = 0x10000002;
PowerPC::ppcState.spr[SPR_DBAT5U] = 0xd0001fff;
PowerPC::ppcState.spr[SPR_DBAT5L] = 0x1000002a;
HID4.SBE = 1;
}
PowerPC::DBATUpdated();
PowerPC::IBATUpdated();