sh2.cpp/sh4.cpp: Don't emit fast RAM accesses when the debugger is enabled [Phil Bennett]

This commit is contained in:
Philip Bennett 2019-09-24 23:23:06 -07:00
parent 4af1e38970
commit 6e63799772
2 changed files with 100 additions and 94 deletions

View File

@ -1058,6 +1058,8 @@ void sh2_device::static_generate_memory_accessor(int size, int iswrite, const ch
UML_LABEL(block, label++); // label:
if ((machine().debug_flags & DEBUG_FLAG_ENABLED) == 0)
{
for (auto & elem : m_fastram)
{
if (elem.base != nullptr && (!iswrite || !elem.readonly))
@ -1115,6 +1117,7 @@ void sh2_device::static_generate_memory_accessor(int size, int iswrite, const ch
UML_LABEL(block, skip); // skip:
}
}
}
if (iswrite)
{

View File

@ -2713,6 +2713,8 @@ void sh34_base_device::static_generate_memory_accessor(int size, int iswrite, co
UML_LABEL(block, label++); // label:
if ((machine().debug_flags & DEBUG_FLAG_ENABLED) == 0)
{
for (auto & elem : m_fastram)
{
if (elem.base != nullptr && (!iswrite || !elem.readonly))
@ -2773,6 +2775,7 @@ void sh34_base_device::static_generate_memory_accessor(int size, int iswrite, co
UML_LABEL(block, skip); // skip:
}
}
}
if (iswrite)
{