mips1: handle no cache (nw)

This commit is contained in:
Patrick Mackinlay 2018-11-19 21:02:48 +07:00
parent 18d0fee8ba
commit aa186556c4

View File

@ -156,12 +156,14 @@ void mips1core_device_base::device_add_mconfig(machine_config &config)
void mips1core_device_base::icache_map(address_map &map)
{
map(0, m_icache_size - 1).ram().mirror(~(m_icache_size - 1));
if (m_icache_size)
map(0, m_icache_size - 1).ram().mirror(~(m_icache_size - 1));
}
void mips1core_device_base::dcache_map(address_map &map)
{
map(0, m_dcache_size - 1).ram().mirror(~(m_dcache_size - 1));
if (m_dcache_size)
map(0, m_dcache_size - 1).ram().mirror(~(m_dcache_size - 1));
}
void mips1core_device_base::device_start()