Search
lxdream.org :: lxdream/src/test/testsh4x86.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/test/testsh4x86.c
changeset 934:3acd3b3ee6d1
prev931:430048ea8b71
next939:6f2302afeb89
author nkeynes
date Fri Dec 26 14:25:23 2008 +0000 (13 years ago)
branchlxdream-mem
permissions -rw-r--r--
last change Change RAM regions to use static arrays rather than mmap regions, for a 2-3% performance gain.
General mem cleanups, including some save state fixes that break states again.
file annotate diff log raw
1.1 --- a/src/test/testsh4x86.c Tue Dec 23 05:48:05 2008 +0000
1.2 +++ b/src/test/testsh4x86.c Fri Dec 26 14:25:23 2008 +0000
1.3 @@ -46,7 +46,8 @@
1.4 gboolean sh4_starting;
1.5 uint32_t start_addr = 0x8C010000;
1.6 uint32_t sh4_cpu_period = 5;
1.7 -sh4ptr_t sh4_main_ram;
1.8 +unsigned char dc_main_ram[4096];
1.9 +unsigned char dc_boot_rom[4096];
1.10 FILE *in;
1.11
1.12 char *inbuf;
1.13 @@ -200,7 +201,7 @@
1.14 uintptr_t pc;
1.15 uint8_t *buf = sh4_translate_basic_block( start_addr );
1.16 uint32_t buflen = xlat_get_code_size(buf);
1.17 - x86_disasm_init( buf, buf, buflen );
1.18 + x86_disasm_init( (uintptr_t)buf, (uintptr_t)buf, buflen );
1.19 x86_set_symtab( local_symbols, sizeof(local_symbols)/sizeof(struct x86_symbol) );
1.20 for( pc = buf; pc < buf + buflen; ) {
1.21 char buf[256];
.