Search
lxdream.org :: lxdream :: r383:f597b73474cb
lxdream 0.9.1
released Jun 29
Download Now
changeset383:f597b73474cb
parent382:fce3f4da92ab
child384:c9d5c194984b
authornkeynes
dateSun Sep 16 06:59:47 2007 +0000 (16 years ago)
Fix return value for "translated but not entry point" addresses
src/sh4/xltcache.c
1.1 --- a/src/sh4/xltcache.c Thu Sep 13 08:28:01 2007 +0000
1.2 +++ b/src/sh4/xltcache.c Sun Sep 16 06:59:47 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: xltcache.c,v 1.3 2007-09-12 09:16:47 nkeynes Exp $
1.6 + * $Id: xltcache.c,v 1.4 2007-09-16 06:59:47 nkeynes Exp $
1.7 *
1.8 * Translation cache management. This part is architecture independent.
1.9 *
1.10 @@ -128,7 +128,12 @@
1.11 if( page == NULL ) {
1.12 return NULL;
1.13 }
1.14 - return page[XLAT_LUT_ENTRY(address)];
1.15 + void *result = page[XLAT_LUT_ENTRY(address)];
1.16 + if( result == ((void *)(1)) ) {
1.17 + return NULL;
1.18 + } else {
1.19 + return result;
1.20 + }
1.21 }
1.22
1.23 uint32_t xlat_get_block_size( void *block )
.