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

Dave Brolley <[email protected]>
Newsgroups gmane.comp.tools.cgen.devel,gmane.comp.emulators.sid.devel
Message-ID <[email protected]>
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
sid-model.ChangeLog (text/plain, 192 B)
2003-10-26  Dave Brolley  <[email protected]>

	* sid-decode.scm (-gen-record-profile-args): Test trace_counter_p
	and final_insn_count_p.
	(-gen-extract-fn): Call -gen-record-profile-args.
sid-model.patch.txt (text/plain, 1.3 KB)
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"
     )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.