mirror of
https://github.com/holub/mame
synced 2025-04-24 09:20:02 +03:00
mips3: Revert removal of start and end checks as they potentially improve performance. (nw)
This commit is contained in:
parent
62718818af
commit
13077ed2ae
@ -912,11 +912,16 @@ void mips3_device::static_generate_memory_accessor(int mode, int size, int iswri
|
||||
{
|
||||
void *fastbase = (uint8_t *)m_fastram[ramnum].base - m_fastram[ramnum].start;
|
||||
uint32_t skip = label++;
|
||||
UML_CMP(block, I0, m_fastram[ramnum].end); // cmp i0,end
|
||||
UML_JMPc(block, COND_A, skip); // ja skip
|
||||
UML_CMP(block, I0, m_fastram[ramnum].start);// cmp i0,fastram_start
|
||||
UML_JMPc(block, COND_B, skip); // jb skip
|
||||
|
||||
if (m_fastram[ramnum].end != 0xffffffff)
|
||||
{
|
||||
UML_CMP(block, I0, m_fastram[ramnum].end); // cmp i0,end
|
||||
UML_JMPc(block, COND_A, skip); // ja skip
|
||||
}
|
||||
if (m_fastram[ramnum].start != 0x00000000)
|
||||
{
|
||||
UML_CMP(block, I0, m_fastram[ramnum].start);// cmp i0,fastram_start
|
||||
UML_JMPc(block, COND_B, skip); // jb skip
|
||||
}
|
||||
if (!iswrite)
|
||||
{
|
||||
if (size == 1)
|
||||
|
Loading…
Reference in New Issue
Block a user