From patchwork Thu Aug 11 16:11:58 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bob Breuer X-Patchwork-Id: 109635 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 854C3B72DF for ; Fri, 12 Aug 2011 02:07:24 +1000 (EST) Received: from localhost ([::1]:33359 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrXmx-0004Wq-5e for incoming@patchwork.ozlabs.org; Thu, 11 Aug 2011 12:07:19 -0400 Received: from eggs.gnu.org ([140.186.70.92]:51979) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrXmp-0004V8-FZ for qemu-devel@nongnu.org; Thu, 11 Aug 2011 12:07:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QrXml-0001bc-Ln for qemu-devel@nongnu.org; Thu, 11 Aug 2011 12:07:11 -0400 Received: from mail.mc.net ([209.172.128.24]:43861) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QrXml-0001bO-Fu for qemu-devel@nongnu.org; Thu, 11 Aug 2011 12:07:07 -0400 Received: (qmail 27156 invoked by uid 420); 11 Aug 2011 16:07:07 -0000 Received: from unknown (HELO ?127.0.0.1?) (breuerr@209.172.177.18) by mail.mc.net with SMTP; 11 Aug 2011 16:07:07 -0000 Message-ID: <4E43FF4E.7080501@mc.net> Date: Thu, 11 Aug 2011 11:11:58 -0500 From: Bob Breuer User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: qemu-devel X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-Received-From: 209.172.128.24 Cc: Blue Swirl Subject: [Qemu-devel] sparc32_dma: correctly initialize ledma base address X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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 = {