diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-12-17 11:23:25 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-01-22 15:07:03 +0100 |
commit | 032f0101aa6e009efda3a419379837ebceaeade1 (patch) | |
tree | 7d60fb6f1b36b3ceeebc7f6a436bcc256818d545 | |
parent | 0369f06f7464e7fb023f103aff889d28e99c43c4 (diff) | |
download | hqemu-032f0101aa6e009efda3a419379837ebceaeade1.zip hqemu-032f0101aa6e009efda3a419379837ebceaeade1.tar.gz |
lsi: use qbus_reset_all to reset SCSI bus
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | hw/lsi53c895a.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c index 89c657f..860df32 100644 --- a/hw/lsi53c895a.c +++ b/hw/lsi53c895a.c @@ -1670,12 +1670,7 @@ static void lsi_reg_writeb(LSIState *s, int offset, uint8_t val) } if (val & LSI_SCNTL1_RST) { if (!(s->sstat0 & LSI_SSTAT0_RST)) { - BusChild *kid; - - QTAILQ_FOREACH(kid, &s->bus.qbus.children, sibling) { - DeviceState *dev = kid->child; - device_reset(dev); - } + qbus_reset_all(&s->bus.qbus); s->sstat0 |= LSI_SSTAT0_RST; lsi_script_scsi_interrupt(s, LSI_SIST0_RST, 0); } |