diff options
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2018-03-08 23:39:34 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-03-12 16:12:48 +0100 |
commit | 72d3d8f052a19abc455ddc88efef75c407ac7c8d (patch) | |
tree | 68f668d46d499a7fc87d7b6c4b5400c80d5cbb98 /hw/isa/isa-superio.c | |
parent | 6f6695b13638b0a4bfd9f75c022a9a7c55fb0b51 (diff) | |
download | qemu-72d3d8f052a19abc455ddc88efef75c407ac7c8d.zip qemu-72d3d8f052a19abc455ddc88efef75c407ac7c8d.tar.gz qemu-72d3d8f052a19abc455ddc88efef75c407ac7c8d.tar.bz2 |
hw/isa/superio: Add a keyboard/mouse controller (8042)
Since the PC87312 inherits this abstract model, we remove the I8042
instance in the PREP machine.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Message-Id: <20180308223946.26784-14-f4bug@amsat.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/isa/isa-superio.c')
-rw-r--r-- | hw/isa/isa-superio.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/isa/isa-superio.c b/hw/isa/isa-superio.c index 4b5e280..041b47b 100644 --- a/hw/isa/isa-superio.c +++ b/hw/isa/isa-superio.c @@ -17,6 +17,7 @@ #include "sysemu/blockdev.h" #include "chardev/char.h" #include "hw/isa/superio.h" +#include "hw/input/i8042.h" #include "hw/char/serial.h" #include "trace.h" @@ -143,6 +144,8 @@ static void isa_superio_realize(DeviceState *dev, Error **errp) k->floppy.get_irq(sio, 0) : -1); } + /* Keyboard, mouse */ + sio->kbc = isa_create_simple(bus, TYPE_I8042); } static void isa_superio_class_init(ObjectClass *oc, void *data) |