mirror of https://gitee.com/openkylin/qemu.git
lsi53c895a: LSIState is a DeviceHost
Go figure. Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
f305261fbb
commit
63124a0d88
|
@ -1960,7 +1960,7 @@ static void lsi_mmio_mapfunc(PCIDevice *pci_dev, int region_num,
|
|||
|
||||
void lsi_scsi_attach(DeviceState *host, BlockDriverState *bd, int id)
|
||||
{
|
||||
LSIState *s = (LSIState *)host;
|
||||
LSIState *s = DO_UPCAST(LSIState, dev.qdev, host);
|
||||
|
||||
if (id < 0) {
|
||||
for (id = 0; id < LSI_MAX_DEVS; id++) {
|
||||
|
|
Loading…
Reference in New Issue