OSDN Git Service

adb: fix read reg 3 byte ordering
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Tue, 12 Jun 2018 16:44:00 +0000 (17:44 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Sat, 16 Jun 2018 06:32:33 +0000 (16:32 +1000)
commitfb6649f172d6ea1a8d8980b7f93d31808eb06ff8
tree8f729386dc912acf16ced60ebeb07046e3752ea4
parent8f55ac13049f3c737373d9de8598a2a03e6a03f9
adb: fix read reg 3 byte ordering

According to the Apple ADB documentation, register 3 is a 2-byte register
with the device address in the first byte, and the handler ID in the second
byte.

This is currently the opposite away to which QEMU returns them so switch the
order around.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/input/adb-kbd.c
hw/input/adb-mouse.c