diff options
author | Helge Deller <deller@gmx.de> | 2025-02-04 21:04:39 +0100 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2025-02-04 22:57:34 +0100 |
commit | b6247273fb6f53c94794444f9385029488bcb6fb (patch) | |
tree | 692e1d5c2b58e1cd521fd60529be16ed9db4dae4 /hw/hppa | |
parent | d4b3c927909c9e3cb687d2d4b0d7f26b63d1f7e9 (diff) | |
download | qemu-b6247273fb6f53c94794444f9385029488bcb6fb.zip qemu-b6247273fb6f53c94794444f9385029488bcb6fb.tar.gz qemu-b6247273fb6f53c94794444f9385029488bcb6fb.tar.bz2 |
hw/hppa: Avoid creation of artist if disabled on command line
Do not create the artist graphic card if the user disabled it
with "-global artist.disable=true" on the command line.
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'hw/hppa')
-rw-r--r-- | hw/hppa/machine.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/hw/hppa/machine.c b/hw/hppa/machine.c index 9c98b4c..c5f2476 100644 --- a/hw/hppa/machine.c +++ b/hw/hppa/machine.c @@ -366,12 +366,15 @@ static void machine_HP_common_init_tail(MachineState *machine, PCIBus *pci_bus, /* Graphics setup. */ if (machine->enable_graphics && vga_interface_type != VGA_NONE) { - vga_interface_created = true; dev = qdev_new("artist"); s = SYS_BUS_DEVICE(dev); - sysbus_realize_and_unref(s, &error_fatal); - sysbus_mmio_map(s, 0, translate(NULL, LASI_GFX_HPA)); - sysbus_mmio_map(s, 1, translate(NULL, ARTIST_FB_ADDR)); + bool disabled = object_property_get_bool(OBJECT(dev), "disable", NULL); + if (!disabled) { + sysbus_realize_and_unref(s, &error_fatal); + vga_interface_created = true; + sysbus_mmio_map(s, 0, translate(NULL, LASI_GFX_HPA)); + sysbus_mmio_map(s, 1, translate(NULL, ARTIST_FB_ADDR)); + } } /* Network setup. */ |