Search
lxdream.org :: lxdream/src/test/testsh4x86.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/test/testsh4x86.c
changeset 925:7cbcc51db63d
prev919:dfa21f43925b
next929:fd8cb0c82f5f
next953:f4a156508ad1
author nkeynes
date Sun Dec 14 06:36:49 2008 +0000 (11 years ago)
permissions -rw-r--r--
last change Fix 64-bit disassembly
file annotate diff log raw
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.5
1.6 xlat_cache_init();
1.7 - uint32_t pc;
1.8 + uintptr_t pc;
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.16 char buf[256];
1.17 char op[256];
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 );
1.21 pc = pc2;
1.22 }
.