From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22433 invoked by alias); 15 Apr 2005 17:18:33 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 22326 invoked from network); 15 Apr 2005 17:18:28 -0000 Received: from unknown (HELO mx01.qsc.de) (213.148.129.14) by sourceware.org with SMTP; 15 Apr 2005 17:18:28 -0000 Received: from port-195-158-168-78.dynamic.qsc.de ([195.158.168.78] helo=hattusa.textio) by mx01.qsc.de with esmtp (Exim 3.35 #1) id 1DMUSL-0006Kn-00; Fri, 15 Apr 2005 19:18:13 +0200 Received: from ths by hattusa.textio with local (Exim 4.50) id 1DMUSL-000798-Al; Fri, 15 Apr 2005 19:18:13 +0200 Date: Fri, 15 Apr 2005 17:18:00 -0000 To: "Maciej W. Rozycki" Cc: Eric Christopher , newlib@sources.redhat.com, binutils@sources.redhat.com, cgd@broadcom.com Subject: Re: [patch] adjust libgloss addresses for 64-bit Message-ID: <20050415171813.GG21496@hattusa.textio> References: <1113516346.4591.39.camel@localhost.localdomain> <20050414223754.GI32470@hattusa.textio> <1113583817.4591.68.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i From: Thiemo Seufer X-SW-Source: 2005-04/txt/msg00430.txt.bz2 Maciej W. Rozycki wrote: > On Fri, 15 Apr 2005, Eric Christopher wrote: > > > > > > leaving us with a zero-extended value in a register which is > > > > > unpredictable as far as the standard (and at least one chip out there) > > > > > > Hmm, 0x80000000 should be a valid XKUSEG address... > > > > > > > Nothing wrong with the address, but it's loaded as: > > > > ori $2,0x8000 > > dsll $2,$2,0x10 > > > > so it's zero extended and not sign extended as it should be. > > Of course it is zero-extended. Otherwise it would be a different one; > actually in the CKSEG0 space rather than XKUSEG. If you want the former, > what's wrong with 0xffffffff80000000? -- please keep in mind we are > talking about 64-bit addressing. But people used to use "la $2, 0x80000000" in order to get a sign-extended address. Loading two different addresses with the same code is at least surprising. I see la in 64bit mode as backward compatibility legacy, and this suggests not to change its behaviour. Thiemo