From 1bce0a847b42a9cfa850b4d2153bc4ee19633b2b Mon Sep 17 00:00:00 2001 From: Fiora Date: Wed, 1 Oct 2014 12:54:06 -0700 Subject: [PATCH] Fix BAT register initial values in bootcode Probably won't affect any real things for now, since these BATs are already hardcoded into the memory handling functions. --- Source/Core/Core/Boot/Boot_BS2Emu.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Core/Core/Boot/Boot_BS2Emu.cpp b/Source/Core/Core/Boot/Boot_BS2Emu.cpp index 5bf9c4fbba..ac0bdd11c9 100644 --- a/Source/Core/Core/Boot/Boot_BS2Emu.cpp +++ b/Source/Core/Core/Boot/Boot_BS2Emu.cpp @@ -43,9 +43,9 @@ bool CBoot::EmulatedBS2_GC() // Set up MSR and the BAT SPR registers. UReg_MSR& m_MSR = ((UReg_MSR&)PowerPC::ppcState.msr); m_MSR.FP = 1; - PowerPC::ppcState.spr[SPR_IBAT0U] = 0x800001ff; + PowerPC::ppcState.spr[SPR_IBAT0U] = 0x80001fff; PowerPC::ppcState.spr[SPR_IBAT0L] = 0x00000002; - PowerPC::ppcState.spr[SPR_DBAT0U] = 0x800001ff; + PowerPC::ppcState.spr[SPR_DBAT0U] = 0x80001fff; PowerPC::ppcState.spr[SPR_DBAT0L] = 0x00000002; PowerPC::ppcState.spr[SPR_DBAT1U] = 0xc0001fff; PowerPC::ppcState.spr[SPR_DBAT1L] = 0x0000002a; @@ -325,11 +325,11 @@ bool CBoot::EmulatedBS2_Wii() // Set up MSR and the BAT SPR registers. UReg_MSR& m_MSR = ((UReg_MSR&)PowerPC::ppcState.msr); m_MSR.FP = 1; - PowerPC::ppcState.spr[SPR_IBAT0U] = 0x800001ff; + PowerPC::ppcState.spr[SPR_IBAT0U] = 0x80001fff; PowerPC::ppcState.spr[SPR_IBAT0L] = 0x00000002; PowerPC::ppcState.spr[SPR_IBAT4L] = 0x90001fff; PowerPC::ppcState.spr[SPR_IBAT4L] = 0x10000002; - PowerPC::ppcState.spr[SPR_DBAT0U] = 0x800001ff; + PowerPC::ppcState.spr[SPR_DBAT0U] = 0x80001fff; PowerPC::ppcState.spr[SPR_DBAT0L] = 0x00000002; PowerPC::ppcState.spr[SPR_DBAT1U] = 0xc0001fff; PowerPC::ppcState.spr[SPR_DBAT1L] = 0x0000002a;