bochs: fix segmentation fault in DMA controller

Change-Id: I10c3e7e89d41abdcaea374ea01a2d1613d013e4c
This commit is contained in:
Christoph Borchert
2016-09-08 10:35:33 +02:00
parent 85844b86cc
commit 9886a0345e

View File

@ -699,6 +699,10 @@ void bx_dma_c::raise_HLDA(void)
// wait till they're unmasked
return;
}
if (!BX_DMA_THIS s[ma_sl].chan[channel].used) {
//BX_PANIC(("hlda: channel %d not connected to device", channel));
return;
}
//BX_DEBUG(("hlda: OK in response to DRQ(%u)", (unsigned) channel));
phy_addr = (BX_DMA_THIS s[ma_sl].chan[channel].page_reg << 16) |