1.1 --- a/src/test/testsh4x86.c Thu Dec 04 09:05:56 2008 +0000
1.2 +++ b/src/test/testsh4x86.c Sun Dec 14 06:36:49 2008 +0000
1.3 @@ -189,15 +189,15 @@
1.4 sh4_icache.page_ppa = start_addr & 0xFFFFF000;
1.9 uint8_t *buf = sh4_translate_basic_block( start_addr );
1.10 uint32_t buflen = xlat_get_code_size(buf);
1.11 - x86_disasm_init( buf, 0x8c010000, buflen );
1.12 + x86_disasm_init( buf, buf, buflen );
1.13 x86_set_symtab( local_symbols, sizeof(local_symbols)/sizeof(struct x86_symbol) );
1.14 - for( pc = 0x8c010000; pc < 0x8c010000 + buflen; ) {
1.15 + for( pc = buf; pc < buf + buflen; ) {
1.18 - uint32_t pc2 = x86_disasm_instruction( pc, buf, sizeof(buf), op );
1.19 + uintptr_t pc2 = x86_disasm_instruction( pc, buf, sizeof(buf), op );
1.20 fprintf( stdout, "%s\n", buf );