Search
lxdream.org :: lxdream/src/sh4/mmu.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/mmu.c
changeset 740:dd11269ee48b
prev736:a02d1475ccfd
next796:a2dc83592467
author nkeynes
date Wed Jul 16 10:40:10 2008 +0000 (12 years ago)
permissions -rw-r--r--
last change Rationalize the two SH4 run slice impls into sh4.c, and tidy up the vm exits.
Fixes broken soft-reset with emulator core
Fixes broken build without translator
file annotate diff log raw
1.1 --- a/src/sh4/mmu.c Mon Jul 14 07:44:42 2008 +0000
1.2 +++ b/src/sh4/mmu.c Wed Jul 16 10:40:10 2008 +0000
1.3 @@ -160,12 +160,12 @@
1.4 mmu_lrui = (val >> 26) & 0x3F;
1.5 val &= 0x00000301;
1.6 tmp = MMIO_READ( MMU, MMUCR );
1.7 - if( ((val ^ tmp) & MMUCR_AT) && sh4_is_using_xlat() ) {
1.8 + if( (val ^ tmp) & MMUCR_AT ) {
1.9 // AT flag has changed state - flush the xlt cache as all bets
1.10 // are off now. We also need to force an immediate exit from the
1.11 // current block
1.12 MMIO_WRITE( MMU, MMUCR, val );
1.13 - sh4_translate_flush_cache();
1.14 + sh4_flush_icache();
1.15 }
1.16 break;
1.17 case CCR:
.