diff options
| author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-06-21 16:47:13 +0000 |
|---|---|---|
| committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-06-21 16:47:13 +0000 |
| commit | 819e712bfe40f0706689a98f9968f842e3aaccd1 (patch) | |
| tree | 3472e5c21cc03a7561f3aa78d9c45a5737379f88 /hw/adb.c | |
| parent | 28b9b5af25ec8c3f4235c20bb8c53c0fe1242e5f (diff) | |
| download | focaccia-qemu-819e712bfe40f0706689a98f9968f842e3aaccd1.tar.gz focaccia-qemu-819e712bfe40f0706689a98f9968f842e3aaccd1.zip | |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/adb.c b/hw/adb.c index 6442d796b6..2d230a697e 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; |