filename | src/sh4/sh4.c |
changeset | 1218:be02e87f9f87 |
prev | 1194:ee6ce5804608 |
author | nkeynes |
date | Mon Oct 15 21:19:22 2012 +1000 (11 years ago) |
permissions | -rw-r--r-- |
last change | Merge workaround for interpreted mode accesses to the OC ram regions in AT=0 cases. Still broken for other cases |
file | annotate | diff | log | raw |
1.1 --- a/src/sh4/sh4.c Mon Dec 12 21:13:36 2011 +10001.2 +++ b/src/sh4/sh4.c Mon Oct 15 21:19:22 2012 +10001.3 @@ -148,6 +148,7 @@1.4 int sh4_breakpoint_count = 0;1.6 gboolean sh4_starting = FALSE;1.7 +gboolean sh4_profile_blocks = FALSE;1.8 static gboolean sh4_use_translator = FALSE;1.9 static jmp_buf sh4_exit_jmp_buf;1.10 static gboolean sh4_running = FALSE;1.11 @@ -235,11 +236,12 @@1.12 /* If we were running with the translator, update new_pc and in_delay_slot */1.13 sh4r.new_pc = sh4r.pc+2;1.14 sh4r.in_delay_slot = FALSE;1.15 - if( sh4_translate_get_profile_blocks() ) {1.16 +#ifdef SH4_TRANSLATOR1.17 + if( sh4_profile_blocks ) {1.18 sh4_translate_dump_cache_by_activity(30);1.19 }1.20 +#endif1.21 }1.22 -1.23 }1.25 /**1.26 @@ -408,6 +410,16 @@1.27 sh4r.event_pending = cycles;1.28 }1.30 +void sh4_set_profile_blocks( gboolean flag )1.31 +{1.32 + sh4_profile_blocks = flag;1.33 +}1.34 +1.35 +gboolean sh4_get_profile_blocks( )1.36 +{1.37 + return sh4_profile_blocks;1.38 +}1.39 +1.40 /**1.41 * Dump all SH4 core information for crash-dump purposes1.42 */
.