Search
lxdream.org :: lxdream :: r413:bff683bc5228
lxdream 0.9.1
released Jun 29
Download Now
changeset413:bff683bc5228
parent412:d58e4d69de16
child414:fd8e96bc513e
authornkeynes
dateTue Oct 02 08:48:27 2007 +0000 (13 years ago)
Abort if MMUAT is turned on
src/sh4/sh4mmio.c
1.1 --- a/src/sh4/sh4mmio.c Mon Oct 01 11:51:25 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 }
.