Search
lxdream.org :: lxdream/src/xlat/xltcache.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/xlat/xltcache.c
changeset 1214:49152b3d8b75
prev1195:072131b61d2a
next1263:b3de98d19faf
author nkeynes
date Mon Mar 05 11:41:03 2012 +1000 (12 years ago)
permissions -rw-r--r--
last change Small cleanups:
Refactor the post-windowing setup into gl_init_driver() in video_gl.c
Move gl_sl.c into src/drivers and tidy up a bit.
Fix OS X compiling plugins with -mdynamic-no-pic
file annotate diff log raw
1.1 --- a/src/xlat/xltcache.c Mon Dec 12 21:15:44 2011 +1000
1.2 +++ b/src/xlat/xltcache.c Mon Mar 05 11:41:03 2012 +1000
1.3 @@ -69,6 +69,7 @@
1.4
1.5 static void **xlat_lut[XLAT_LUT_PAGES];
1.6 static gboolean xlat_initialized = FALSE;
1.7 +static xlat_target_fns_t xlat_target = NULL;
1.8
1.9 void xlat_cache_init(void)
1.10 {
1.11 @@ -93,6 +94,11 @@
1.12 xlat_flush_cache();
1.13 }
1.14
1.15 +void xlat_set_target_fns( xlat_target_fns_t target )
1.16 +{
1.17 + xlat_target = target;
1.18 +}
1.19 +
1.20 /**
1.21 * Reset the cache structure to its default state
1.22 */
1.23 @@ -131,7 +137,8 @@
1.24 {
1.25 block->active = 0;
1.26 *block->lut_entry = block->chain;
1.27 - sh4_translate_unlink_block( block->use_list );
1.28 + if( block->use_list != NULL )
1.29 + xlat_target->unlink_block(block->use_list);
1.30 }
1.31
1.32 static void xlat_flush_page_by_lut( void **page )
.