Search
lxdream.org :: lxdream/src/sh4/xltcache.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/xltcache.c
changeset 527:14c9489f647e
prev515:5e5bb1dd369e
next561:533f6b478071
next586:2a3ba82cf243
author nkeynes
date Sun Nov 18 11:12:44 2007 +0000 (12 years ago)
permissions -rw-r--r--
last change x86-64 translator work-in-progress
file annotate diff log raw
1.1 --- a/src/sh4/xltcache.c Thu Nov 15 08:17:17 2007 +0000
1.2 +++ b/src/sh4/xltcache.c Sun Nov 18 11:12:44 2007 +0000
1.3 @@ -202,7 +202,7 @@
1.4 void *result = NULL;
1.5 void **page = xlat_lut[XLAT_LUT_PAGE(address)];
1.6 if( page != NULL ) {
1.7 - result = (void *)(((uint32_t)(page[XLAT_LUT_ENTRY(address)])) & 0xFFFFFFFC);
1.8 + result = (void *)(((uintptr_t)(page[XLAT_LUT_ENTRY(address)])) & (~((uintptr_t)0x03)));
1.9 }
1.10 return result;
1.11 }
.