From patchwork Sun Dec 22 17:29:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Herv=C3=A9_Poussineau?= X-Patchwork-Id: 1214753 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=reactos.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=reactos.org header.i=@reactos.org header.b="PHK/1Nrl"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47gqHj6VwQz9sP6 for ; Mon, 23 Dec 2019 04:30:07 +1100 (AEDT) Received: from localhost ([::1]:49598 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ij53M-0005co-IE for incoming@patchwork.ozlabs.org; Sun, 22 Dec 2019 12:30:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43206) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ij52l-0005ce-PF for qemu-devel@nongnu.org; Sun, 22 Dec 2019 12:29:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ij52k-0006T4-HU for qemu-devel@nongnu.org; Sun, 22 Dec 2019 12:29:27 -0500 Received: from iserv.reactos.org ([2a01:4f8:1c17:5ae1::1]:40934) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ij52j-0006BX-VB for qemu-devel@nongnu.org; Sun, 22 Dec 2019 12:29:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=reactos.org ; s=25047; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=USE0NpeN1sKP/l6q+modRrZFP5TfsnYOSX8h3DSkW8A=; b=PHK/1NrlrBOTDBA3Q4qGBMu+2V fN6TnwKrVAuoD9pcjv6VByrrCOjVEyxSFF5yULPaHViJ1QnlRryIpQCctp0YfDTwVeuKbzP+XROlf BaTmmO/P/hv92OqzBCfrC6dYvARNbiPL4zdW996hFSoOyvTjJlke/ic91gAyzbZa15nM=; Received: from [2a01:e35:2e3e:3c40:3a59:f9ff:fedc:97e7] (helo=localhost.localdomain) by iserv.reactos.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ij52e-0001Q3-VS; Sun, 22 Dec 2019 17:29:21 +0000 From: =?utf-8?q?Herv=C3=A9_Poussineau?= To: qemu-devel@nongnu.org, Aleksandar Rikalo Subject: [PATCH] dma/rc4030: correctly reset DMA translation table at reset Date: Sun, 22 Dec 2019 18:29:13 +0100 Message-Id: <20191222172913.10419-1-hpoussin@reactos.org> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a01:4f8:1c17:5ae1::1 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Herv=C3=A9_Poussineau?= Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" This fixes a freeze at reboot, introduced in c627e7526a902dd5bb1907dbbd5cf961679dfa68 Signed-off-by: Hervé Poussineau --- hw/dma/rc4030.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/dma/rc4030.c b/hw/dma/rc4030.c index c4cf8236f4..76302fe431 100644 --- a/hw/dma/rc4030.c +++ b/hw/dma/rc4030.c @@ -534,6 +534,7 @@ static void rc4030_reset(DeviceState *dev) memset(s->dma_regs, 0, sizeof(s->dma_regs)); + s->dma_tl_base = s->dma_tl_limit = 0; s->remote_failed_address = s->memory_failed_address = 0; s->cache_maint = 0; s->cache_ptag = s->cache_ltag = 0;