diff options
Diffstat (limited to 'src/devices')
-rw-r--r-- | src/devices/cpu/sh/sh2.cpp | 4 | ||||
-rw-r--r-- | src/devices/cpu/sh/sh2comn.cpp | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/devices/cpu/sh/sh2.cpp b/src/devices/cpu/sh/sh2.cpp index d38d8dcc6a8..e00c0e60c57 100644 --- a/src/devices/cpu/sh/sh2.cpp +++ b/src/devices/cpu/sh/sh2.cpp @@ -134,8 +134,8 @@ void sh2_device::sh7604_map(address_map &map) // map(0xe0000000, 0xe00001ff).mirror(0x1ffffe00).rw(FUNC(sh2_device::sh7604_r), FUNC(sh2_device::sh7604_w)); // TODO: internal map takes way too much resources if mirrored with 0x1ffffe00 // we eventually internalize again via trampoline & sh7604_device - // additionally SH7604 doc mentions that there's a DRAM located at 0xffff8000, - // so this is not a full mirror? (needs confirmation) + // Also area 0xffff8000-0xffffbfff is for synchronous DRAM mode, + // so this isn't actually a full mirror // SCI map(0xfffffe00, 0xfffffe00).rw(FUNC(sh2_device::smr_r), FUNC(sh2_device::smr_w)); map(0xfffffe01, 0xfffffe01).rw(FUNC(sh2_device::brr_r), FUNC(sh2_device::brr_w)); diff --git a/src/devices/cpu/sh/sh2comn.cpp b/src/devices/cpu/sh/sh2comn.cpp index e9503099fc2..7a7829e9db9 100644 --- a/src/devices/cpu/sh/sh2comn.cpp +++ b/src/devices/cpu/sh/sh2comn.cpp @@ -729,6 +729,10 @@ WRITE32_MEMBER( sh2_device::vcrdiv_w ) sh2_recalc_irq(); } +/* + * DIVU + */ + READ32_MEMBER( sh2_device::dvcr_r ) { return (m_divu_ovfie == true ? 2 : 0) | (m_divu_ovf == true ? 1 : 0); @@ -744,15 +748,11 @@ WRITE32_MEMBER( sh2_device::dvcr_w ) { m_divu_ovfie = bool(BIT(data, 1)); if (m_divu_ovfie == true) - LOG("SH2: unemulated DIVU OVF interrupt enable\n"); + logerror("SH2: unemulated DIVU OVF interrupt enable\n"); } sh2_recalc_irq(); } } - -/* - * DMAC - */ READ32_MEMBER( sh2_device::dvsr_r ) { |