aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2011-09-21 20:49:32 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2011-09-23 10:55:33 -0500
commit4c08fd1e42a886bccc02e5fe18e98b948c252986 (patch)
treef6029b71d620442ceeba9ea83fac0a1c376c2451 /hw
parent53d6e682552c981207a38f6c794c47320e95e0d0 (diff)
cirrus: Unbreak ISA support
Do not try to map against the PCI bar in the ISA version of the device. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/cirrus_vga.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/cirrus_vga.c b/hw/cirrus_vga.c
index ec7ea8207b..c7e365b2a6 100644
--- a/hw/cirrus_vga.c
+++ b/hw/cirrus_vga.c
@@ -2401,7 +2401,7 @@ static void map_linear_vram_bank(CirrusVGAState *s, unsigned bank)
static void map_linear_vram(CirrusVGAState *s)
{
- if (!s->linear_vram) {
+ if (s->bustype == CIRRUS_BUSTYPE_PCI && !s->linear_vram) {
s->linear_vram = true;
memory_region_add_subregion_overlap(&s->pci_bar, 0, &s->vga.vram, 1);
}
@@ -2411,7 +2411,7 @@ static void map_linear_vram(CirrusVGAState *s)
static void unmap_linear_vram(CirrusVGAState *s)
{
- if (s->linear_vram) {
+ if (s->bustype == CIRRUS_BUSTYPE_PCI && s->linear_vram) {
s->linear_vram = false;
memory_region_del_subregion(&s->pci_bar, &s->vga.vram);
}