Search
lxdream.org :: lxdream/src/xlat/xltcache.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/xlat/xltcache.h
changeset 1091:186558374345
prev991:60c7fab9c880
next1149:da6124fceec6
author nkeynes
date Tue Dec 15 08:46:37 2009 +1000 (12 years ago)
permissions -rw-r--r--
last change Add side-by-side x86+sh4 disassembly output
Print SH4 state information and disassembly of the current block when
crashing.
Fix delay slot instruction in conditional branch not being marked as a
delay-slot instruction in the branch-not-taken path.
Rename REG_* defines in cpu.h to avoid conflict with translation defs
file annotate diff log raw
1.1 --- a/src/xlat/xltcache.h Wed Mar 04 23:12:21 2009 +0000
1.2 +++ b/src/xlat/xltcache.h Tue Dec 15 08:46:37 2009 +1000
1.3 @@ -51,7 +51,8 @@
1.4
1.5 #define XLAT_BLOCK_FOR_CODE(code) (((xlat_cache_block_t)code)-1)
1.6
1.7 -#define XLAT_BLOCK_MODE(code) (XLAT_BLOCK_FOR_CODE(code)->xlat_sh4_mode)
1.8 +#define XLAT_BLOCK_MODE(code) (XLAT_BLOCK_FOR_CODE(code)->xlat_sh4_mode)
1.9 +#define XLAT_RECOVERY_TABLE(code) ((xlat_recovery_record_t)(((char *)code) + XLAT_BLOCK_FOR_CODE(code)->recover_table_offset))
1.10
1.11 /**
1.12 * Initialize the translation cache
1.13 @@ -169,6 +170,12 @@
1.14 void xlat_flush_cache();
1.15
1.16 /**
1.17 + * Test if the given pointer is within the translation cache, and (is likely)
1.18 + * the start of a code block
1.19 + */
1.20 +gboolean xlat_is_code_pointer( void *p );
1.21 +
1.22 +/**
1.23 * Check the internal integrity of the cache
1.24 */
1.25 void xlat_check_integrity();
.