From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7112 invoked by alias); 26 Oct 2003 19:00:31 -0000 Mailing-List: contact cgen-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sources.redhat.com Received: (qmail 7098 invoked from network); 26 Oct 2003 19:00:30 -0000 Received: from unknown (HELO touchme.toronto.redhat.com) (207.219.125.105) by sources.redhat.com with SMTP; 26 Oct 2003 19:00:30 -0000 Received: from redhat.com (vpn50-11.rdu.redhat.com [172.16.50.11]) by touchme.toronto.redhat.com (Postfix) with ESMTP id 443B78001D4; Sun, 26 Oct 2003 14:00:28 -0500 (EST) Message-ID: <3F9C19D2.2050807@redhat.com> Date: Sun, 26 Oct 2003 19:00:00 -0000 From: Dave Brolley User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20021216 X-Accept-Language: en-us, en MIME-Version: 1.0 To: sid@sources.redhat.com, cgen@sources.redhat.com Subject: [patch] Call -gen-record-profile-args for SID Content-Type: multipart/mixed; boundary="------------090307060905010901010306" X-SW-Source: 2003-q4/txt/msg00013.txt.bz2 This is a multi-part message in MIME format. --------------090307060905010901010306 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 154 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 --------------090307060905010901010306 Content-Type: text/plain; name="sid-model.ChangeLog" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="sid-model.ChangeLog" Content-length: 192 2003-10-26 Dave Brolley * sid-decode.scm (-gen-record-profile-args): Test trace_counter_p and final_insn_count_p. (-gen-extract-fn): Call -gen-record-profile-args. --------------090307060905010901010306 Content-Type: text/plain; name="sid-model.patch.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="sid-model.patch.txt" Content-length: 1280 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" ) --------------090307060905010901010306--