Make memory breakpoint faster

Currently, slowmem is used at any time that memory breakpoints are in use.  This commit makes it so that whenever the DBAT gets updated, if the address is overllaping any memchecks, it forces the use of slowmem.  This allows to keep fastmem for any other cases and noticably increases performance when using memory breakpoints.
This commit is contained in:
aldelaro5
2017-02-28 17:32:17 -05:00
parent 52fe05af6b
commit 9ad6c8f334
4 changed files with 26 additions and 22 deletions

View File

@ -87,6 +87,7 @@ public:
// memory breakpoint
TMemCheck* GetMemCheck(u32 address);
bool OverlapsMemcheck(u32 address, u32 length);
void Remove(u32 address);
void Clear() { m_mem_checks.clear(); }