From aa186556c434b2786e88867103a78c8c0dcca7bf Mon Sep 17 00:00:00 2001 From: Patrick Mackinlay Date: Mon, 19 Nov 2018 21:02:48 +0700 Subject: [PATCH] mips1: handle no cache (nw) --- src/devices/cpu/mips/mips1.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/devices/cpu/mips/mips1.cpp b/src/devices/cpu/mips/mips1.cpp index 05e3996d96f..57c0c151d55 100644 --- a/src/devices/cpu/mips/mips1.cpp +++ b/src/devices/cpu/mips/mips1.cpp @@ -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()