Search
lxdream.org :: lxdream :: r1295:9067aff5522d
lxdream 0.9.1
released Jun 29
Download Now
changeset1295:9067aff5522d
parent1294:52be323fcab4
child1296:30ecee61f811
authornkeynes
dateMon Oct 15 21:19:22 2012 +1000 (6 years ago)
Merge workaround for interpreted mode accesses to the OC ram regions in AT=0
cases. Still broken for other cases
src/sh4/mmu.c
1.1 --- a/src/sh4/mmu.c Wed Sep 19 08:42:18 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 */
.