aboutsummaryrefslogtreecommitdiff
path: root/hw/usb
diff options
context:
space:
mode:
authorLai Jiangshan <laijs@cn.fujitsu.com>2012-04-02 14:35:30 +0800
committerGerd Hoffmann <kraxel@redhat.com>2012-04-26 12:21:16 +0200
commit215bff17ed89733c23174494cbff63ab941368ca (patch)
treee3755f2d11d7ffe341bd3841aa832db25d02e369 /hw/usb
parent59a70ccd3be29d2c5034cf7f22de0cf4e9156432 (diff)
downloadqemu-215bff17ed89733c23174494cbff63ab941368ca.zip
qemu-215bff17ed89733c23174494cbff63ab941368ca.tar.gz
qemu-215bff17ed89733c23174494cbff63ab941368ca.tar.bz2
usb-xhci: fix bit test
use & instead of the wrong && Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb')
-rw-r--r--hw/usb/hcd-xhci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c
index fd13bba..5cf1a64 100644
--- a/hw/usb/hcd-xhci.c
+++ b/hw/usb/hcd-xhci.c
@@ -501,7 +501,7 @@ static void xhci_irq_update(XHCIState *xhci)
int level = 0;
if (xhci->iman & IMAN_IP && xhci->iman & IMAN_IE &&
- xhci->usbcmd && USBCMD_INTE) {
+ xhci->usbcmd & USBCMD_INTE) {
level = 1;
}