Search
lxdream.org :: lxdream/src/sh4/sh4trans.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4trans.h
changeset 577:a181aeacd6e8
prev571:9bc09948d0f2
next585:371342a39c09
author nkeynes
date Mon Jan 14 10:23:49 2008 +0000 (15 years ago)
branchlxdream-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 +0000
1.2 +++ b/src/sh4/sh4trans.h Mon Jan 14 10:23:49 2008 +0000
1.3 @@ -35,6 +35,22 @@
1.4 #define MAX_RECOVERY_SIZE 2048
1.5
1.6 /**
1.7 + * Translation flag - exit the current block but continue (eg exception handling)
1.8 + */
1.9 +#define XLAT_EXIT_CONTINUE 1
1.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 2
1.15 +
1.16 +/**
1.17 + * Translation flag - exit the current block and halt immediately for a system
1.18 + * breakpoint.
1.19 + */
1.20 +#define XLAT_EXIT_BREAKPOINT 3
1.21 +
1.22 +/**
1.23 */
1.24 uint32_t sh4_xlat_run_slice( uint32_t nanosecs );
1.25
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 with
1.33 + * the specified exit code (one of the XLAT_EXIT_* values).
1.34 + */
1.35 +void sh4_translate_exit( int exit_code );
.