OSDN Git Service

2003-10-26 Dave Brolley <brolley@redhat.com>
authorbrolley <brolley>
Sun, 26 Oct 2003 18:57:18 +0000 (18:57 +0000)
committerbrolley <brolley>
Sun, 26 Oct 2003 18:57:18 +0000 (18:57 +0000)
        * sid-decode.scm (-gen-record-profile-args): Test trace_counter_p
        and final_insn_count_p.
        (-gen-extract-fn): Call -gen-record-profile-args.

cgen/ChangeLog
cgen/sid-decode.scm

index 564db70..e5e3537 100644 (file)
@@ -1,3 +1,9 @@
+2003-10-26  Dave Brolley  <brolley@redhat.com>
+
+       * sid-decode.scm (-gen-record-profile-args): Test trace_counter_p
+       and final_insn_count_p.
+       (-gen-extract-fn): Call -gen-record-profile-args.
+
 2003-10-21  Dave Brolley  <brolley@redhat.com>
 
        * sid-model.scm (-gen-model-class-decls): Generate MAX_UNITS as
index d1d3280..37058f5 100644 (file)
@@ -554,7 +554,7 @@ struct @prefix@_scache {
        (string-list
         "#if WITH_PROFILE_MODEL_P\n"
         "  /* Record the fields for profiling.  */\n"
-        "  if (PROFILE_MODEL_P (current_cpu))\n"
+        "  if (UNLIKELY (current_cpu->trace_counter_p || current_cpu->final_insn_count_p))\n"
         "    {\n"
         (string-list-map (lambda (op) (op:record-profile op sfmt #f))
                          in-ops)
@@ -589,7 +589,7 @@ struct @prefix@_scache {
    "\n"
    (-gen-record-args sfmt)
    "\n"
-   ;(-gen-record-profile-args sfmt) ??? not supported yet
+   (-gen-record-profile-args sfmt)
    (gen-undef-field-macro sfmt)
    "}\n\n"
    )