When qemu was started with the -nographic option, do not enable the
artist graphic card emulation.

Signed-off-by: Helge Deller <del...@gmx.de>

diff --git a/hw/hppa/machine.c b/hw/hppa/machine.c
index 9d0192c4fa..aea365bf46 100644
--- a/hw/hppa/machine.c
+++ b/hw/hppa/machine.c
@@ -127,7 +127,7 @@ static void machine_hppa_init(MachineState *machine)
     dev = DEVICE(pci_create_simple(pci_bus, -1, "lsi53c895a"));
     lsi53c8xx_handle_legacy_cmdline(dev);

-    if (vga_interface_type != VGA_NONE) {
+    if (machine->enable_graphics && vga_interface_type != VGA_NONE) {
         dev = qdev_create(NULL, "artist");
         qdev_init_nofail(dev);
         s = SYS_BUS_DEVICE(dev);

Reply via email to