mirror of
https://github.com/holub/mame
synced 2025-04-19 15:11:37 +03:00
emu/emumem.h: Optimized cache line detection
This commit is contained in:
parent
518b42f83b
commit
73ffcbaf7d
@ -1877,15 +1877,13 @@ public:
|
||||
|
||||
// see if an address is within bounds, update it if not
|
||||
void check_address_r(offs_t address) {
|
||||
if(address >= m_addrstart_r && address <= m_addrend_r)
|
||||
return;
|
||||
m_root_read->lookup(address, m_addrstart_r, m_addrend_r, m_cache_r);
|
||||
if(address > m_addrend_r || address < m_addrstart_r)
|
||||
m_root_read->lookup(address, m_addrstart_r, m_addrend_r, m_cache_r);
|
||||
}
|
||||
|
||||
void check_address_w(offs_t address) {
|
||||
if(address >= m_addrstart_w && address <= m_addrend_w)
|
||||
return;
|
||||
m_root_write->lookup(address, m_addrstart_w, m_addrend_w, m_cache_w);
|
||||
if(address > m_addrend_w || address < m_addrstart_w)
|
||||
m_root_write->lookup(address, m_addrstart_w, m_addrend_w, m_cache_w);
|
||||
}
|
||||
|
||||
// accessor methods
|
||||
|
Loading…
Reference in New Issue
Block a user