Search
lxdream.org :: lxdream/src/sh4/sh4.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4.c
changeset 1125:9dd5dee45db9
prev1112:4cac5e474d4c
next1171:d644413208a3
author nkeynes
date Mon Sep 13 10:13:42 2010 +1000 (9 years ago)
permissions -rw-r--r--
last change Implement shadow-execution 'core' to run translator + interpreter side by
side (for testing)
file annotate diff log raw
1.1 --- a/src/sh4/sh4.c Tue Jul 13 18:23:16 2010 +1000
1.2 +++ b/src/sh4/sh4.c Mon Sep 13 10:13:42 2010 +1000
1.3 @@ -160,14 +160,19 @@
1.4 {
1.5 }
1.6
1.7 -void sh4_translate_set_enabled( gboolean use )
1.8 +void sh4_set_core( sh4core_t core )
1.9 {
1.10 // No-op if the translator was not built
1.11 #ifdef SH4_TRANSLATOR
1.12 - if( use ) {
1.13 + if( core != SH4_INTERPRET ) {
1.14 sh4_translate_init();
1.15 + sh4_use_translator = TRUE;
1.16 + if( core == SH4_SHADOW ) {
1.17 + sh4_shadow_init();
1.18 + }
1.19 + } else {
1.20 + sh4_use_translator = FALSE;
1.21 }
1.22 - sh4_use_translator = use;
1.23 #endif
1.24 }
1.25
.