[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 2/5] mips_fulong2e: Add on-board graphics chip
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PULL 2/5] mips_fulong2e: Add on-board graphics chip |
Date: |
Fri, 8 Mar 2019 13:39:34 +0100 |
From: BALATON Zoltan <address@hidden>
Add (partial) emulation of the on-board GPU of the machine. This
allows the PMON2000 firmware to run and should also work with Linux
console but probably not with X yet.
Signed-off-by: BALATON Zoltan <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Tested-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Aleksandar Markovic <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Gerd Hoffmann <address@hidden>
---
hw/mips/mips_fulong2e.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/hw/mips/mips_fulong2e.c b/hw/mips/mips_fulong2e.c
index fbbc543eede5..f87769376608 100644
--- a/hw/mips/mips_fulong2e.c
+++ b/hw/mips/mips_fulong2e.c
@@ -287,6 +287,7 @@ static void mips_fulong2e_init(MachineState *machine)
I2CBus *smbus;
MIPSCPU *cpu;
CPUMIPSState *env;
+ DeviceState *dev;
/* init CPUs */
cpu = MIPS_CPU(cpu_create(machine->cpu_type));
@@ -347,6 +348,11 @@ static void mips_fulong2e_init(MachineState *machine)
vt82c686b_southbridge_init(pci_bus, FULONG2E_VIA_SLOT, env->irq[5],
&smbus, &isa_bus);
+ /* GPU */
+ dev = DEVICE(pci_create(pci_bus, -1, "ati-vga"));
+ qdev_prop_set_uint16(dev, "x-device-id", 0x5159);
+ qdev_init_nofail(dev);
+
/* Populate SPD eeprom data */
spd_data = spd_data_generate(DDR, ram_size, &err);
if (err) {
--
2.18.1
- [Qemu-devel] [PULL 0/5] Vga 20190308 patches, Gerd Hoffmann, 2019/03/08
- [Qemu-devel] [PULL 3/5] virtio: add class_size to VirtioPCIDeviceTypeInfo, Gerd Hoffmann, 2019/03/08
- [Qemu-devel] [PULL 5/5] virtio-gpu: make virtio_gpu_reset static, Gerd Hoffmann, 2019/03/08
- [Qemu-devel] [PULL 4/5] virtio-vga: fix reset., Gerd Hoffmann, 2019/03/08
- [Qemu-devel] [PULL 2/5] mips_fulong2e: Add on-board graphics chip,
Gerd Hoffmann <=
- [Qemu-devel] [PULL 1/5] hw/display: Add basic ATI VGA emulation, Gerd Hoffmann, 2019/03/08
- Re: [Qemu-devel] [PULL 0/5] Vga 20190308 patches, Peter Maydell, 2019/03/09