mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-26 07:35:40 +00:00
Small tweak to improve startup time
This commit is contained in:
parent
b9375bb09b
commit
68554108ac
|
@ -50,9 +50,6 @@ namespace Debugger
|
||||||
memset(m_intArray, NULL, sizeof(m_intArray));
|
memset(m_intArray, NULL, sizeof(m_intArray));
|
||||||
memset(m_portArray, NULL, sizeof(m_portArray));
|
memset(m_portArray, NULL, sizeof(m_portArray));
|
||||||
|
|
||||||
UpdateExecMasks();
|
|
||||||
UpdateMemMasks();
|
|
||||||
|
|
||||||
#ifdef DEBUGGER_HASTHREAD
|
#ifdef DEBUGGER_HASTHREAD
|
||||||
m_breakWait = false;
|
m_breakWait = false;
|
||||||
m_mutex = CThread::CreateMutex();
|
m_mutex = CThread::CreateMutex();
|
||||||
|
@ -106,6 +103,9 @@ namespace Debugger
|
||||||
|
|
||||||
void CCPUDebug::AttachToDebugger(CDebugger *theDebugger)
|
void CCPUDebug::AttachToDebugger(CDebugger *theDebugger)
|
||||||
{
|
{
|
||||||
|
UpdateExecMasks();
|
||||||
|
UpdateMemMasks();
|
||||||
|
|
||||||
debugger = theDebugger;
|
debugger = theDebugger;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -245,7 +245,6 @@ namespace Debugger
|
||||||
CMappedIO *mapped = new CMappedIO(this, name, group, dataSize, addr);
|
CMappedIO *mapped = new CMappedIO(this, name, group, dataSize, addr);
|
||||||
ios.push_back(mapped);
|
ios.push_back(mapped);
|
||||||
m_mappedIOTable->Add(mapped);
|
m_mappedIOTable->Add(mapped);
|
||||||
UpdateMemMasks();
|
|
||||||
return mapped;
|
return mapped;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -996,7 +995,6 @@ namespace Debugger
|
||||||
if (offset < 0 && addr < abs(offset) || offset > 0 && addr > 0xFFFFFFFF - offset)
|
if (offset < 0 && addr < abs(offset) || offset > 0 && addr > 0xFFFFFFFF - offset)
|
||||||
continue;
|
continue;
|
||||||
UINT32 offAddr = addr + offset;
|
UINT32 offAddr = addr + offset;
|
||||||
CRegion *offRegion = GetRegion(offAddr);
|
|
||||||
if (!region->CheckAddr(offAddr))
|
if (!region->CheckAddr(offAddr))
|
||||||
continue;
|
continue;
|
||||||
if (offset >= 0)
|
if (offset >= 0)
|
||||||
|
|
Loading…
Reference in a new issue