From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7568 invoked by alias); 29 Jul 2005 19:29:52 -0000 Mailing-List: contact sid-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: sid-owner@sources.redhat.com Received: (qmail 7549 invoked by uid 22791); 29 Jul 2005 19:29:42 -0000 Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 29 Jul 2005 19:29:42 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j6TJTeAC010418; Fri, 29 Jul 2005 15:29:40 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j6TJTdV29338; Fri, 29 Jul 2005 15:29:39 -0400 Received: from [127.0.0.1] (vpn50-100.rdu.redhat.com [172.16.50.100]) by potter.sfbay.redhat.com (8.12.8/8.12.8) with ESMTP id j6TJTV9U029294; Fri, 29 Jul 2005 15:29:35 -0400 Message-ID: <42EA839B.6090009@redhat.com> Date: Fri, 29 Jul 2005 19:29:00 -0000 From: Dave Brolley User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) MIME-Version: 1.0 To: cgen@sources.redhat.com, sid@sources.redhat.com Subject: [patch][commit] Parallel Write Fixes Content-Type: multipart/mixed; boundary="------------050001060400050704020203" X-SW-Source: 2005-q3/txt/msg00009.txt.bz2 This is a multi-part message in MIME format. --------------050001060400050704020203 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 187 Hi, I've committed the attached patch which adds some declarttions needed by ports using the new parallel write support. Tested on an internal port. No effect on existing ports. Dave --------------050001060400050704020203 Content-Type: text/plain; name="cgen-parallel.patch.ChangeLog" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="cgen-parallel.patch.ChangeLog" Content-length: 329 2005-07-29 Dave Brolley * sid-cpu.scm (-gen-scache-semantic-fn): Generate a declation of 'written' if with-profile or with-parallel-write. (cgen-semantics.cxx): Make the @prefix@ namespace available if with-parallel. * operand.scm (op:new-mode): Convert (obj:name op) to a string for string-append. --------------050001060400050704020203 Content-Type: text/plain; name="cgen-parallel.patch.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="cgen-parallel.patch.txt" Content-length: 1781 Index: cgen/sid-cpu.scm =================================================================== RCS file: /cvs/src/src/cgen/sid-cpu.scm,v retrieving revision 1.12 diff -c -p -r1.12 sid-cpu.scm *** cgen/sid-cpu.scm 15 Jun 2005 21:28:19 -0000 1.12 --- cgen/sid-cpu.scm 29 Jul 2005 19:22:14 -0000 *************** using namespace cgen; *** 736,742 **** (gen-define-field-macro (insn-sfmt insn)) " sem_status status = SEM_STATUS_NORMAL;\n" " @prefix@_scache* abuf = sem;\n" ! ; The address of this insn, needed by extraction and semantic code. ; Note that the address recorded in the cpu state struct is not used. ; For faster engines that copy will be out of date. --- 736,745 ---- (gen-define-field-macro (insn-sfmt insn)) " sem_status status = SEM_STATUS_NORMAL;\n" " @prefix@_scache* abuf = sem;\n" ! ; Unconditionally written operands are not recorded here. ! (if (or (with-profile?) (with-parallel-write?)) ! " unsigned long long written = 0;\n" ! "") ; The address of this insn, needed by extraction and semantic code. ; Note that the address recorded in the cpu state struct is not used. ; For faster engines that copy will be out of date. *************** using namespace cgen; *** 792,799 **** #endif #include \"@cpu@.h\" ! using namespace @cpu@; // FIXME: namespace organization still wip ! #define GET_ATTR(name) GET_ATTR_##name () \n" --- 795,805 ---- #endif #include \"@cpu@.h\" ! using namespace @cpu@; // FIXME: namespace organization still wip\n") ! (if (with-parallel?) ! (string-write "\ ! using namespace @prefix@; // FIXME: namespace organization still wip\n")) ! (string-write "\ #define GET_ATTR(name) GET_ATTR_##name () \n" --------------050001060400050704020203--