PowerPC/MMU: Refactor to class, move to System.

This commit is contained in:
Admiral H. Curtiss 2023-03-12 20:31:10 +01:00
parent 012044eb64
commit 8dabd1a025
No known key found for this signature in database
GPG key ID: F051B4C4044F33FB
51 changed files with 1314 additions and 1149 deletions

View file

@ -987,10 +987,11 @@ void CodeViewWidget::OnReplaceInstruction()
const u32 addr = GetContextAddress();
if (!PowerPC::HostIsInstructionRAMAddress(guard, addr))
if (!PowerPC::MMU::HostIsInstructionRAMAddress(guard, addr))
return;
const PowerPC::TryReadInstResult read_result = PowerPC::TryReadInstruction(addr);
const PowerPC::TryReadInstResult read_result =
guard.GetSystem().GetMMU().TryReadInstruction(addr);
if (!read_result.valid)
return;