[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 2/6] vga: increase priority of 0xa0000 memory region
From: |
Hervé Poussineau |
Subject: |
[Qemu-ppc] [PATCH 2/6] vga: increase priority of 0xa0000 memory region |
Date: |
Thu, 29 Dec 2016 23:12:12 +0100 |
VGA device registers vram as BAR 0. If this BAR is activated as a very low
address which
crosses 0xa0000-0xbffff, low memory region is not accessible anymore.
This fixes display on PReP machine if we enable PCI mapping at address 0.
Signed-off-by: Hervé Poussineau <address@hidden>
---
hw/display/vga.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/display/vga.c b/hw/display/vga.c
index 2a88b3c..c573f35 100644
--- a/hw/display/vga.c
+++ b/hw/display/vga.c
@@ -2265,7 +2265,7 @@ void vga_init(VGACommonState *s, Object *obj,
MemoryRegion *address_space,
memory_region_add_subregion_overlap(address_space,
0x000a0000,
vga_io_memory,
- 1);
+ 2);
memory_region_set_coalescing(vga_io_memory);
if (init_vga_ports) {
portio_list_init(&s->vga_port_list, obj, vga_ports, s, "vga");
--
2.1.4
- [Qemu-ppc] [PATCH 0/6] ppc: add a IBM 40p machine (RS/6000, PReP), Hervé Poussineau, 2016/12/29
- [Qemu-ppc] [PATCH 4/6] prep: QOM'ify System I/O, Hervé Poussineau, 2016/12/29
- [Qemu-ppc] [PATCH 3/6] prep: do not use global variable to access nvram, Hervé Poussineau, 2016/12/29
- [Qemu-ppc] [PATCH 1/6] pci: add pci_vga_type(), giving the device name of the chosen VGA device, Hervé Poussineau, 2016/12/29
- [Qemu-ppc] [PATCH 5/6] prep: add IBM RS/6000 7020 (40p) memory controller, Hervé Poussineau, 2016/12/29
- [Qemu-ppc] [PATCH 2/6] vga: increase priority of 0xa0000 memory region,
Hervé Poussineau <=
- [Qemu-ppc] [PATCH 6/6] prep: add IBM RS/6000 7020 (40p) machine emulation, Hervé Poussineau, 2016/12/29