Search
lxdream.org :: lxdream/src/sh4/sh4core.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4core.h
changeset 948:545c85cc56f1
prev946:d41ee7994db7
next951:63483914846f
author nkeynes
date Wed Jan 07 04:39:04 2009 +0000 (11 years ago)
branchlxdream-mem
permissions -rw-r--r--
last change Introduce sh4_finalize_instruction to clean-up on instruction exits
Remove the sh4_flush_icache special cases, now works through the
general case.
file annotate diff log raw
1.1 --- a/src/sh4/sh4core.h Tue Jan 06 01:58:08 2009 +0000
1.2 +++ b/src/sh4/sh4core.h Wed Jan 07 04:39:04 2009 +0000
1.3 @@ -72,7 +72,7 @@
1.4
1.5
1.6 /**
1.7 - * SH4 vm-exit flag - exit the current block but continue (eg exception handling)
1.8 + * SH4 vm-exit flag - exit the current block but continue normally
1.9 */
1.10 #define CORE_EXIT_CONTINUE 1
1.11
1.12 @@ -239,6 +239,13 @@
1.13 gboolean FASTCALL sh4_raise_tlb_exception( int );
1.14 void FASTCALL sh4_accept_interrupt( void );
1.15
1.16 +/**
1.17 + * Complete the current instruction as part of a core exit. Prevents the
1.18 + * system from being left in an inconsistent state when an exit is
1.19 + * triggered during a memory write.
1.20 + */
1.21 +void sh4_finalize_instruction( void );
1.22 +
1.23 /* Status Register (SR) bits */
1.24 #define SR_MD 0x40000000 /* Processor mode ( User=0, Privileged=1 ) */
1.25 #define SR_RB 0x20000000 /* Register bank (priviledged mode only) */
.