Search
lxdream.org :: lxdream/src/sh4/sh4trans.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4trans.c
changeset 1125:9dd5dee45db9
prev1112:4cac5e474d4c
next1149:da6124fceec6
author nkeynes
date Mon Sep 13 10:13:42 2010 +1000 (9 years ago)
permissions -rw-r--r--
last change Implement shadow-execution 'core' to run translator + interpreter side by
side (for testing)
file annotate diff log raw
1.1 --- a/src/sh4/sh4trans.c Tue Jul 13 18:23:16 2010 +1000
1.2 +++ b/src/sh4/sh4trans.c Mon Sep 13 10:13:42 2010 +1000
1.3 @@ -27,6 +27,8 @@
1.4 #include "sh4/mmu.h"
1.5 #include "xlat/xltcache.h"
1.6
1.7 +//#define SINGLESTEP 1
1.8 +
1.9 /**
1.10 * Execute a timeslice using translated code only (ie translate/execute loop)
1.11 */
1.12 @@ -113,6 +115,9 @@
1.13 if ( pc >= lastpc ) {
1.14 done = 2;
1.15 }
1.16 +#ifdef SINGLESTEP
1.17 + if( !done ) done = 2;
1.18 +#endif
1.19 } while( !done );
1.20 pc += (done - 2);
1.21
.