Search
lxdream.org :: lxdream :: r790:a0c7d28bbb0c
lxdream 0.9.1
released Jun 29
Download Now
changeset790:a0c7d28bbb0c
parent789:7e7ec23217fc
child791:fc609d426806
authornkeynes
dateWed Jul 30 00:11:32 2008 +0000 (11 years ago)
Don't invoke sh4_translate_flush_cache() when we're not actually using the translator
src/sh4/sh4.c
1.1 --- a/src/sh4/sh4.c Wed Jul 30 00:10:48 2008 +0000
1.2 +++ b/src/sh4/sh4.c Wed Jul 30 00:11:32 2008 +0000
1.3 @@ -215,8 +215,10 @@
1.4 {
1.5 #ifdef SH4_TRANSLATOR
1.6 // FIXME: Special case needs to be generalized
1.7 - if( sh4_translate_flush_cache() ) {
1.8 - longjmp(sh4_exit_jmp_buf, CORE_EXIT_CONTINUE);
1.9 + if( sh4_use_translator ) {
1.10 + if( sh4_translate_flush_cache() ) {
1.11 + longjmp(sh4_exit_jmp_buf, CORE_EXIT_CONTINUE);
1.12 + }
1.13 }
1.14 #endif
1.15 }
.