OSDN Git Service

fdc: Exit if ISA controller does not support DMA
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Fri, 16 Mar 2018 09:51:30 +0000 (10:51 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 26 Mar 2018 12:37:13 +0000 (14:37 +0200)
commitb3da551389c86ce214d5418c174134c3e1c838ab
treec23a01af5bb298ac1b26e402afa7e67d6ea80e77
parent089eac81e1d34d202471c0a023284f47f4c5f00e
fdc: Exit if ISA controller does not support DMA

A "powernv" machine type defines an ISA bus but it does not add any DMA
controller to it so it is possible to hit assert(fdctrl->dma) by
adding "-machine powernv -device isa-fdc".

This replaces assert() with an error message.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
[thuth: Slightly adjusted error message and updated scripts/device-crash-test]
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <1521193892-15552-3-git-send-email-thuth@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/block/fdc.c