From 6cda645911224595672879aef1580141860c5748 Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Mon, 14 Oct 2013 21:53:34 -0700 Subject: [PATCH] Adding instruction address identifier when not tracing. This can be removed later. --- src/xenia/cpu/x64/x64_emitter.cc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/xenia/cpu/x64/x64_emitter.cc b/src/xenia/cpu/x64/x64_emitter.cc index 5ead4bc1d..e388a8140 100644 --- a/src/xenia/cpu/x64/x64_emitter.cc +++ b/src/xenia/cpu/x64/x64_emitter.cc @@ -764,6 +764,15 @@ void X64Emitter::TraceUserCall() { X86Compiler& c = compiler_; if (!FLAGS_trace_user_calls) { + for (int n = 0; n < 5; n++) { + c.nop(); + } + SpillRegisters(); + GpVar aa(c.newGpVar()); + c.mov(aa, imm((uint64_t)symbol_->start_address)); + for (int n = 0; n < 2; n++) { + c.nop(); + } return; } @@ -799,6 +808,15 @@ void X64Emitter::TraceInstruction(InstrData& i) { X86Compiler& c = compiler_; if (!FLAGS_trace_instructions) { + for (int n = 0; n < 2; n++) { + c.nop(); + } + SpillRegisters(); + GpVar aa(c.newGpVar()); + c.mov(aa, imm((uint64_t)i.address)); + for (int n = 0; n < 2; n++) { + c.nop(); + } return; }