mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
x86: make vmmouse optional
Compile vmmouse in hwlib. Ignore failure if vmmouse device can't be created. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
86f4a9a5c7
commit
86d864140b
8 changed files with 29 additions and 27 deletions
6
hw/pc.c
6
hw/pc.c
|
@ -1134,8 +1134,10 @@ void pc_basic_device_init(qemu_irq *isa_irq,
|
|||
i8042 = isa_create_simple("i8042");
|
||||
i8042_setup_a20_line(i8042, &a20_line[0]);
|
||||
vmport_init();
|
||||
vmmouse = isa_create("vmmouse");
|
||||
qdev_prop_set_ptr(&vmmouse->qdev, "ps2_mouse", i8042);
|
||||
vmmouse = isa_try_create("vmmouse");
|
||||
if (vmmouse) {
|
||||
qdev_prop_set_ptr(&vmmouse->qdev, "ps2_mouse", i8042);
|
||||
}
|
||||
port92 = isa_create_simple("port92");
|
||||
port92_init(port92, &a20_line[1]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue