Search
lxdream.org :: lxdream/src/sh4/xltcache.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/xltcache.h
changeset 366:6fb0d05152d7
prev359:c588dce7ebde
next376:8c7587af5a5d
author nkeynes
date Tue Sep 04 08:32:44 2007 +0000 (13 years ago)
permissions -rw-r--r--
last change Add method to retrieve the size of a block, given the code pointer (useful
for eg disassembling the block)
file annotate diff log raw
1.1 --- a/src/sh4/xltcache.h Thu Aug 23 12:33:27 2007 +0000
1.2 +++ b/src/sh4/xltcache.h Tue Sep 04 08:32:44 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: xltcache.h,v 1.1 2007-08-23 12:33:27 nkeynes Exp $
1.6 + * $Id: xltcache.h,v 1.2 2007-09-04 08:32:44 nkeynes Exp $
1.7 *
1.8 * Translation cache support (architecture independent)
1.9 *
1.10 @@ -60,6 +60,12 @@
1.11 void *xlat_get_code( sh4addr_t address );
1.12
1.13 /**
1.14 + * Retrieve the size of the code block starting at the specified pointer. If the
1.15 + * pointer is not a valid code block, the return value is undefined.
1.16 + */
1.17 +uint32_t xlat_get_block_size( void *ptr );
1.18 +
1.19 +/**
1.20 * Flush the code cache for the page containing the given address
1.21 */
1.22 void xlat_flush_page( sh4addr_t address );
.