Search
lxdream.org :: lxdream/src/test/testsh4x86.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/test/testsh4x86.c
changeset 578:5fbe050b0558
prev571:9bc09948d0f2
next1065:bc1cc0c54917
author nkeynes
date Mon Jan 14 10:34:57 2008 +0000 (12 years ago)
branchlxdream-mmu
permissions -rw-r--r--
last change Repair testsh4x86 again
file annotate diff log raw
1.1 --- a/src/test/testsh4x86.c Thu Jan 10 08:28:37 2008 +0000
1.2 +++ b/src/test/testsh4x86.c Mon Jan 14 10:34:57 2008 +0000
1.3 @@ -25,6 +25,11 @@
1.4 #include "x86dasm/x86dasm.h"
1.5 #include "sh4/sh4trans.h"
1.6 #include "sh4/sh4core.h"
1.7 +#include "sh4/sh4mmio.h"
1.8 +
1.9 +struct mmio_region mmio_region_MMU;
1.10 +struct breakpoint_struct sh4_breakpoints[MAX_BREAKPOINTS];
1.11 +int sh4_breakpoint_count = 0;
1.12
1.13 #define MAX_INS_SIZE 32
1.14
1.15 @@ -36,6 +41,7 @@
1.16 char *output_file = NULL;
1.17 uint32_t start_addr = 0x8C010000;
1.18 uint32_t sh4_cpu_period = 5;
1.19 +sh4ptr_t sh4_main_ram;
1.20 FILE *in;
1.21
1.22 char *inbuf;
1.23 @@ -66,22 +72,22 @@
1.24 void sh4_accept_interrupt() {}
1.25 void sh4_set_breakpoint( uint32_t pc, breakpoint_type_t type ) { }
1.26 gboolean sh4_clear_breakpoint( uint32_t pc, breakpoint_type_t type ) { }
1.27 +gboolean sh4_is_using_xlat() { return TRUE; }
1.28 int sh4_get_breakpoint( uint32_t pc ) { }
1.29 void event_execute() {}
1.30 void TMU_run_slice( uint32_t nanos ) {}
1.31 void SCIF_run_slice( uint32_t nanos ) {}
1.32 -void MMU_ldtlb(void) {}
1.33 void sh4_write_byte( uint32_t addr, uint32_t val ) {}
1.34 void sh4_write_word( uint32_t addr, uint32_t val ) {}
1.35 void sh4_write_long( uint32_t addr, uint32_t val ) {}
1.36 -void sh4_flush_store_queue( uint32_t addr ) {}
1.37 +void mem_copy_to_sh4( sh4addr_t addr, sh4ptr_t src, size_t size ) { }
1.38 void sh4_write_sr( uint32_t val ) { }
1.39 void syscall_invoke( uint32_t val ) { }
1.40 void dreamcast_stop() {}
1.41 -sh4addr_t mmu_vma_to_phys_read( sh4vma_t vma ) { return vma & 0x1FFFFFFF; }
1.42 -sh4addr_t mmu_vma_to_phys_write( sh4vma_t vma ) { return vma & 0x1FFFFFFF; }
1.43 uint32_t sh4_read_sr( void ) { }
1.44 +gboolean sh4_raise_reset( int exc ) {}
1.45 gboolean sh4_raise_exception( int exc ) {}
1.46 +gboolean sh4_raise_tlb_exception( int exc ) {}
1.47 gboolean sh4_raise_trap( int exc ) {}
1.48 void sh4_sleep() { }
1.49 void sh4_fsca( uint32_t angle, float *fr ) { }
.