Search
lxdream.org :: lxdream/src/sh4/sh4trans.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4trans.c
changeset 417:bd927df302a9
prev410:5f8413358e7f
next430:467519b050f4
author nkeynes
date Sat Oct 06 08:52:08 2007 +0000 (16 years ago)
permissions -rw-r--r--
last change Fix undefined statement and other warning
file annotate diff log raw
1.1 --- a/src/sh4/sh4trans.c Sat Sep 29 11:06:40 2007 +0000
1.2 +++ b/src/sh4/sh4trans.c Sat Oct 06 08:52:08 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: sh4trans.c,v 1.6 2007-09-29 11:06:40 nkeynes Exp $
1.6 + * $Id: sh4trans.c,v 1.7 2007-10-04 08:47:27 nkeynes Exp $
1.7 *
1.8 * SH4 translation core module. This part handles the non-target-specific
1.9 * section of the translation.
1.10 @@ -50,9 +50,7 @@
1.11 }
1.12 }
1.13
1.14 - if( code ) { // fast path
1.15 - code = code();
1.16 - } else {
1.17 + if( code == NULL ) {
1.18 if( sh4r.pc > 0xFFFFFF00 ) {
1.19 syscall_invoke( sh4r.pc );
1.20 sh4r.in_delay_slot = 0;
1.21 @@ -63,8 +61,8 @@
1.22 if( code == NULL ) {
1.23 code = sh4_translate_basic_block( sh4r.pc );
1.24 }
1.25 - code = code();
1.26 }
1.27 + code = code();
1.28 }
1.29
1.30 if( sh4r.sh4_state != SH4_STATE_STANDBY ) {
.