From 990b9ddb55f7b6ad0466220823d2f6e5df54014e Mon Sep 17 00:00:00 2001 From: zilmar Date: Mon, 11 Feb 2013 19:24:18 +1100 Subject: [PATCH] Memory: Clean up some breakpoint warnings --- Source/Project64/N64 System/Mips/Memory Virtual Mem.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/Project64/N64 System/Mips/Memory Virtual Mem.cpp b/Source/Project64/N64 System/Mips/Memory Virtual Mem.cpp index 3adfd3d0f..e5079aec0 100644 --- a/Source/Project64/N64 System/Mips/Memory Virtual Mem.cpp +++ b/Source/Project64/N64 System/Mips/Memory Virtual Mem.cpp @@ -1796,7 +1796,10 @@ int CMipsMemoryVM::LH_NonMemory ( DWORD PAddr, DWORD * Value, int/* SignExtend*/ return true; } - g_Notify->BreakPoint(__FILE__,__LINE__); + if (PAddr >= 0x10000000 && PAddr < 0x16000000) + { + g_Notify->BreakPoint(__FILE__,__LINE__); + } // switch (PAddr & 0xFFF00000) { // default: * Value = 0; @@ -2062,7 +2065,7 @@ int CMipsMemoryVM::SB_NonMemory ( DWORD PAddr, BYTE Value ) { if (PAddr < RdramSize()) { DWORD OldProtect; - g_Recompiler->ClearRecompCode_Phys(PAddr & ~0xFFF,0x1000,CRecompiler::Remove_ProtectedMem); + g_Recompiler->ClearRecompCode_Phys(PAddr & ~0xFFF,0xFFC,CRecompiler::Remove_ProtectedMem); VirtualProtect(m_RDRAM+(PAddr & ~0xFFF),0xFFC,PAGE_READWRITE, &OldProtect); *(BYTE *)(m_RDRAM+PAddr) = Value; }