diff options
| author | 2013-06-30 14:40:06 +0000 | |
|---|---|---|
| committer | 2013-06-30 14:40:06 +0000 | |
| commit | 16eb7b1dedea72cb85c4d237f20232bcfec6b657 (patch) | |
| tree | ace2992e635629105c6439d7bde9f1efc0dcad44 /src/mess/machine/mac.c | |
| parent | 83f1e847fe6658b0999dec4b1c544dfc5456fac3 (diff) | |
cast cast revolution (nw)
Diffstat (limited to 'src/mess/machine/mac.c')
| -rw-r--r-- | src/mess/machine/mac.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mess/machine/mac.c b/src/mess/machine/mac.c index d0422c9c3b8..56ae5a058eb 100644 --- a/src/mess/machine/mac.c +++ b/src/mess/machine/mac.c @@ -1726,7 +1726,8 @@ WRITE8_MEMBER(mac_state::mac_via2_out_b) if (m_model == MODEL_MAC_II) { - m68k_set_hmmu_enable(m_maincpu, (data & 0x8) ? M68K_HMMU_DISABLE : M68K_HMMU_ENABLE_II); + m68000_device *m68k = downcast<m68000_device *>(m_maincpu.target()); + m68k_set_hmmu_enable(m68k, (data & 0x8) ? M68K_HMMU_DISABLE : M68K_HMMU_ENABLE_II); } } @@ -1841,7 +1842,8 @@ void mac_state::machine_reset() // default to 32-bit mode on LC if (m_model == MODEL_MAC_LC) { - m68k_set_hmmu_enable(m_maincpu, M68K_HMMU_DISABLE); + m68000_device *m68k = downcast<m68000_device *>(m_maincpu.target()); + m68k_set_hmmu_enable(m68k, M68K_HMMU_DISABLE); } m_last_taken_interrupt = -1; |
