diff options
author | mooglyguy <therealmogminer@gmail.com> | 2018-09-16 06:02:43 +0200 |
---|---|---|
committer | mooglyguy <therealmogminer@gmail.com> | 2018-09-16 06:06:45 +0200 |
commit | d5ff94a4c7410602558120453e9fca6ed0e524ff (patch) | |
tree | 36cd457a468726b016609cdf20bc01402d1bf2bd | |
parent | 1f3708ba8a2b9a683321615e63dba4fe085a6375 (diff) |
-sun4: Trigger memory access exceptions on access to undefined memory types. [Ryan Holtz]
-rw-r--r-- | src/mame/drivers/sun4.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mame/drivers/sun4.cpp b/src/mame/drivers/sun4.cpp index 6f15eaade6c..2031948cd08 100644 --- a/src/mame/drivers/sun4.cpp +++ b/src/mame/drivers/sun4.cpp @@ -710,6 +710,9 @@ uint32_t sun4_state::read_insn_data_4c(uint8_t asi, address_space &space, uint32 default: printf("sun4c: access to memory type not defined in sun4c\n"); + m_maincpu->set_mae(); + m_buserr[0] = 0x20; + m_buserr[1] = offset << 2; return 0; } } @@ -777,7 +780,10 @@ void sun4_state::write_insn_data_4c(uint8_t asi, address_space &space, uint32_t m_type1space->write32(space, tmp, data, mem_mask); return; default: - printf("sun4c: access to memory type not defined\n"); + //printf("sun4c: access to memory type not defined\n"); + m_maincpu->set_mae(); + m_buserr[0] = 0x8020; + m_buserr[1] = offset << 2; return; } } |