Search
lxdream.org :: lxdream/src/sh4/mmu.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/mmu.c
changeset 1295:9067aff5522d
prev1217:677b1d85f1b4
next1298:d0eb2307b847
author nkeynes
date Mon Oct 15 21:19:22 2012 +1000 (7 years ago)
permissions -rw-r--r--
last change Merge workaround for interpreted mode accesses to the OC ram regions in AT=0
cases. Still broken for other cases
file annotate diff log raw
1.1 --- a/src/sh4/mmu.c Mon Feb 13 20:00:27 2012 +1000
1.2 +++ b/src/sh4/mmu.c Mon Oct 15 21:19:22 2012 +1000
1.3 @@ -1245,7 +1245,7 @@
1.4 }
1.5
1.6 if( (mmucr & MMUCR_AT) == 0 ) {
1.7 - return sh4_ext_address_space[VMA_TO_EXT_ADDR(addr)>>12];
1.8 + return sh4_address_space[addr>>12];
1.9 }
1.10
1.11 /* If we get this far, translation is required */
1.12 @@ -1315,7 +1315,7 @@
1.13 }
1.14
1.15 if( (mmucr & MMUCR_AT) == 0 ) {
1.16 - return sh4_ext_address_space[VMA_TO_EXT_ADDR(addr)>>12];
1.17 + return sh4_address_space[addr>>12];
1.18 }
1.19
1.20 /* If we get this far, translation is required */
1.21 @@ -1381,7 +1381,7 @@
1.22 }
1.23
1.24 if( (mmucr & MMUCR_AT) == 0 ) {
1.25 - return sh4_ext_address_space[VMA_TO_EXT_ADDR(addr)>>12];
1.26 + return sh4_address_space[addr>>12];
1.27 }
1.28
1.29 /* If we get this far, translation is required */
.