From 3e0d9af57efa63b4819e0e271d64b39b20daec42 Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Wed, 25 Sep 2013 20:13:43 -0700 Subject: [PATCH] Placeholders for memory access breakpoints. --- src/xenia/cpu/x64/x64_emitter.cc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/xenia/cpu/x64/x64_emitter.cc b/src/xenia/cpu/x64/x64_emitter.cc index c54936e32..e5118da16 100644 --- a/src/xenia/cpu/x64/x64_emitter.cc +++ b/src/xenia/cpu/x64/x64_emitter.cc @@ -633,6 +633,7 @@ void X64Emitter::GenerateBasicBlock(FunctionBlock* block) { ia, i.code, i.type->name); TraceInvalidInstruction(i); } + } // If we fall through, create the branch. if (block->outgoing_type == FunctionBlock::kTargetNone) { @@ -1642,6 +1643,14 @@ GpVar X64Emitter::ReadMemory( uint32_t cia, GpVar& addr, uint32_t size, bool acquire) { X86Compiler& c = compiler_; +#if 0 + Label no_match(c.newLabel()); + c.cmp(addr, imm(0x21004220)); + c.jne(no_match, kCondHintLikely); + c.int3(); + c.bind(no_match); +#endif + // Rebase off of memory base pointer. GpVar real_address = TouchMemoryAddress(cia, addr); @@ -1688,6 +1697,14 @@ void X64Emitter::WriteMemory( bool release) { X86Compiler& c = compiler_; +#if 0 + Label no_match(c.newLabel()); + c.cmp(addr, imm(0x21004220)); + c.jne(no_match, kCondHintLikely); + c.int3(); + c.bind(no_match); +#endif + // Rebase off of memory base pointer. GpVar real_address = TouchMemoryAddress(cia, addr);