aboutsummaryrefslogtreecommitdiff
path: root/hw/usb-uhci.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-04-25 21:01:19 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-04-25 21:01:19 +0000
commit467d409f7e7b30da22497fdcd6fe45f1369eed74 (patch)
treedc6c8fd37cb654e904b8bc0e2f7446d269310312 /hw/usb-uhci.c
parentfd06c37550b43980e8d641bb109c219cbe001d13 (diff)
downloadqemu-467d409f7e7b30da22497fdcd6fe45f1369eed74.zip
qemu-467d409f7e7b30da22497fdcd6fe45f1369eed74.tar.gz
qemu-467d409f7e7b30da22497fdcd6fe45f1369eed74.tar.bz2
fix for HCHALTED status bit
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1852 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/usb-uhci.c')
-rw-r--r--hw/usb-uhci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/usb-uhci.c b/hw/usb-uhci.c
index 10b3fa6..23964f3 100644
--- a/hw/usb-uhci.c
+++ b/hw/usb-uhci.c
@@ -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) {