Commit 289e09e77bc4d48dd79798232ecb88a30196c737

Authored by bellard
1 parent 7ae98627

fixed keyboard random bug (Mike Nordell)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@718 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 2 deletions
hw/pckbd.c
@@ -290,9 +290,9 @@ static uint32_t kbd_read_data(void *opaque, uint32_t addr) @@ -290,9 +290,9 @@ static uint32_t kbd_read_data(void *opaque, uint32_t addr)
290 KBDQueue *q; 290 KBDQueue *q;
291 int val, index; 291 int val, index;
292 292
293 - q = &s->queues[0]; /* first check KBD data */ 293 + q = &s->queues[1]; /* first check AUX data */
294 if (q->count == 0) 294 if (q->count == 0)
295 - q = &s->queues[1]; /* then check AUX data */ 295 + q = &s->queues[0]; /* then check KBD data */
296 if (q->count == 0) { 296 if (q->count == 0) {
297 /* NOTE: if no data left, we return the last keyboard one 297 /* NOTE: if no data left, we return the last keyboard one
298 (needed for EMM386) */ 298 (needed for EMM386) */