From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26143 invoked by alias); 11 May 2006 14:50:00 -0000 Received: (qmail 26129 invoked by uid 22791); 11 May 2006 14:49:59 -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; Thu, 11 May 2006 14:49:57 +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 k4BEntSg021810 for ; Thu, 11 May 2006 10:49:55 -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 k4BEntGj018112 for ; Thu, 11 May 2006 10:49:55 -0400 Received: from [172.16.14.227] (IDENT:06GOE1SrJPuBKevAl7iQTg9+gr+Hu+mC@topaz.toronto.redhat.com [172.16.14.227]) by pobox.toronto.redhat.com (8.12.8/8.12.8) with ESMTP id k4BEnsAc015707 for ; Thu, 11 May 2006 10:49:54 -0400 Message-ID: <44634F12.5020500@redhat.com> Date: Thu, 11 May 2006 14:50:00 -0000 From: Dave Brolley User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) MIME-Version: 1.0 To: sid@sources.redhat.com Subject: [patch][commit] cgen-model.h Content-Type: multipart/mixed; boundary="------------070001090702040703000803" X-IsSubscribed: yes Mailing-List: contact sid-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: sid-owner@sourceware.org X-SW-Source: 2006-q2/txt/msg00025.txt.bz2 This is a multi-part message in MIME format. --------------070001090702040703000803 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 202 I've committed the attached patch which initializes the existing member cgen_model::vliw_cycles and corrects a comment regarding the argument last_p to the method cgen_model::model_insn_after. Dave --------------070001090702040703000803 Content-Type: text/plain; name="sid-model.ChangeLog" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="sid-model.ChangeLog" Content-length: 151 2006-05-11 Dave Brolley * cgen-model.h (cgen_model): Initialize vliw_cycles. (model_insn_after): Correct comment re: last_p. --------------070001090702040703000803 Content-Type: text/plain; name="sid-model.patch.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="sid-model.patch.txt" Content-length: 1619 Index: sid/component/cgen-cpu/cgen-model.h =================================================================== RCS file: /cvs/src/src/sid/component/cgen-cpu/cgen-model.h,v retrieving revision 1.2 diff -c -p -r1.2 cgen-model.h *** sid/component/cgen-cpu/cgen-model.h 21 Oct 2003 21:29:31 -0000 1.2 --- sid/component/cgen-cpu/cgen-model.h 11 May 2006 14:43:39 -0000 *************** namespace cgen *** 16,22 **** class cgen_model { public: ! cgen_model (cgen_bi_endian_cpu *c) : cpu (c) {} // To be overridden as needed. Call before each insn is executed. first_p is // true when the insn is the first of a group of parallel insns. --- 16,25 ---- class cgen_model { public: ! cgen_model (cgen_bi_endian_cpu *c) : ! cpu (c), ! vliw_cycles (0) ! {} // To be overridden as needed. Call before each insn is executed. first_p is // true when the insn is the first of a group of parallel insns. *************** public: *** 31,37 **** } // To be overridden as needed. Call after each insn is executed. last_p is ! // true when the insn is the first of a group of parallel insns. cycles is the // number of cycles used by each particular insn. virtual void model_insn_after (bool last_p = true, sid::host_int_4 cycles = 1) { --- 34,40 ---- } // To be overridden as needed. Call after each insn is executed. last_p is ! // true when the insn is the last of a group of parallel insns. cycles is the // number of cycles used by each particular insn. virtual void model_insn_after (bool last_p = true, sid::host_int_4 cycles = 1) { --------------070001090702040703000803--