]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
sparc: disable floppy DMA
authorHervé Poussineau <hpoussin@reactos.org>
Wed, 3 Feb 2016 16:28:57 +0000 (11:28 -0500)
committerJohn Snow <jsnow@redhat.com>
Wed, 3 Feb 2016 16:28:57 +0000 (11:28 -0500)
All functions relative to DMA (DMA_*() functions) are stubs on sparc platform.
Disable the DMA in the floppy controller, instead of calling these stubs.

Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
Message-id: 1453843944-26833-14-git-send-email-hpoussin@reactos.org
Signed-off-by: John Snow <jsnow@redhat.com>
hw/block/fdc.c

index 9ef899d91ffb13d8b249127f8831a834e44df148..40abeef61528fc8e4c8e3f13c6f44fff3df10eb8 100644 (file)
@@ -2492,6 +2492,8 @@ static void sun4m_fdc_initfn(Object *obj)
     FDCtrlSysBus *sys = SYSBUS_FDC(obj);
     FDCtrl *fdctrl = &sys->state;
 
+    fdctrl->dma_chann = -1;
+
     memory_region_init_io(&fdctrl->iomem, obj, &fdctrl_mem_strict_ops,
                           fdctrl, "fdctrl", 0x08);
     sysbus_init_mmio(sbd, &fdctrl->iomem);