diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-04-07 22:18:42 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-04-07 22:20:59 -0400 |
| commit | 3e50b0e3205e023c9f318d69fdfdaf4ff15947a3 (patch) | |
| tree | bdf0e2730f9de6dfb0f5e737f978ffd589d92650 /Source/Core | |
| parent | 75574b7b97faf2500e33761d670c22e45b7b9fd7 (diff) | |
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.
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/Debugger/PPCDebugInterface.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/Core/Core/Debugger/PPCDebugInterface.cpp b/Source/Core/Core/Debugger/PPCDebugInterface.cpp index 42694a09fe..e202f2a536 100644 --- a/Source/Core/Core/Debugger/PPCDebugInterface.cpp +++ b/Source/Core/Core/Debugger/PPCDebugInterface.cpp @@ -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) { |
