From 0a671d3fffbf8e806a451ccc044598c4d61b72f0 Mon Sep 17 00:00:00 2001 From: Nayla Hanegan Date: Fri, 23 Aug 2024 17:59:17 -0400 Subject: [PATCH] commit this --- Source/Core/Core/GeckoCode.cpp | 4 ++-- Source/Core/Core/PowerPC/PPCCache.cpp | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Source/Core/Core/GeckoCode.cpp b/Source/Core/Core/GeckoCode.cpp index 8d304d1cb0..a6aa7d39bc 100644 --- a/Source/Core/Core/GeckoCode.cpp +++ b/Source/Core/Core/GeckoCode.cpp @@ -212,9 +212,9 @@ static Installation InstallCodeHandlerLocked(const Core::CPUThreadGuard& guard) PowerPC::MMU::HostWrite_U32(guard, 0x00000000, addr); } PowerPC::MMU::HostWrite_U32(guard, ((codelist_base_address & 0xFFFF0000) >> 16) + 0x3DE00000, - 0x80001904); + 0x800018F8); PowerPC::MMU::HostWrite_U32(guard, (codelist_base_address & 0x0000FFFF) + 0x61EF0000, - 0x80001908); + 0x800018FC); } // Write a magic value to 'gameid' (codehandleronly does not actually read this). diff --git a/Source/Core/Core/PowerPC/PPCCache.cpp b/Source/Core/Core/PowerPC/PPCCache.cpp index d5e7736551..ac150d61a9 100644 --- a/Source/Core/Core/PowerPC/PPCCache.cpp +++ b/Source/Core/Core/PowerPC/PPCCache.cpp @@ -390,7 +390,6 @@ void InstructionCache::Invalidate(Memory::MemoryManager& memory, JitInterface& j u32 addr) { auto& system = Core::System::GetInstance(); - auto& memory = system.GetMemory(); auto& ppc_state = system.GetPPCState(); if (!HID0(ppc_state).ICE || m_disable_icache) return;