Received: from eggs.gnu.org ([140.186.70.92]:34540) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QsuCM-0007TS-1k for qemu-devel@nongnu.org; Mon, 15 Aug 2011 06:15:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QsuCK-0001Ef-Sr for qemu-devel@nongnu.org; Mon, 15 Aug 2011 06:15:10 -0400 Received: from smtp.siriusit.co.uk ([81.187.123.5]:42004) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QsuCK-0001Ab-N4 for qemu-devel@nongnu.org; Mon, 15 Aug 2011 06:15:08 -0400 Received: from [192.168.1.137] by smtp.siriusit.co.uk with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1QsuC9-0001Is-1B for qemu-devel@nongnu.org; Mon, 15 Aug 2011 11:14:57 +0100 Message-ID: <4E48F1A0.3080904@siriusit.co.uk> Date: Mon, 15 Aug 2011 11:14:56 +0100 From: Mark Cave-Ayland MIME-Version: 1.0 References: <4E43FF4E.7080501@mc.net> In-Reply-To: <4E43FF4E.7080501@mc.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] sparc32_dma: correctly initialize ledma base address List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On 11/08/11 17:11, Bob Breuer wrote: > The ledma base address defaults to 0xff000000 on reset. This > fixes a bug with Solaris and SS-20 OBP when boot net is skipped. > > Signed-off-by: Bob Breuer > --- > > diff --git a/hw/sparc32_dma.c b/hw/sparc32_dma.c > index e75694b..61812fb 100644 > --- a/hw/sparc32_dma.c > +++ b/hw/sparc32_dma.c > @@ -252,6 +252,9 @@ static void dma_reset(DeviceState *d) > > memset(s->dmaregs, 0, DMA_SIZE); > s->dmaregs[0] = DMA_VER; > + if (s->is_ledma) { > + s->dmaregs[3] = 0xff000000; > + } > } > > static const VMStateDescription vmstate_dma = { Oh that's interesting indeed. This corresponds to the fix I added to OpenBIOS here: http://lists.openbios.org/pipermail/openbios/2011-April/006350.html. I guess that we should just assume a fixed address of 0xff000000 based upon the evidence we have to date. ATB, Mark. -- Mark Cave-Ayland - Senior Technical Architect PostgreSQL - PostGIS Sirius Corporation plc - control through freedom http://www.siriusit.co.uk t: +44 870 608 0063 Sirius Labs: http://www.siriusit.co.uk/labs