Search
lxdream.org :: lxdream/src/sh4/sh4mmio.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4mmio.c
changeset 413:bff683bc5228
prev336:c3455be86ee2
next428:338966c8aed0
author nkeynes
date Tue Oct 02 08:48:27 2007 +0000 (13 years ago)
permissions -rw-r--r--
last change Abort if MMUAT is turned on
file annotate diff log raw
1.1 --- a/src/sh4/sh4mmio.c Sat Jan 27 12:04:22 2007 +0000
1.2 +++ b/src/sh4/sh4mmio.c Tue Oct 02 08:48:27 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: sh4mmio.c,v 1.12 2007-01-27 12:04:22 nkeynes Exp $
1.6 + * $Id: sh4mmio.c,v 1.13 2007-10-02 08:48:27 nkeynes Exp $
1.7 *
1.8 * Miscellaneous and not-really-implemented SH4 peripheral modules. Also
1.9 * responsible for including the IMPL side of the SH4 MMIO pages.
1.10 @@ -39,11 +39,17 @@
1.11 void mmio_region_MMU_write( uint32_t reg, uint32_t val )
1.12 {
1.13 switch(reg) {
1.14 - case CCR:
1.15 - mmu_set_cache_mode( val & (CCR_OIX|CCR_ORA) );
1.16 - break;
1.17 - default:
1.18 - break;
1.19 + case MMUCR:
1.20 + if( val & MMUCR_AT ) {
1.21 + ERROR( "MMU Address translation not implemented!" );
1.22 + dreamcast_stop();
1.23 + }
1.24 + break;
1.25 + case CCR:
1.26 + mmu_set_cache_mode( val & (CCR_OIX|CCR_ORA) );
1.27 + break;
1.28 + default:
1.29 + break;
1.30 }
1.31 MMIO_WRITE( MMU, reg, val );
1.32 }
.