filename | src/sh4/sh4.c |
changeset | 591:7b9612fd2395 |
prev | 586:2a3ba82cf243 |
next | 597:87cbdf62aa35 |
author | nkeynes |
date | Thu Jan 17 10:11:37 2008 +0000 (15 years ago) |
permissions | -rw-r--r-- |
last change | Add flag to skip breakpoints when it's the very first instruction of a run (ie, so executing dreamcast_run() when the current pc is a breakpoint doesn't just return immediately) |
file | annotate | diff | log | raw |
1.1 --- a/src/sh4/sh4.c Tue Jan 15 20:50:23 2008 +00001.2 +++ b/src/sh4/sh4.c Thu Jan 17 10:11:37 2008 +00001.3 @@ -42,13 +42,14 @@1.4 uint32_t sh4_xlat_run_slice( uint32_t );1.6 struct dreamcast_module sh4_module = { "SH4", sh4_init, sh4_reset,1.7 - NULL, sh4_run_slice, sh4_stop,1.8 + sh4_start, sh4_run_slice, sh4_stop,1.9 sh4_save_state, sh4_load_state };1.11 struct sh4_registers sh4r;1.12 struct breakpoint_struct sh4_breakpoints[MAX_BREAKPOINTS];1.13 int sh4_breakpoint_count = 0;1.14 sh4ptr_t sh4_main_ram;1.15 +gboolean sh4_starting = FALSE;1.16 static gboolean sh4_use_translator = FALSE;1.17 struct sh4_icache_struct sh4_icache = { NULL, -1, -1, 0 };1.19 @@ -80,6 +81,11 @@1.20 sh4_reset();1.21 }1.23 +void sh4_start(void)1.24 +{1.25 + sh4_starting = TRUE;1.26 +}1.27 +1.28 void sh4_reset(void)1.29 {1.30 if( sh4_use_translator ) {
.