filename | src/sh4/sh4trans.h |
changeset | 577:a181aeacd6e8 |
prev | 571:9bc09948d0f2 |
next | 585:371342a39c09 |
author | nkeynes |
date | Mon Jan 14 10:23:49 2008 +0000 (15 years ago) |
branch | lxdream-mmu |
permissions | -rw-r--r-- |
last change | Remove asm file and convert to inline (easier to cope with platform conventions) Add breakpoint support Add MMU store-queue support |
file | annotate | diff | log | raw |
1.1 --- a/src/sh4/sh4trans.h Thu Jan 10 08:28:37 2008 +00001.2 +++ b/src/sh4/sh4trans.h Mon Jan 14 10:23:49 2008 +00001.3 @@ -35,6 +35,22 @@1.4 #define MAX_RECOVERY_SIZE 20481.6 /**1.7 + * Translation flag - exit the current block but continue (eg exception handling)1.8 + */1.9 +#define XLAT_EXIT_CONTINUE 11.10 +1.11 +/**1.12 + * Translation flag - exit the current block and halt immediately (eg fatal error)1.13 + */1.14 +#define XLAT_EXIT_HALT 21.15 +1.16 +/**1.17 + * Translation flag - exit the current block and halt immediately for a system1.18 + * breakpoint.1.19 + */1.20 +#define XLAT_EXIT_BREAKPOINT 31.21 +1.22 +/**1.23 */1.24 uint32_t sh4_xlat_run_slice( uint32_t nanosecs );1.26 @@ -79,3 +95,9 @@1.27 * @return This method never returns.1.28 */1.29 void sh4_translate_unwind_stack( gboolean is_completion, unwind_thunk_t thunk );1.30 +1.31 +/**1.32 + * From within the translator, immediately exit the current translation block with1.33 + * the specified exit code (one of the XLAT_EXIT_* values).1.34 + */1.35 +void sh4_translate_exit( int exit_code );
.