Skip to content
Permalink
Browse files
Merge pull request #6607 from lioncash/ppc
PPCDebugInterface: Remove redundant HostRead_U32() call in Disassemble()
  • Loading branch information
leoetlino committed Apr 8, 2018
2 parents 2a535d5 + 3e50b0e commit 0a290f5
Showing 1 changed file with 2 additions and 4 deletions.
@@ -28,11 +28,9 @@ std::string PPCDebugInterface::Disassemble(unsigned int address)
return "(No RAM here)";
}

u32 op = PowerPC::HostRead_Instruction(address);
const u32 op = PowerPC::HostRead_Instruction(address);
std::string disasm = GekkoDisassembler::Disassemble(op, address);

UGeckoInstruction inst;
inst.hex = PowerPC::HostRead_U32(address);
const UGeckoInstruction inst{op};

if (inst.OPCD == 1)
{

0 comments on commit 0a290f5

Please sign in to comment.