Search
lxdream.org :: lxdream/src/test/testsh4x86.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/test/testsh4x86.c
changeset 968:6fb1481859a4
prev963:1c3a0f67c603
next990:ae329de3c8ab
author nkeynes
date Mon Feb 09 00:13:46 2009 +0000 (15 years ago)
permissions -rw-r--r--
last change Fail cleanly if the display doesn't actually support GLX, rather than crashing horribly
file annotate diff log raw
1.1 --- a/src/test/testsh4x86.c Thu Jan 15 03:54:21 2009 +0000
1.2 +++ b/src/test/testsh4x86.c Mon Feb 09 00:13:46 2009 +0000
1.3 @@ -83,7 +83,7 @@
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.12 @@ -185,9 +185,9 @@
1.13 uintptr_t pc;
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.21 char buf[256];
1.22 char op[256];
1.23 uintptr_t pc2 = x86_disasm_instruction( pc, buf, sizeof(buf), op );
.