Search
lxdream.org :: lxdream/src/sh4/sh4.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4.c
changeset 566:59be465e5f01
prev561:533f6b478071
next569:a1c49e1e8776
author nkeynes
date Tue Jan 01 08:57:33 2008 +0000 (13 years ago)
branchlxdream-mmu
permissions -rw-r--r--
last change Add breakpoint_type_t enum (general cleanup)
file annotate diff log raw
1.1 --- a/src/sh4/sh4.c Tue Jan 01 05:08:38 2008 +0000
1.2 +++ b/src/sh4/sh4.c Tue Jan 01 08:57:33 2008 +0000
1.3 @@ -51,6 +51,16 @@
1.4 extern sh4ptr_t sh4_main_ram;
1.5 static gboolean sh4_use_translator = FALSE;
1.6
1.7 +struct sh4_icache_info {
1.8 + char *page;
1.9 + uint32_t page_start;
1.10 + uint32_t page_size;
1.11 +};
1.12 +
1.13 +extern struct sh4_icache_info sh4_icache;
1.14 +
1.15 +// struct sh4_icache_info sh4_icache = { NULL, -1, -1 };
1.16 +
1.17 void sh4_set_use_xlat( gboolean use )
1.18 {
1.19 // No-op if the translator was not built
1.20 @@ -144,14 +154,14 @@
1.21 }
1.22
1.23
1.24 -void sh4_set_breakpoint( uint32_t pc, int type )
1.25 +void sh4_set_breakpoint( uint32_t pc, breakpoint_type_t type )
1.26 {
1.27 sh4_breakpoints[sh4_breakpoint_count].address = pc;
1.28 sh4_breakpoints[sh4_breakpoint_count].type = type;
1.29 sh4_breakpoint_count++;
1.30 }
1.31
1.32 -gboolean sh4_clear_breakpoint( uint32_t pc, int type )
1.33 +gboolean sh4_clear_breakpoint( uint32_t pc, breakpoint_type_t type )
1.34 {
1.35 int i;
1.36
.