]> sourceware.org Git - cgen.git/commitdiff
2000-09-05 Dave Brolley <brolley@redhat.com>
authorDave Brolley <brolley@sourceware.org>
Tue, 5 Sep 2000 16:13:39 +0000 (16:13 +0000)
committerDave Brolley <brolley@sourceware.org>
Tue, 5 Sep 2000 16:13:39 +0000 (16:13 +0000)
* sim.scm (sim-finish!): Honour the definition of FAST_P when calling
@cpu@_pbb_begin. Use 0 if FAST_P is not defined.

ChangeLog
sim.scm

index 2053b2259f7e0ddfdfef93dee4b0b59dd5607e12..61c201087f0bccbc4aecf5772c7c47ea39e18ef1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-09-05  Dave Brolley  <brolley@redhat.com>
+
+       * 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  <brolley@redhat.com>
 
        * utils-gen.scm (gen-ifld-extract): Pass total-len if
diff --git a/sim.scm b/sim.scm
index 9a0f14d0640a000766332a010d3605e65d5b2615..9907410a5494c35b0075382b47c7d8871e0123e7 100644 (file)
--- a/sim.scm
+++ b/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
   }
This page took 0.035734 seconds and 5 git commands to generate.