According to xHCI spec rev 1.2, unaligned access to xHCI Host Controller Capability Registers are not prohibited. But current implementation does not support unaligned access to 'MemoryRegion'. These patches contain 2 changes: 1. support unaligned access to 'MemoryRegion' 2. allow unaligned access to Host Controller Capability Registers.
Tomoyuki HIROSE (2): system/memory.c: support unaligned access hw/usb/hcd-xhci.c: allow unaligned access to Capability Registers hw/usb/hcd-xhci.c | 4 +++- system/memory.c | 22 ++++++++++++++++------ 2 files changed, 19 insertions(+), 7 deletions(-) -- 2.39.2