From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ItrPc-0005Eu-74 for qemu-devel@nongnu.org; Sun, 18 Nov 2007 16:10:40 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ItrPa-0005B8-KM for qemu-devel@nongnu.org; Sun, 18 Nov 2007 16:10:39 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ItrPa-0005Au-Hb for qemu-devel@nongnu.org; Sun, 18 Nov 2007 16:10:38 -0500 Received: from nf-out-0910.google.com ([64.233.182.191]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ItrPa-0004uM-8V for qemu-devel@nongnu.org; Sun, 18 Nov 2007 16:10:38 -0500 Received: by nf-out-0910.google.com with SMTP id 30so1358857nfu for ; Sun, 18 Nov 2007 13:10:36 -0800 (PST) Message-ID: Date: Sun, 18 Nov 2007 23:10:35 +0200 From: "Blue Swirl" Subject: Re: [Qemu-devel] [RFC][PATCH] fix sparc32 mxcc 64 bit read word order In-Reply-To: <4740A735.8060508@earthlink.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <473C4027.3030608@earthlink.net> <473CD151.6050000@earthlink.net> <4740A735.8060508@earthlink.net> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On 11/18/07, Robert Reif wrote: > Blue Swirl wrote: > > >On 11/16/07, Robert Reif wrote: > > > > > >>>This patch fixes the word order for 64 bit reads of the mxcc registers. > >>> > >>> > > > >Otherwise everything seems OK, but it breaks NetBSD version 3 on SS10: > >clock0 at obio0 slot 0 offset 0x200000: mk48t08 > >timer0 at obio0 slot 0 offset 0x300000data fault: pc=0xf0111a0c > >addr=0x0 sfsr=126 > >panic: kernel fault > >halted > > > >halt, power off > > > >Without the patch I get: > >clock0 at obio0 slot 0 offset 0x200000: mk48t08 > >timer0 at obio0 slot 0 offset 0x300000: delay constant 99 > >zs0 at obio0 slot 0 offset 0x100000 level 12 softpri 6 > >zstty0 at zs0 channel 0 (console i/o) > >zstty1 at zs0 channel 1 > >scsi-disk: Unsupported command length, command 79 > > > > > > > > > > > This is a classic case of two wrongs make a right. OpenBios need to be > fixed to set mbus module id to start at 8, not 0 for mbus based machines. Turbosparc manual says that the module id is hardwired to 0x8, so would it be OK if mid was i + 8 for all machines?