diff options
author | Lai Jiangshan <laijs@cn.fujitsu.com> | 2012-04-02 14:35:30 +0800 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2012-04-26 12:21:16 +0200 |
commit | 215bff17ed89733c23174494cbff63ab941368ca (patch) | |
tree | e3755f2d11d7ffe341bd3841aa832db25d02e369 /hw/usb | |
parent | 59a70ccd3be29d2c5034cf7f22de0cf4e9156432 (diff) | |
download | qemu-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.c | 2 |
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; } |