Commit 467d409f7e7b30da22497fdcd6fe45f1369eed74

Authored by bellard
1 parent fd06c375

fix for HCHALTED status bit


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1852 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
hw/usb-uhci.c
... ... @@ -175,7 +175,7 @@ static void uhci_ioport_writew(void *opaque, uint32_t addr, uint32_t val)
175 175 /* start frame processing */
176 176 qemu_mod_timer(s->frame_timer, qemu_get_clock(vm_clock));
177 177 s->status &= ~UHCI_STS_HCHALTED;
178   - } else if (!(val & UHCI_CMD_RS) && !(s->cmd & UHCI_CMD_RS)) {
  178 + } else if (!(val & UHCI_CMD_RS)) {
179 179 s->status |= UHCI_STS_HCHALTED;
180 180 }
181 181 if (val & UHCI_CMD_GRESET) {
... ...