Merge pull request #38 from fysnet/master

Forgot to add SPD action to UHCI
This commit is contained in:
Stanislav Shwartsman 2023-03-22 06:54:26 +02:00 committed by GitHub
commit 45ed74dc1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -764,8 +764,8 @@ void bx_uhci_core_c::uhci_timer(void)
// copy pointer for next queue item into vert queue head
DEV_MEM_WRITE_PHYSICAL((queue_addr & ~0xF) + sizeof(Bit32u), sizeof(Bit32u), (Bit8u *) &item);
}
// if breadth first or last in the element list, move on to next queue item
if (!depthbreadth || !USB_UHCI_IS_LINK_VALID(item)) {
// if breadth first, short packet, or last in the element list, move on to next queue item
if (!depthbreadth || !USB_UHCI_IS_LINK_VALID(item) || was_short) {
item = queue.horz;
queue_addr = 0;
}