# HG changeset patch # User nkeynes # Date 1231304072 0 # Node ID cc1e88104360277d0271448a0b6fe033cbdbfd48 # Parent d7833018931f3ce323d812a26325a1f87f5083cd Remove xlat_get_post_recovery - no longer used and doesn't work correctly anyway --- a/src/sh4/xltcache.c Wed Jan 07 04:39:58 2009 +0000 +++ b/src/sh4/xltcache.c Wed Jan 07 04:54:32 2009 +0000 @@ -202,29 +202,6 @@ return result; } -xlat_recovery_record_t xlat_get_post_recovery( void *code, void *native_pc, gboolean with_terminal ) -{ - if( code != NULL ) { - uintptr_t pc_offset = ((uint8_t *)native_pc) - ((uint8_t *)code); - xlat_cache_block_t block = XLAT_BLOCK_FOR_CODE(code); - uint32_t count = block->recover_table_size; - xlat_recovery_record_t records = (xlat_recovery_record_t)(&block->code[block->recover_table_offset]); - uint32_t posn; - if( count > 0 && !with_terminal ) - count--; - if( records[count-1].xlat_offset < pc_offset ) { - return NULL; - } - for( posn=count-1; posn > 0; posn-- ) { - if( records[posn-1].xlat_offset < pc_offset ) { - return &records[posn]; - } - } - return &records[0]; // shouldn't happen - } - return NULL; -} - xlat_recovery_record_t xlat_get_pre_recovery( void *code, void *native_pc ) { if( code != NULL ) { --- a/src/sh4/xltcache.h Wed Jan 07 04:39:58 2009 +0000 +++ b/src/sh4/xltcache.h Wed Jan 07 04:54:32 2009 +0000 @@ -101,22 +101,10 @@ void * FASTCALL xlat_get_code( sh4addr_t address ); /** - * Retrieve the post-instruction recovery record corresponding to the given - * native address, or NULL if there is no recovery code for the address. - * @param code The code block containing the recovery table. - * @param native_pc A pointer that must be within the currently executing - * @param with_terminal If false, return NULL instead of the final block record. - * return the first record before or equal to the given pc. - * translation block. - */ -struct xlat_recovery_record *xlat_get_post_recovery( void *code, void *native_pc, gboolean with_terminal ); - -/** * Retrieve the pre-instruction recovery record corresponding to the given * native address, or NULL if there is no recovery code for the address. * @param code The code block containing the recovery table. * @param native_pc A pointer that must be within the currently executing - * @param with_terminal If false, return NULL instead of the final block record. * return the first record before or equal to the given pc. * translation block. */