--- a/src/xlat/xltcache.h Mon Dec 12 21:15:44 2011 +1000 +++ b/src/xlat/xltcache.h Sat Mar 03 15:52:59 2012 +1000 @@ -49,6 +49,10 @@ unsigned char code[0]; } __attribute__((packed)); +typedef struct xlat_target_fns { + void (*unlink_block)(void *use_list); +} *xlat_target_fns_t; + typedef struct xlat_cache_block *xlat_cache_block_t; #define XLAT_BLOCK_FOR_CODE(code) (((xlat_cache_block_t)code)-1) @@ -63,6 +67,11 @@ void xlat_cache_init(void); /** + * Setup target support. + */ +void xlat_set_target_fns( xlat_target_fns_t target_fns ); + +/** * Returns the next block in the new cache list that can be written to by the * translator. */