diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-01-09 21:49:50 +0100 |
|---|---|---|
| committer | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-01-27 15:22:41 +0100 |
| commit | be8d0b76ca9740138b9747234ebbfaa6caa9f5fb (patch) | |
| tree | 159d080db1ab886e52244b1bfcbc660a5a5eeba7 /Source/Core/Common/Debug/CodeTrace.cpp | |
| parent | 82f317087656382b855fec07df16f8d217e6fee4 (diff) | |
PowerPC: Remove PC macro.
Diffstat (limited to 'Source/Core/Common/Debug/CodeTrace.cpp')
| -rw-r--r-- | Source/Core/Common/Debug/CodeTrace.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/Common/Debug/CodeTrace.cpp b/Source/Core/Common/Debug/CodeTrace.cpp index d1cb913356..2b2694c1dd 100644 --- a/Source/Core/Common/Debug/CodeTrace.cpp +++ b/Source/Core/Common/Debug/CodeTrace.cpp @@ -60,7 +60,7 @@ InstructionAttributes CodeTrace::GetInstructionAttributes(const TraceOutput& ins // decision has to be made, otherwise used afterwards on a log file. InstructionAttributes tmp_attributes; tmp_attributes.instruction = instruction.instruction; - tmp_attributes.address = PC; + tmp_attributes.address = PowerPC::ppcState.pc; std::string instr = instruction.instruction; std::smatch match; @@ -108,9 +108,9 @@ TraceOutput CodeTrace::SaveCurrentInstruction() const { // Quickly save instruction and memory target for fast logging. TraceOutput output; - const std::string instr = PowerPC::debug_interface.Disassemble(PC); + const std::string instr = PowerPC::debug_interface.Disassemble(PowerPC::ppcState.pc); output.instruction = instr; - output.address = PC; + output.address = PowerPC::ppcState.pc; if (IsInstructionLoadStore(output.instruction)) output.memory_target = PowerPC::debug_interface.GetMemoryAddressFromInstruction(instr); |
