Search
lxdream.org :: lxdream/src/test/testsh4x86.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/test/testsh4x86.c
changeset 990:ae329de3c8ab
prev968:6fb1481859a4
next1065:bc1cc0c54917
author nkeynes
date Sat Jun 13 00:50:48 2009 +0000 (14 years ago)
permissions -rw-r--r--
last change Build drivers with library dependencies as shared objects (ie plugins)
file annotate diff log raw
1.1 --- a/src/test/testsh4x86.c Thu Jan 15 11:23:20 2009 +0000
1.2 +++ b/src/test/testsh4x86.c Sat Jun 13 00:50:48 2009 +0000
1.3 @@ -22,6 +22,8 @@
1.4 #include <stdarg.h>
1.5 #include <getopt.h>
1.6 #include <sys/stat.h>
1.7 +#include <string.h>
1.8 +
1.9 #include "x86dasm/x86dasm.h"
1.10 #include "sh4/sh4trans.h"
1.11 #include "sh4/sh4core.h"
1.12 @@ -191,7 +193,7 @@
1.13 char buf[256];
1.14 char op[256];
1.15 uintptr_t pc2 = x86_disasm_instruction( pc, buf, sizeof(buf), op );
1.16 - fprintf( stdout, "%08x: %s\n", pc, buf );
1.17 + fprintf( stdout, "%p: %s\n", (void *)pc, buf );
1.18 pc = pc2;
1.19 }
1.20 return 0;
.