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.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.12 return &records[0]; // shouldn't happen
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];