filename | src/sh4/sh4core.h |
changeset | 948:545c85cc56f1 |
prev | 946:d41ee7994db7 |
next | 951:63483914846f |
author | nkeynes |
date | Wed Jan 07 04:39:04 2009 +0000 (13 years ago) |
branch | lxdream-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 +00001.2 +++ b/src/sh4/sh4core.h Wed Jan 07 04:39:04 2009 +00001.3 @@ -72,7 +72,7 @@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 normally1.9 */1.10 #define CORE_EXIT_CONTINUE 11.12 @@ -239,6 +239,13 @@1.13 gboolean FASTCALL sh4_raise_tlb_exception( int );1.14 void FASTCALL sh4_accept_interrupt( void );1.16 +/**1.17 + * Complete the current instruction as part of a core exit. Prevents the1.18 + * system from being left in an inconsistent state when an exit is1.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) */
.