Merge pull request #6607 from lioncash/ppc

PPCDebugInterface: Remove redundant HostRead_U32() call in Disassemble()
This commit is contained in:
Léo Lam 2018-04-08 10:25:43 +02:00 committed by GitHub
commit 0a290f5d11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -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)
{