From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26524 invoked by alias); 15 Oct 2009 14:50:25 -0000 Received: (qmail 26500 invoked by uid 22791); 15 Oct 2009 14:50:24 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-fx0-f225.google.com (HELO mail-fx0-f225.google.com) (209.85.220.225) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 15 Oct 2009 14:50:20 +0000 Received: by fxm25 with SMTP id 25so1266367fxm.0 for ; Thu, 15 Oct 2009 07:50:18 -0700 (PDT) Received: by 10.204.13.201 with SMTP id d9mr120516bka.12.1255618218020; Thu, 15 Oct 2009 07:50:18 -0700 (PDT) Received: from ?192.168.2.99? (cpc2-cmbg8-0-0-cust61.cmbg.cable.ntl.com [82.6.108.62]) by mx.google.com with ESMTPS id 35sm259860fkt.46.2009.10.15.07.50.15 (version=SSLv3 cipher=RC4-MD5); Thu, 15 Oct 2009 07:50:15 -0700 (PDT) Message-ID: <4AD73A25.8090102@gmail.com> Date: Thu, 15 Oct 2009 14:53:00 -0000 From: Dave Korn User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Joel Sherrill CC: gdb@sourceware.org Subject: Re: odd (inappropriate?) sparc references in sim References: <4AD7233C.3010005@oarcorp.com> In-Reply-To: <4AD7233C.3010005@oarcorp.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-10/txt/msg00269.txt.bz2 Joel Sherrill wrote: > ./m32r/sim-if.c: /* Store in a global so things like sparc32_dump_regs > can be invoked > ./iq2000/sim-if.c: /* Store in a global so things like > sparc32_dump_regs can be invoked > > I am not sure about the endianness comment but the > sparc32_dump_regs one looks incorrect. Well, dunno what sparc32_dump_regs is or ever was, but the important property it must have had that made this comment want to refer to it is that it needed a a static pointer to the current SIM_DESC because it didn't get one passed in as an argument. It appears that frv/mloop.in and a private port I'm developing are the only actual users of this static. Unless I've misread the code (possible since I'm only grepping it without context) every other use is just to set its current value, in either startup or main loop code. cheers, DaveK