--- a/src/sh4/xltcache.h Sat Aug 09 10:48:03 2008 +0000 +++ b/src/sh4/xltcache.h Wed Oct 29 23:36:31 2008 +0000 @@ -41,6 +41,7 @@ int active; /* 0 = deleted, 1 = normal. 2 = accessed (temp-space only) */ uint32_t size; void **lut_entry; /* For deletion */ + uint32_t fpscr_mask, fpscr; /* fpscr condition check */ uint32_t recover_table_offset; // Offset from code[0] of the recovery table; uint32_t recover_table_size; unsigned char code[0]; @@ -48,6 +49,11 @@ typedef struct xlat_cache_block *xlat_cache_block_t; +#define XLAT_BLOCK_FOR_CODE(code) (((xlat_cache_block_t)code)-1) + +#define XLAT_BLOCK_FPSCR_MASK(code) (XLAT_BLOCK_FOR_CODE(code)->fpscr_mask) +#define XLAT_BLOCK_FPSCR(code) (XLAT_BLOCK_FOR_CODE(code)->fpscr_mask) + /** * Initialize the translation cache */