Search
lxdream.org :: lxdream :: r802:d894188b503d
lxdream 0.9.1
released Jun 29
Download Now
changeset802:d894188b503d
parent801:92b518a2e915
child803:e12b7daf0135
authornkeynes
dateThu Aug 07 23:35:03 2008 +0000 (11 years ago)
Fix compiler warnings
src/test/testsh4x86.c
1.1 --- a/src/test/testsh4x86.c Thu Aug 07 23:32:34 2008 +0000
1.2 +++ b/src/test/testsh4x86.c Thu Aug 07 23:35:03 2008 +0000
1.3 @@ -69,12 +69,12 @@
1.4 return *(uint32_t *)(inbuf+(addr-start_addr));
1.5 }
1.6 // Stubs
1.7 -gboolean sh4_execute_instruction( ) { }
1.8 +gboolean sh4_execute_instruction( ) { return TRUE; }
1.9 void sh4_accept_interrupt() {}
1.10 void sh4_set_breakpoint( uint32_t pc, breakpoint_type_t type ) { }
1.11 -gboolean sh4_clear_breakpoint( uint32_t pc, breakpoint_type_t type ) { }
1.12 +gboolean sh4_clear_breakpoint( uint32_t pc, breakpoint_type_t type ) { return TRUE; }
1.13 gboolean dreamcast_is_running() { return FALSE; }
1.14 -int sh4_get_breakpoint( uint32_t pc ) { }
1.15 +int sh4_get_breakpoint( uint32_t pc ) { return 0; }
1.16 void sh4_core_exit( int exit_code ){}
1.17 void sh4_flush_icache(){}
1.18 void event_execute() {}
1.19 @@ -91,17 +91,17 @@
1.20 void syscall_invoke( uint32_t val ) { }
1.21 void dreamcast_stop() {}
1.22 void dreamcast_reset() {}
1.23 -uint32_t sh4_read_sr( void ) { }
1.24 -gboolean sh4_raise_reset( int exc ) {}
1.25 -gboolean sh4_raise_exception( int exc ) {}
1.26 -gboolean sh4_raise_tlb_exception( int exc ) {}
1.27 -gboolean sh4_raise_trap( int exc ) {}
1.28 +uint32_t sh4_read_sr( void ) { return 0; }
1.29 +gboolean sh4_raise_reset( int exc ) { return TRUE; }
1.30 +gboolean sh4_raise_exception( int exc ) { return TRUE; }
1.31 +gboolean sh4_raise_tlb_exception( int exc ) { return TRUE; }
1.32 +gboolean sh4_raise_trap( int exc ) { return TRUE; }
1.33 void sh4_sleep() { }
1.34 -uint32_t sh4_sleep_run_slice(uint32_t nanosecs) { }
1.35 +uint32_t sh4_sleep_run_slice(uint32_t nanosecs) { return nanosecs; }
1.36 void sh4_fsca( uint32_t angle, float *fr ) { }
1.37 void sh4_ftrv( float *fv ) { }
1.38 void signsat48(void) { }
1.39 -gboolean gui_error_dialog( const char *fmt, ... ) { }
1.40 +gboolean gui_error_dialog( const char *fmt, ... ) { return TRUE; }
1.41 struct sh4_icache_struct sh4_icache;
1.42
1.43 void usage()
1.44 @@ -176,4 +176,5 @@
1.45 fprintf( stdout, "%08X: %-20s %s\n", pc, op, buf );
1.46 pc = pc2;
1.47 }
1.48 + return 0;
1.49 }
.