Search
lxdream.org :: lxdream/src/sh4/xltcache.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/xltcache.h
changeset 953:f4a156508ad1
prev906:268ea359f884
author nkeynes
date Sun Feb 15 21:47:39 2009 +0000 (15 years ago)
permissions -rw-r--r--
last change Compile in C99 standards mode, albeit with -D_GNU_SOURCE. Helps portability slightly as well
file annotate diff log raw
1.1 --- a/src/sh4/xltcache.h Thu Oct 30 00:06:49 2008 +0000
1.2 +++ b/src/sh4/xltcache.h Sun Feb 15 21:47:39 2009 +0000
1.3 @@ -41,7 +41,7 @@
1.4 int active; /* 0 = deleted, 1 = normal. 2 = accessed (temp-space only) */
1.5 uint32_t size;
1.6 void **lut_entry; /* For deletion */
1.7 - uint32_t fpscr_mask, fpscr; /* fpscr condition check */
1.8 + uint32_t xlat_sh4_mode; /* comparison with sh4r.xlat_sh4_mode */
1.9 uint32_t recover_table_offset; // Offset from code[0] of the recovery table;
1.10 uint32_t recover_table_size;
1.11 unsigned char code[0];
1.12 @@ -51,8 +51,7 @@
1.13
1.14 #define XLAT_BLOCK_FOR_CODE(code) (((xlat_cache_block_t)code)-1)
1.15
1.16 -#define XLAT_BLOCK_FPSCR_MASK(code) (XLAT_BLOCK_FOR_CODE(code)->fpscr_mask)
1.17 -#define XLAT_BLOCK_FPSCR(code) (XLAT_BLOCK_FOR_CODE(code)->fpscr_mask)
1.18 +#define XLAT_BLOCK_MODE(code) (XLAT_BLOCK_FOR_CODE(code)->xlat_sh4_mode)
1.19
1.20 /**
1.21 * Initialize the translation cache
1.22 @@ -102,22 +101,10 @@
1.23 void * FASTCALL xlat_get_code( sh4addr_t address );
1.24
1.25 /**
1.26 - * Retrieve the post-instruction recovery record corresponding to the given
1.27 - * native address, or NULL if there is no recovery code for the address.
1.28 - * @param code The code block containing the recovery table.
1.29 - * @param native_pc A pointer that must be within the currently executing
1.30 - * @param with_terminal If false, return NULL instead of the final block record.
1.31 - * return the first record before or equal to the given pc.
1.32 - * translation block.
1.33 - */
1.34 -struct xlat_recovery_record *xlat_get_post_recovery( void *code, void *native_pc, gboolean with_terminal );
1.35 -
1.36 -/**
1.37 * Retrieve the pre-instruction recovery record corresponding to the given
1.38 * native address, or NULL if there is no recovery code for the address.
1.39 * @param code The code block containing the recovery table.
1.40 * @param native_pc A pointer that must be within the currently executing
1.41 - * @param with_terminal If false, return NULL instead of the final block record.
1.42 * return the first record before or equal to the given pc.
1.43 * translation block.
1.44 */
.