summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author Ryan Holtz <ryan.holtz@arrowheadgs.com>2019-12-02 07:58:11 +0100
committer Ryan Holtz <ryan.holtz@arrowheadgs.com>2019-12-02 07:58:48 +0100
commit8af1257413d7b0cee333a3c0ad99847ba61d7842 (patch)
tree0097ee90bbf369ff793a1dd4ef70729c9b20e9e3 /src
parent42a69e5c6a147e495f55d5f72dcab3916619c7db (diff)
-sun4c_mmu: Fixed a couple of sun4_75 self-tests, nw
Diffstat (limited to 'src')
-rw-r--r--src/devices/machine/sun4c_mmu.cpp11
-rw-r--r--src/devices/machine/sun4c_mmu.h2
2 files changed, 5 insertions, 8 deletions
diff --git a/src/devices/machine/sun4c_mmu.cpp b/src/devices/machine/sun4c_mmu.cpp
index 9dd8f90c433..1ff3e9da52f 100644
--- a/src/devices/machine/sun4c_mmu.cpp
+++ b/src/devices/machine/sun4c_mmu.cpp
@@ -357,12 +357,8 @@ void sun4_mmu_base_device::system_w(const uint32_t offset, const uint32_t data,
LOGMASKED(LOG_BUSERROR, "write bus error %08x = %08x & %08x\n", offset << 2, data, mem_mask);
if (masked_offset == 0)
m_buserr[0] = (data & 0x000000ff) | 0x00008000;
- else if (masked_offset == 1)
- m_buserr[1] = data;
- else if (masked_offset == 2)
- m_buserr[2] = data & 0x000000b0;
- else if (masked_offset == 3)
- m_buserr[3] = (data & 0x3fffffff) | ((data & 0x20000000) << 1) | ((data & 0x20000000) << 2);
+ else
+ m_buserr[masked_offset] = data;
return;
}
@@ -373,7 +369,7 @@ void sun4_mmu_base_device::system_w(const uint32_t offset, const uint32_t data,
case 9: // cache data
LOGMASKED(LOG_CACHE_DATA, "write cache data %08x = %08x & %08x\n", offset << 2, data, mem_mask);
- m_cachedata[offset & m_cache_mask] = data | (1 << 19);
+ m_cachedata[offset & m_cache_mask] = data;
return;
case 0xf: // UART bypass
@@ -484,6 +480,7 @@ uint32_t sun4_mmu_base_device::insn_data_r(const uint32_t offset, const uint32_t
// supervisor program fetches in boot state are special
if (MODE == SUPER_INSN && m_fetch_bootrom)
{
+ m_cpu->eat_cycles(50);
return m_rom_ptr[offset & 0x1ffff];
}
diff --git a/src/devices/machine/sun4c_mmu.h b/src/devices/machine/sun4c_mmu.h
index f3567e7631d..1386867a7ce 100644
--- a/src/devices/machine/sun4c_mmu.h
+++ b/src/devices/machine/sun4c_mmu.h
@@ -147,7 +147,7 @@ protected:
uint32_t m_cache_context;
uint8_t m_system_enable;
bool m_fetch_bootrom;
- uint32_t m_buserr[4];
+ uint32_t m_buserr[16];
// Pre-computed data for optimization purposes
std::unique_ptr<std::unique_ptr<uint32_t[]>[]> m_segmap_masked;