From a2542db6d7081fe590ba05fc6ea65beb5a1700ca Mon Sep 17 00:00:00 2001 From: brolley Date: Tue, 5 Sep 2000 16:13:39 +0000 Subject: [PATCH] 2000-09-05 Dave Brolley * sim.scm (sim-finish!): Honour the definition of FAST_P when calling @cpu@_pbb_begin. Use 0 if FAST_P is not defined. --- cgen/ChangeLog | 5 +++++ cgen/sim.scm | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/cgen/ChangeLog b/cgen/ChangeLog index 2053b2259f..61c201087f 100644 --- a/cgen/ChangeLog +++ b/cgen/ChangeLog @@ -1,3 +1,8 @@ +2000-09-05 Dave Brolley + + * sim.scm (sim-finish!): Honour the definition of FAST_P when calling + @cpu@_pbb_begin. Use 0 if FAST_P is not defined. + 2000-08-29 Dave Brolley * utils-gen.scm (gen-ifld-extract): Pass total-len if diff --git a/cgen/sim.scm b/cgen/sim.scm index 9a0f14d064..9907410a54 100644 --- a/cgen/sim.scm +++ b/cgen/sim.scm @@ -1884,12 +1884,16 @@ struct scache { "--begin--" () () '(c-code VOID "\ { #if WITH_SCACHE_PBB_@CPU@ -#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 = @cpu@_pbb_begin (current_cpu, FAST_P); #else +#if 0 /* cgen engine can't handle dynamic fast/full switching yet. */ vpc = @cpu@_pbb_begin (current_cpu, STATE_RUN_FAST_P (CPU_STATE (current_cpu))); +#else + vpc = @cpu@_pbb_begin (current_cpu, 0); +#endif #endif #endif } -- 2.11.0