diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-04-10 19:04:48 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-04-10 19:04:48 +0000 |
commit | 289e09e77bc4d48dd79798232ecb88a30196c737 (patch) | |
tree | a551aead127cca3fc165b64ee7d108004f08c8d8 | |
parent | 7ae9862745abb67789a34d4354cc738ab172b377 (diff) | |
download | qemu-289e09e77bc4d48dd79798232ecb88a30196c737.zip qemu-289e09e77bc4d48dd79798232ecb88a30196c737.tar.gz qemu-289e09e77bc4d48dd79798232ecb88a30196c737.tar.bz2 |
fixed keyboard random bug (Mike Nordell)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@718 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r-- | hw/pckbd.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -290,9 +290,9 @@ static uint32_t kbd_read_data(void *opaque, uint32_t addr) KBDQueue *q; int val, index; - q = &s->queues[0]; /* first check KBD data */ + q = &s->queues[1]; /* first check AUX data */ if (q->count == 0) - q = &s->queues[1]; /* then check AUX data */ + q = &s->queues[0]; /* then check KBD data */ if (q->count == 0) { /* NOTE: if no data left, we return the last keyboard one (needed for EMM386) */ |