From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19354 invoked by alias); 30 Jul 2009 20:12:53 -0000 Received: (qmail 19342 invoked by uid 22791); 30 Jul 2009 20:12:53 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from kuber.nabble.com (HELO kuber.nabble.com) (216.139.236.158) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 30 Jul 2009 20:12:46 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MWbzY-0007bu-32 for cgen@sourceware.org; Thu, 30 Jul 2009 13:12:44 -0700 Message-ID: <24746519.post@talk.nabble.com> Date: Thu, 30 Jul 2009 20:12:00 -0000 From: Joseph A To: cgen@sourceware.org Subject: Re: how can one achieve pipelined operation? In-Reply-To: <20090712022717.GB2347@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit References: <24210860.post@talk.nabble.com> <20090701105032.GA13767@redhat.com> <4A4C23E6.60401@sebabeach.org> <20090702122900.GI32510@redhat.com> <24310149.post@talk.nabble.com> <20090712022717.GB2347@redhat.com> X-IsSubscribed: yes Mailing-List: contact cgen-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sourceware.org X-SW-Source: 2009-q3/txt/msg00042.txt.bz2 > I get two errors which say "error: invalid initialization of > reference of type '%ISA1%::write_stacks&' from expression of type > '%CPU%::write_stacks'" and "error: invalid initialization of > reference of type '%ISA2%::write_stacks&' from expression of type > '%CPU%::write_stacks'". Problem solved. These two errors were caused by an incorrect makefile as well as incorrect code. In my %CPU%.h file I had declared write_stacks as %CPU%::write_stacks write_stacks. Instead I needed to declare two separate stacks, %ISA1%::write_stacks write_stacks1 and %ISA2%::write_stacks write_stacks2. I also discovered that I had not told CGEN to generate the files %CPU%-%ISAX%-defs.h. This caused me to get an incomplete definition error when I tried to make the altered code. I fixed this by going into the makefile in src/sid/component/cgen-cpu/%CPU% and altering it such that it would cause CGEN to generate the defs files, using the sh and mt ports as examples. -- View this message in context: http://www.nabble.com/how-can-one-achieve-pipelined-operation--tp24210860p24746519.html Sent from the Sourceware - cgen list mailing list archive at Nabble.com.