Search
lxdream.org :: lxdream/src/sh4/sh4trans.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4trans.c
changeset 430:467519b050f4
prev417:bd927df302a9
next527:14c9489f647e
author nkeynes
date Mon Oct 08 12:09:06 2007 +0000 (14 years ago)
permissions -rw-r--r--
last change Fix compilation warnings
file annotate diff log raw
1.1 --- a/src/sh4/sh4trans.c Thu Oct 04 08:47:27 2007 +0000
1.2 +++ b/src/sh4/sh4trans.c Mon Oct 08 12:09:06 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: sh4trans.c,v 1.7 2007-10-04 08:47:27 nkeynes Exp $
1.6 + * $Id: sh4trans.c,v 1.8 2007-10-08 12:06:01 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 @@ -17,9 +17,11 @@
1.11 * GNU General Public License for more details.
1.12 */
1.13 #include <assert.h>
1.14 -#include "sh4core.h"
1.15 -#include "sh4trans.h"
1.16 -#include "xltcache.h"
1.17 +#include "eventq.h"
1.18 +#include "syscall.h"
1.19 +#include "sh4/sh4core.h"
1.20 +#include "sh4/sh4trans.h"
1.21 +#include "sh4/xltcache.h"
1.22
1.23 /**
1.24 * Execute a timeslice using translated code only (ie translate/execute loop)
1.25 @@ -27,7 +29,6 @@
1.26 */
1.27 uint32_t sh4_xlat_run_slice( uint32_t nanosecs )
1.28 {
1.29 - int i;
1.30 sh4r.slice_cycle = 0;
1.31
1.32 if( sh4r.sh4_state != SH4_STATE_RUNNING ) {
1.33 @@ -122,9 +123,9 @@
1.34 */
1.35 void *sh4_translate_and_run( sh4addr_t start )
1.36 {
1.37 - char buf[65536];
1.38 + unsigned char buf[65536];
1.39
1.40 - uint32_t pc = start;
1.41 + sh4addr_t pc = start;
1.42 int done;
1.43 xlat_output = buf;
1.44 uint8_t *eob = xlat_output + sizeof(buf);
.