From owner-freebsd-ppc@FreeBSD.ORG Sun Apr 6 10:08:00 2003 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6435B37B407; Sun, 6 Apr 2003 10:08:00 -0700 (PDT) Received: from dragon.nuxi.com (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C02E43FBF; Sun, 6 Apr 2003 10:07:59 -0700 (PDT) (envelope-from obrien@NUXI.com) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.9/8.12.7) with ESMTP id h36H7gD0030762; Sun, 6 Apr 2003 10:07:47 -0700 (PDT) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.9/8.12.9/Submit) id h36H7f26030761; Sun, 6 Apr 2003 10:07:41 -0700 (PDT) Date: Sun, 6 Apr 2003 10:07:41 -0700 From: "David O'Brien" To: Sean_Welch@alum.wofford.org Message-ID: <20030406170741.GA30707@dragon.nuxi.com> References: <2935201.1049563926248.JavaMail.nobody@waldorf.psp.pas.earthlink.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2935201.1049563926248.JavaMail.nobody@waldorf.psp.pas.earthlink.net> User-Agent: Mutt/1.4i X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 cc: Peter Grehan cc: freebsd-ppc@freebsd.org Subject: Re: Newer code? X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: obrien@freebsd.org List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Apr 2003 17:08:00 -0000 On Sat, Apr 05, 2003 at 09:30:49AM -0600, Sean Welch wrote: > I haven't played with this for a couple of weeks and I was > wondering if there had been any progress on the toolchain > effort? I saw mention of what looked like a slightly newer > version of the gcc-diffs I was using posted here; is there > a newer version? Anything else that could use some focussed > testing? The last version of the GCC patch I posted is what you should be using. From owner-freebsd-ppc@FreeBSD.ORG Fri Apr 11 08:17:45 2003 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8213A37B401 for ; Fri, 11 Apr 2003 08:17:45 -0700 (PDT) Received: from bothawui.bothan.net (bothawui.bothan.net [66.92.184.160]) by mx1.FreeBSD.org (Postfix) with SMTP id E8A2043FD7 for ; Fri, 11 Apr 2003 08:17:42 -0700 (PDT) (envelope-from jtl@bothan.net) Received: (qmail 1514 invoked from network); 11 Apr 2003 15:17:41 -0000 Received: from unknown (HELO bothan.net) (127.0.0.1) by localhost with SMTP; 11 Apr 2003 15:17:41 -0000 Date: Fri, 11 Apr 2003 17:18:22 +0200 X-Image-Url: jtl@bothan.net Mime-Version: 1.0 (Apple Message framework v552) Content-Type: text/plain; charset=US-ASCII; format=flowed From: Joshua LeVasseur To: freebsd-ppc@freebsd.org Content-Transfer-Encoding: 7bit Message-Id: X-Mailer: Apple Mail (2.552) Subject: some psim bugs X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Apr 2003 15:17:45 -0000 In case any of you still use psim, I uncovered two more bugs (sorry if these are repeats) ... The first concerns the allocation of Open Firmware's htab. The bug exposes itself when you simulate with lots of memory, causing psim to complain that the htab location is incompatible with the htabmask. The code calculates an incorrect htabmask. In file gdb/sim/ppc/hw_htab.c, function htab_decode_hash_table(), look for: if ((htab_ra & INSERTED32(*htabmask, 7, 15)) != 0) { device_error(parent, "htaborg 0x%lx not aligned to htabmask 0x%lx", (unsigned long)*htaborg, (unsigned long)*htabmask); } And change to: if ((htab_ra & (htab_nr_bytes-1)) != 0) { device_error(parent, "htaborg 0x%lx not aligned to htabmask 0x%lx", (unsigned long)*htaborg, (unsigned long)*htabmask); } After fixing this problem, it is no longer necessary to manually configure OpenFirmware's layout in memory. The second bug also concerns the emulated Open Firmware. The client interface function "nextprop" never returns the first property. In the file gdb/sim/ppc/emul_chirp.c, in chirp_emul_nextprop(), look for the statement: next_prop = device_next_property(prev_prop); And change to: if( *previous == '\0' ) next_prop = prev_prop; /* Return the first property! */ else next_prop = device_next_property(prev_prop); -Josh