ppcdrc.cpp: Fixed debug flag test causing fast RAM accesses to be erroneously emitted. Hopefully fixes unusual breakpoint/watchpoint behaviour [Phil Bennett]

This commit is contained in:
Philip Bennett 2019-09-24 23:18:54 -07:00
parent 82a7979723
commit 4af1e38970

View File

@ -1068,7 +1068,7 @@ void ppc_device::static_generate_memory_accessor(int mode, int size, int iswrite
UML_AND(block, I0, I0, 0x7fffffff); // and i0,i0,0x7fffffff
UML_XOR(block, I0, I0, (mode & MODE_LITTLE_ENDIAN) ? (8 - size) : 0); // xor i0,i0,8-size
if ((machine().debug_flags & DEBUG_FLAG_ENABLED) != 0)
if ((machine().debug_flags & DEBUG_FLAG_ENABLED) == 0)
for (ramnum = 0; ramnum < PPC_MAX_FASTRAM; ramnum++)
if (m_fastram[ramnum].base != nullptr && (!iswrite || !m_fastram[ramnum].readonly))
{