Search
lxdream.org :: lxdream/src/sh4/xltcache.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/xltcache.c
changeset 383:f597b73474cb
prev376:8c7587af5a5d
next400:049d72a7a229
author nkeynes
date Sun Sep 16 06:59:47 2007 +0000 (14 years ago)
permissions -rw-r--r--
last change Fix return value for "translated but not entry point" addresses
file annotate diff log raw
1.1 --- a/src/sh4/xltcache.c Wed Sep 12 09:16:47 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 )
.