This is the mail archive of the cgen@sources.redhat.com mailing list for the CGEN project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Call -gen-record-profile-args for SID


Hi,

I've committed the attached patch which enables the calling of --gen-record-profile-args for SID and updates it to test the correct options.

Dave
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.

Index: cgen/sid-decode.scm
===================================================================
RCS file: /cvs/src/src/cgen/sid-decode.scm,v
retrieving revision 1.12
diff -c -p -r1.12 sid-decode.scm
*** cgen/sid-decode.scm	8 Jul 2003 16:19:35 -0000	1.12
--- cgen/sid-decode.scm	26 Oct 2003 18:54:52 -0000
*************** struct @prefix@_scache {
*** 554,560 ****
  	(string-list
  	 "#if WITH_PROFILE_MODEL_P\n"
  	 "  /* Record the fields for profiling.  */\n"
! 	 "  if (PROFILE_MODEL_P (current_cpu))\n"
  	 "    {\n"
  	 (string-list-map (lambda (op) (op:record-profile op sfmt #f))
  			  in-ops)
--- 554,560 ----
  	(string-list
  	 "#if WITH_PROFILE_MODEL_P\n"
  	 "  /* Record the fields for profiling.  */\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)
*************** struct @prefix@_scache {
*** 589,595 ****
     "\n"
     (-gen-record-args sfmt)
     "\n"
!    ;(-gen-record-profile-args sfmt) ??? not supported yet
     (gen-undef-field-macro sfmt)
     "}\n\n"
     )
--- 589,595 ----
     "\n"
     (-gen-record-args sfmt)
     "\n"
!    (-gen-record-profile-args sfmt)
     (gen-undef-field-macro sfmt)
     "}\n\n"
     )

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]