mirror of
https://github.com/holub/mame
synced 2025-07-23 02:01:08 +03:00
sh2.cpp/sh4.cpp: Don't emit fast RAM accesses when the debugger is enabled [Phil Bennett]
This commit is contained in:
parent
4af1e38970
commit
6e63799772
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user