public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
* [patch] Call -gen-record-profile-args for SID
@ 2003-10-26 19:00 Dave Brolley
  0 siblings, 0 replies; only message in thread
From: Dave Brolley @ 2003-10-26 19:00 UTC (permalink / raw)
  To: sid, cgen

[-- Attachment #1: Type: text/plain, Size: 154 bytes --]

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

[-- Attachment #2: sid-model.ChangeLog --]
[-- Type: text/plain, Size: 192 bytes --]

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.


[-- Attachment #3: sid-model.patch.txt --]
[-- Type: text/plain, Size: 1280 bytes --]

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"
     )

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-10-26 19:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-26 19:00 [patch] Call -gen-record-profile-args for SID Dave Brolley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).