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:
parent
75574b7b97
commit
3e50b0e320
|
@ -28,11 +28,9 @@ std::string PPCDebugInterface::Disassemble(unsigned int address)
|
||||||
return "(No RAM here)";
|
return "(No RAM here)";
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 op = PowerPC::HostRead_Instruction(address);
|
const u32 op = PowerPC::HostRead_Instruction(address);
|
||||||
std::string disasm = GekkoDisassembler::Disassemble(op, address);
|
std::string disasm = GekkoDisassembler::Disassemble(op, address);
|
||||||
|
const UGeckoInstruction inst{op};
|
||||||
UGeckoInstruction inst;
|
|
||||||
inst.hex = PowerPC::HostRead_U32(address);
|
|
||||||
|
|
||||||
if (inst.OPCD == 1)
|
if (inst.OPCD == 1)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue