From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38555) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOBEB-0003tv-E2 for qemu-devel@nongnu.org; Tue, 26 Jan 2016 16:32:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aOBEA-0006jC-0Z for qemu-devel@nongnu.org; Tue, 26 Jan 2016 16:32:43 -0500 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Tue, 26 Jan 2016 22:32:18 +0100 Message-Id: <1453843944-26833-14-git-send-email-hpoussin@reactos.org> In-Reply-To: <1453843944-26833-1-git-send-email-hpoussin@reactos.org> References: <1453843944-26833-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 v3 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 , =?UTF-8?q?Herv=C3=A9=20Poussineau?= , John Snow , "open list:Floppy" 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 e3b0e1e..e45a7f4 100644 --- a/hw/block/fdc.c +++ b/hw/block/fdc.c @@ -2485,6 +2485,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