fix for HCHALTED status bit

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1852 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
bellard 2006-04-25 21:01:19 +00:00
parent fd06c37550
commit 467d409f7e

View File

@ -175,7 +175,7 @@ static void uhci_ioport_writew(void *opaque, uint32_t addr, uint32_t val)
/* start frame processing */
qemu_mod_timer(s->frame_timer, qemu_get_clock(vm_clock));
s->status &= ~UHCI_STS_HCHALTED;
} else if (!(val & UHCI_CMD_RS) && !(s->cmd & UHCI_CMD_RS)) {
} else if (!(val & UHCI_CMD_RS)) {
s->status |= UHCI_STS_HCHALTED;
}
if (val & UHCI_CMD_GRESET) {