1.1 --- a/src/test/testsh4x86.c Thu Jan 15 03:54:21 2009 +0000
1.2 +++ b/src/test/testsh4x86.c Thu Jan 15 11:23:20 2009 +0000
1.4 void sh4_core_exit( int exit_code ){}
1.5 void event_execute() {}
1.6 void TMU_run_slice( uint32_t nanos ) {}
1.7 -void CCN_set_cache_control( uint32_t val ) { }
1.8 +void CCN_set_cache_control( int val ) { }
1.9 void PMM_write_control( int ctr, uint32_t val ) { }
1.10 void SCIF_run_slice( uint32_t nanos ) {}
1.11 void FASTCALL sh4_write_fpscr( uint32_t val ) { }
1.14 uint8_t *buf = sh4_translate_basic_block( start_addr );
1.15 uint32_t buflen = xlat_get_code_size(buf);
1.16 - x86_disasm_init( (uintptr_t)buf, (uintptr_t)buf, buflen );
1.17 + x86_disasm_init( buf, (uintptr_t)buf, buflen );
1.18 x86_set_symtab( local_symbols, sizeof(local_symbols)/sizeof(struct x86_symbol) );
1.19 - for( pc = buf; pc < buf + buflen; ) {
1.20 + for( pc = (uintptr_t)buf; pc < ((uintptr_t)buf) + buflen; ) {
1.23 uintptr_t pc2 = x86_disasm_instruction( pc, buf, sizeof(buf), op );