diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-05-12 19:27:23 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-05-12 19:27:23 +0000 |
commit | 5acd0646b6033d40ef5d0ae06338cc354108f640 (patch) | |
tree | 34596475da625d681c5435fd3e0e1f6803f87428 | |
parent | 9c0afd0e1df092e0d8a3cefdcb81e664cf18d97c (diff) |
pckbd: don't use any static state
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r-- | hw/pckbd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/pckbd.c b/hw/pckbd.c index 7998aa66b5..e83b8a6bcb 100644 --- a/hw/pckbd.c +++ b/hw/pckbd.c @@ -126,8 +126,6 @@ typedef struct KBDState { target_phys_addr_t mask; } KBDState; -static KBDState kbd_state; - /* update irq and KBD_STAT_[MOUSE_]OBF */ /* XXX: not generating the irqs if KBD_MODE_DISABLE_KBD is set may be incorrect, but it avoids having to simulate exact delays */ @@ -390,7 +388,7 @@ void i8042_mm_init(qemu_irq kbd_irq, qemu_irq mouse_irq, target_phys_addr_t base, ram_addr_t size, target_phys_addr_t mask) { - KBDState *s = &kbd_state; + KBDState *s = qemu_mallocz(sizeof(KBDState)); int s_io_memory; s->irq_kbd = kbd_irq; |