[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] hw/usb: Check cycle bit before trace call
From: |
Ian Moffett |
Subject: |
[PATCH] hw/usb: Check cycle bit before trace call |
Date: |
Wed, 3 Apr 2024 16:03:49 -0400 |
Signed-off-by: Ian Moffett <industrial.reformer@gmail.com>
---
hw/usb/hcd-xhci.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c
index ad40232eb6..ea5bc64b26 100644
--- a/hw/usb/hcd-xhci.c
+++ b/hw/usb/hcd-xhci.c
@@ -710,13 +710,13 @@ static TRBType xhci_ring_fetch(XHCIState *xhci, XHCIRing
*ring, XHCITRB *trb,
le32_to_cpus(&trb->status);
le32_to_cpus(&trb->control);
- trace_usb_xhci_fetch_trb(ring->dequeue, trb_name(trb),
- trb->parameter, trb->status, trb->control);
-
if ((trb->control & TRB_C) != ring->ccs) {
return 0;
}
+ trace_usb_xhci_fetch_trb(ring->dequeue, trb_name(trb),
+ trb->parameter, trb->status, trb->control);
+
type = TRB_TYPE(*trb);
if (type != TR_LINK) {
--
2.44.0
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] hw/usb: Check cycle bit before trace call,
Ian Moffett <=