PPCDebugInterface: Remove redundant HostRead_U32() call in Disassemble()

We already read the necessary information with the
HostRead_Instruction() call. Internally, it calls HostRead_U32() as
well, so there's no difference in behavior.
This commit is contained in:
Lioncash 2018-04-07 22:18:42 -04:00
parent 75574b7b97
commit 3e50b0e320
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)
{