aboutsummaryrefslogtreecommitdiff
path: root/sim/m32r/sem.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/m32r/sem.c')
-rw-r--r--sim/m32r/sem.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sim/m32r/sem.c b/sim/m32r/sem.c
index 2ec1322..cea7b58 100644
--- a/sim/m32r/sem.c
+++ b/sim/m32r/sem.c
@@ -179,12 +179,16 @@ SEM_FN_NAME (m32rbf,x_begin) (SIM_CPU *current_cpu, SEM_ARG sem_arg)
{
#if WITH_SCACHE_PBB_M32RBF
-#ifdef DEFINE_SWITCH
+#if defined DEFINE_SWITCH || defined FAST_P
/* In the switch case FAST_P is a constant, allowing several optimizations
in any called inline functions. */
vpc = m32rbf_pbb_begin (current_cpu, FAST_P);
#else
+#if 0 /* cgen engine can't handle dynamic fast/full switching yet. */
vpc = m32rbf_pbb_begin (current_cpu, STATE_RUN_FAST_P (CPU_STATE (current_cpu)));
+#else
+ vpc = m32rbf_pbb_begin (current_cpu, 0);
+#endif
#endif
#endif
}