From 32a51e28e2718760ca4005d0122757edb324c1cf Mon Sep 17 00:00:00 2001 From: AJR Date: Thu, 27 Jun 2019 16:58:25 -0400 Subject: m68040: Stop CINV DATA instruction from causing F-line exception --- src/devices/cpu/m68000/m68k_in.lst | 3 +++ src/devices/cpu/m68000/m68kops.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/devices/cpu/m68000/m68k_in.lst b/src/devices/cpu/m68000/m68k_in.lst index f7d292e0962..93e7e46f367 100644 --- a/src/devices/cpu/m68000/m68k_in.lst +++ b/src/devices/cpu/m68000/m68k_in.lst @@ -8064,6 +8064,9 @@ f400 ff20 cinv l . 4:16 // u8 scope = (ir >> 3) & 3; // logerror("68040 %s: pc=%08x ir=%04x cache=%d scope=%d register=%d\n", ir & 0x0020 ? "cpush" : "cinv", m_ppc, ir, cache, scope, ir & 7); switch (cache) { + case 1: + // TODO: data cache + break; case 2: case 3: // we invalidate/push the whole instruction cache diff --git a/src/devices/cpu/m68000/m68kops.cpp b/src/devices/cpu/m68000/m68kops.cpp index b66253e4e00..2c25ae79b5a 100644 --- a/src/devices/cpu/m68000/m68kops.cpp +++ b/src/devices/cpu/m68000/m68kops.cpp @@ -31245,6 +31245,9 @@ void m68000_base_device::xf400_cinv_l_4() // u8 scope = (ir >> 3) & 3; // logerror("68040 %s: pc=%08x ir=%04x cache=%d scope=%d register=%d\n", ir & 0x0020 ? "cpush" : "cinv", m_ppc, ir, cache, scope, ir & 7); switch (cache) { + case 1: + // TODO: data cache + break; case 2: case 3: // we invalidate/push the whole instruction cache -- cgit v1.2.3