Search
lxdream.org :: lxdream/src/xlat/xltcache.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/xlat/xltcache.c
changeset 997:3f7b28afc4f9
prev991:60c7fab9c880
next1003:7b2688cbbca3
author nkeynes
date Tue Mar 24 11:04:51 2009 +0000 (15 years ago)
permissions -rw-r--r--
last change Fix off-by-one when looking up a PC right on the border-line
file annotate diff log raw
1.1 --- a/src/xlat/xltcache.c Wed Mar 04 23:12:21 2009 +0000
1.2 +++ b/src/xlat/xltcache.c Tue Mar 24 11:04:51 2009 +0000
1.3 @@ -211,7 +211,7 @@
1.4 xlat_recovery_record_t records = (xlat_recovery_record_t)(&block->code[block->recover_table_offset]);
1.5 uint32_t posn;
1.6 for( posn = 1; posn < count; posn++ ) {
1.7 - if( records[posn].xlat_offset >= pc_offset ) {
1.8 + if( records[posn].xlat_offset > pc_offset ) {
1.9 return &records[posn-1];
1.10 }
1.11 }
.