Search
lxdream.org :: lxdream :: r938:e377bd827c54
lxdream 0.9.1
released Jun 29
Download Now
changeset938:e377bd827c54 lxdream-mem
parent937:81b0c79d9788
child939:6f2302afeb89
authornkeynes
dateSat Dec 27 04:09:17 2008 +0000 (12 years ago)
branchlxdream-mem
Simplify xlat_invalidate_long slightly
src/sh4/xltcache.c
1.1 --- a/src/sh4/xltcache.c Sat Dec 27 03:14:59 2008 +0000
1.2 +++ b/src/sh4/xltcache.c Sat Dec 27 04:09:17 2008 +0000
1.3 @@ -146,7 +146,7 @@
1.4 void **page = xlat_lut[XLAT_LUT_PAGE(addr)];
1.5 if( page != NULL ) {
1.6 int entry = XLAT_LUT_ENTRY(addr);
1.7 - if( page[entry] != NULL || page[entry+1] != NULL ) {
1.8 + if( *(uint64_t *)&page[entry] != 0 ) {
1.9 xlat_flush_page_by_lut(page);
1.10 }
1.11 }
.