Search
lxdream.org :: lxdream/src/test/testsh4x86.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/test/testsh4x86.c
changeset 571:9bc09948d0f2
prev561:533f6b478071
next578:5fbe050b0558
author nkeynes
date Thu Jan 10 08:28:37 2008 +0000 (12 years ago)
branchlxdream-mmu
permissions -rw-r--r--
last change More MMU work in progess. Much better now...
file annotate diff log raw
1.1 --- a/src/test/testsh4x86.c Tue Jan 01 05:08:38 2008 +0000
1.2 +++ b/src/test/testsh4x86.c Thu Jan 10 08:28:37 2008 +0000
1.3 @@ -64,8 +64,8 @@
1.4 // Stubs
1.5 gboolean sh4_execute_instruction( ) { }
1.6 void sh4_accept_interrupt() {}
1.7 -void sh4_set_breakpoint( uint32_t pc, int type ) { }
1.8 -gboolean sh4_clear_breakpoint( uint32_t pc, int type ) { }
1.9 +void sh4_set_breakpoint( uint32_t pc, breakpoint_type_t type ) { }
1.10 +gboolean sh4_clear_breakpoint( uint32_t pc, breakpoint_type_t type ) { }
1.11 int sh4_get_breakpoint( uint32_t pc ) { }
1.12 void event_execute() {}
1.13 void TMU_run_slice( uint32_t nanos ) {}
1.14 @@ -77,6 +77,9 @@
1.15 void sh4_flush_store_queue( uint32_t addr ) {}
1.16 void sh4_write_sr( uint32_t val ) { }
1.17 void syscall_invoke( uint32_t val ) { }
1.18 +void dreamcast_stop() {}
1.19 +sh4addr_t mmu_vma_to_phys_read( sh4vma_t vma ) { return vma & 0x1FFFFFFF; }
1.20 +sh4addr_t mmu_vma_to_phys_write( sh4vma_t vma ) { return vma & 0x1FFFFFFF; }
1.21 uint32_t sh4_read_sr( void ) { }
1.22 gboolean sh4_raise_exception( int exc ) {}
1.23 gboolean sh4_raise_trap( int exc ) {}
1.24 @@ -84,10 +87,8 @@
1.25 void sh4_fsca( uint32_t angle, float *fr ) { }
1.26 void sh4_ftrv( float *fv, float *xmtrx ) { }
1.27 void signsat48(void) { }
1.28 -uint16_t *sh4_icache = NULL;
1.29 -uint32_t sh4_icache_addr = 0;
1.30 gboolean gui_error_dialog( const char *fmt, ... ) { }
1.31 -
1.32 +struct sh4_icache_struct sh4_icache;
1.33
1.34 void usage()
1.35 {
.