mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
uhci: fix bandwidth management
uhci_process_frame() can be invoked multiple times per frame, so accounting usb bandwith in a local variable doesn't fly, use a variable in UHCIState instead. Also check the limit more frequently. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
349417004a
commit
4aed20e2d7
2 changed files with 13 additions and 11 deletions
|
@ -263,8 +263,8 @@ usb_uhci_reset(void) "=== RESET ==="
|
|||
usb_uhci_schedule_start(void) ""
|
||||
usb_uhci_schedule_stop(void) ""
|
||||
usb_uhci_frame_start(uint32_t num) "nr %d"
|
||||
usb_uhci_frame_stop_bandwidth(void) ""
|
||||
usb_uhci_frame_loop_stop_idle(void) ""
|
||||
usb_uhci_frame_loop_stop_bandwidth(void) ""
|
||||
usb_uhci_frame_loop_continue(void) ""
|
||||
usb_uhci_mmio_readw(uint32_t addr, uint32_t val) "addr %04x, ret 0x04%x"
|
||||
usb_uhci_mmio_writew(uint32_t addr, uint32_t val) "addr %04x, val 0x04%x"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue