fixed keyboard random bug (Mike Nordell)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@718 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
7ae9862745
commit
289e09e77b
|
@ -290,9 +290,9 @@ static uint32_t kbd_read_data(void *opaque, uint32_t addr)
|
||||||
KBDQueue *q;
|
KBDQueue *q;
|
||||||
int val, index;
|
int val, index;
|
||||||
|
|
||||||
q = &s->queues[0]; /* first check KBD data */
|
q = &s->queues[1]; /* first check AUX data */
|
||||||
if (q->count == 0)
|
if (q->count == 0)
|
||||||
q = &s->queues[1]; /* then check AUX data */
|
q = &s->queues[0]; /* then check KBD data */
|
||||||
if (q->count == 0) {
|
if (q->count == 0) {
|
||||||
/* NOTE: if no data left, we return the last keyboard one
|
/* NOTE: if no data left, we return the last keyboard one
|
||||||
(needed for EMM386) */
|
(needed for EMM386) */
|
||||||
|
|
Loading…
Reference in a new issue