diff options
author | 2009-03-25 21:28:39 +0000 | |
---|---|---|
committer | 2009-03-25 21:28:39 +0000 | |
commit | 64d977ed464670c26998a8516488402c6da4f8c0 (patch) | |
tree | 7598c05f806931fff544971f550966c58af2d094 /src/emu/cpu/sh4/sh4comn.c | |
parent | a35ef58b54fdead56bf3c21f898fce33d18687a1 (diff) |
crude 'good enough for naomi gd-rom' MMU implementation
save JVS eeprom settings.
Diffstat (limited to 'src/emu/cpu/sh4/sh4comn.c')
-rw-r--r-- | src/emu/cpu/sh4/sh4comn.c | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/emu/cpu/sh4/sh4comn.c b/src/emu/cpu/sh4/sh4comn.c index bd888fcd1e8..c6509271c33 100644 --- a/src/emu/cpu/sh4/sh4comn.c +++ b/src/emu/cpu/sh4/sh4comn.c @@ -645,7 +645,27 @@ WRITE32_HANDLER( sh4_internal_w ) { case MMUCR: // MMU Control if (data & 1) - fatalerror("SH4: MMUCR write enables MMU\n"); + { + printf("SH4 MMU Enabled\n"); + printf("If you're seeing this, but running something other than a Naomi GD-ROM game then chances are it won't work\n"); + printf("The MMU emulation is a hack specific to that system\n"); + sh4->sh4_mmu_enabled = 1; + + // should be a different bit! + { + int i; + for (i=0;i<64;i++) + { + sh4->sh4_tlb_address[i] = 0; + sh4->sh4_tlb_data[i] = 0; + } + + } + } + else + { + sh4->sh4_mmu_enabled = 0; + } break; |