Search
lxdream.org :: lxdream/src/sh4/xltcache.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/xltcache.c
changeset 580:508dc852a8eb
prev571:9bc09948d0f2
author nkeynes
date Tue Jan 15 02:20:30 2008 +0000 (12 years ago)
branchlxdream-mmu
permissions -rw-r--r--
last change Fix x86-64 support for mmu changes
file annotate diff log raw
1.1 --- a/src/sh4/xltcache.c Thu Jan 10 08:28:37 2008 +0000
1.2 +++ b/src/sh4/xltcache.c Tue Jan 15 02:20:30 2008 +0000
1.3 @@ -220,14 +220,14 @@
1.4 return NULL;
1.5 }
1.6 for( posn=count-1; posn > 0; posn-- ) {
1.7 - if( records[posn-1].xlat_pc <= (uintptr_t)native_pc ) {
1.8 + if( records[posn-1].xlat_pc < (uintptr_t)native_pc ) {
1.9 return &records[posn];
1.10 }
1.11 }
1.12 return &records[0]; // shouldn't happen
1.13 } else {
1.14 for( posn = 1; posn < count; posn++ ) {
1.15 - if( records[posn].xlat_pc > (uintptr_t)native_pc ) {
1.16 + if( records[posn].xlat_pc >= (uintptr_t)native_pc ) {
1.17 return &records[posn-1];
1.18 }
1.19 }
.