Search
lxdream.org :: lxdream/src/sh4/sh4.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4.c
changeset 585:371342a39c09
prev577:a181aeacd6e8
next1065:bc1cc0c54917
author nkeynes
date Tue Jan 15 11:07:32 2008 +0000 (13 years ago)
branchlxdream-mmu
permissions -rw-r--r--
last change Handle sh4 aborts/reset within the translator
file annotate diff log raw
1.1 --- a/src/sh4/sh4.c Mon Jan 14 10:23:49 2008 +0000
1.2 +++ b/src/sh4/sh4.c Tue Jan 15 11:07:32 2008 +0000
1.3 @@ -261,6 +261,7 @@
1.4 */
1.5 gboolean sh4_raise_exception( int code )
1.6 {
1.7 + fprintf( stderr, "EXC %04X: %08X\n", code, sh4r.pc );
1.8 RAISE( code, EXV_EXCEPTION );
1.9 }
1.10
1.11 @@ -282,7 +283,7 @@
1.12 gboolean sh4_raise_trap( int trap )
1.13 {
1.14 MMIO_WRITE( MMU, TRA, trap<<2 );
1.15 - return sh4_raise_exception( EXC_TRAP );
1.16 + RAISE( EXC_TRAP, EXV_EXCEPTION );
1.17 }
1.18
1.19 gboolean sh4_raise_slot_exception( int normal_code, int slot_code ) {
.