From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49017) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIHrr-00022X-NY for qemu-devel@nongnu.org; Sun, 10 Jan 2016 10:25:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aIHrp-0006gi-4B for qemu-devel@nongnu.org; Sun, 10 Jan 2016 10:25:19 -0500 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Sun, 10 Jan 2016 16:24:52 +0100 Message-Id: <1452439498-21098-14-git-send-email-hpoussin@reactos.org> In-Reply-To: <1452439498-21098-1-git-send-email-hpoussin@reactos.org> References: <1452439498-21098-1-git-send-email-hpoussin@reactos.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v2 13/19] sparc: disable floppy DMA List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , "open list:Floppy" , "Michael S. Tsirkin" , =?UTF-8?q?Herv=C3=A9=20Poussineau?= , Paolo Bonzini , John Snow All functions relative to DMA (DMA_*() functions) are stubs on sparc plat= form. Disable the DMA in the floppy controller, instead of calling these stubs. Signed-off-by: Herv=C3=A9 Poussineau --- hw/block/fdc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/block/fdc.c b/hw/block/fdc.c index 4292ece..4069c46 100644 --- a/hw/block/fdc.c +++ b/hw/block/fdc.c @@ -2375,6 +2375,8 @@ static void sun4m_fdc_initfn(Object *obj) FDCtrlSysBus *sys =3D SYSBUS_FDC(obj); FDCtrl *fdctrl =3D &sys->state; =20 + fdctrl->dma_chann =3D -1; + memory_region_init_io(&fdctrl->iomem, obj, &fdctrl_mem_strict_ops, fdctrl, "fdctrl", 0x08); sysbus_init_mmio(sbd, &fdctrl->iomem); --=20 2.1.4