summaryrefslogtreecommitdiffstats
path: root/hw/adb.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-06-21 16:47:13 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-06-21 16:47:13 +0000
commit819e712bfe40f0706689a98f9968f842e3aaccd1 (patch)
tree3472e5c21cc03a7561f3aa78d9c45a5737379f88 /hw/adb.c
parent28b9b5af25ec8c3f4235c20bb8c53c0fe1242e5f (diff)
downloadhqemu-819e712bfe40f0706689a98f9968f842e3aaccd1.zip
hqemu-819e712bfe40f0706689a98f9968f842e3aaccd1.tar.gz
cuda fixes
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@950 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/adb.c')
-rw-r--r--hw/adb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/adb.c b/hw/adb.c
index 6442d79..2d230a6 100644
--- a/hw/adb.c
+++ b/hw/adb.c
@@ -63,8 +63,8 @@ void adb_receive_packet(ADBBusState *s, const uint8_t *buf, int len)
int devaddr, cmd, i;
uint8_t obuf[4];
- cmd = buf[1] & 0xf;
- devaddr = buf[1] >> 4;
+ cmd = buf[0] & 0xf;
+ devaddr = buf[0] >> 4;
if (buf[1] == ADB_BUSRESET) {
obuf[0] = 0x00;
obuf[1] = 0x00;
OpenPOWER on IntegriCloud