From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3596 invoked by alias); 9 May 2006 18:16:36 -0000 Received: (qmail 3585 invoked by uid 22791); 9 May 2006 18:16:36 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 09 May 2006 18:16:34 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k49IGWlP010819 for ; Tue, 9 May 2006 14:16:32 -0400 Received: from pobox.toronto.redhat.com (pobox.toronto.redhat.com [172.16.14.4]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k49IGRKZ009352 for ; Tue, 9 May 2006 14:16:27 -0400 Received: from [172.16.14.227] (IDENT:6n80mByMSHngY5TNDRCihDYgri2QlFEx@topaz.toronto.redhat.com [172.16.14.227]) by pobox.toronto.redhat.com (8.12.8/8.12.8) with ESMTP id k49IGRAc013380 for ; Tue, 9 May 2006 14:16:27 -0400 Message-ID: <4460DC7B.2090206@redhat.com> Date: Tue, 09 May 2006 18:16:00 -0000 From: Dave Brolley User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) MIME-Version: 1.0 To: cgen@sources.redhat.com Subject: [patch][commit] Collection of profiling information Content-Type: multipart/mixed; boundary="------------040607000100000107080208" X-IsSubscribed: yes Mailing-List: contact cgen-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sourceware.org X-SW-Source: 2006-q2/txt/msg00017.txt.bz2 This is a multi-part message in MIME format. --------------040607000100000107080208 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 292 Hi, I've committed the attached patch which adds a missing bit of code generation needed for implementing pipeline models. It is similar to code already committed elsewhere for this purpose and was taken from the sim generator. Tested on an internal port which exposed the problem. Dave --------------040607000100000107080208 Content-Type: text/plain; name="cgen-profile.ChangeLog" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="cgen-profile.ChangeLog" Content-length: 140 2006-05-09 Dave Brolley * sid-cpu.scm (-gen-scache-semantic-fn): Generate code to set abuf->written if profiling. --------------040607000100000107080208 Content-Type: text/plain; name="cgen-profile.patch.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="cgen-profile.patch.txt" Content-length: 1300 ? cgen/string Index: cgen/sid-cpu.scm =================================================================== RCS file: /cvs/src/src/cgen/sid-cpu.scm,v retrieving revision 1.15 diff -c -p -r1.15 sid-cpu.scm *** cgen/sid-cpu.scm 28 Dec 2005 18:59:24 -0000 1.15 --- cgen/sid-cpu.scm 9 May 2006 18:05:32 -0000 *************** *** 1,5 **** ; CPU family related simulator generator, excluding decoding and model support. ! ; Copyright (C) 2000, 2002, 2003, 2005 Red Hat, Inc. ; This file is part of CGEN. ; *********** --- 1,5 ---- ; CPU family related simulator generator, excluding decoding and model support. ! ; Copyright (C) 2000, 2002, 2003, 2005, 2006 Red Hat, Inc. ; This file is part of CGEN. ; *********** *************** using namespace cgen; *** 748,753 **** --- 748,761 ---- "\n" (gen-semantic-code insn) "\n" + ; Only update what's been written if some are conditionally written. + ; Otherwise we know they're all written so there's no point in + ; keeping track. + (if (or (with-profile?) (with-parallel-write?)) + (if (-any-cond-written? (insn-sfmt insn)) + " abuf->written = written;\n" + "") + "") (if cti? " current_cpu->done_cti_insn (npc, status);\n" " current_cpu->done_insn (npc, status);\n") --------------040607000100000107080208--