aboutsummaryrefslogtreecommitdiff
path: root/hw/mips_malta.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/mips_malta.c')
-rw-r--r--hw/mips_malta.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/hw/mips_malta.c b/hw/mips_malta.c
index 54623ba1f7..9b7cd94bd7 100644
--- a/hw/mips_malta.c
+++ b/hw/mips_malta.c
@@ -769,7 +769,6 @@ void mips_malta_init (ram_addr_t ram_size, int vga_ram_size,
{
char buf[1024];
ram_addr_t ram_offset;
- ram_addr_t vga_ram_offset;
ram_addr_t bios_offset;
target_long bios_size;
int64_t kernel_entry;
@@ -812,7 +811,6 @@ void mips_malta_init (ram_addr_t ram_size, int vga_ram_size,
exit(1);
}
ram_offset = qemu_ram_alloc(ram_size);
- vga_ram_offset = qemu_ram_alloc(vga_ram_size);
bios_offset = qemu_ram_alloc(BIOS_SIZE);
@@ -949,14 +947,11 @@ void mips_malta_init (ram_addr_t ram_size, int vga_ram_size,
/* Optional PCI video card */
if (cirrus_vga_enabled) {
- pci_cirrus_vga_init(pci_bus, phys_ram_base + vga_ram_offset,
- ram_size, vga_ram_size);
+ pci_cirrus_vga_init(pci_bus, vga_ram_size);
} else if (vmsvga_enabled) {
- pci_vmsvga_init(pci_bus, phys_ram_base + vga_ram_offset,
- ram_size, vga_ram_size);
+ pci_vmsvga_init(pci_bus, vga_ram_size);
} else if (std_vga_enabled) {
- pci_vga_init(pci_bus, phys_ram_base + vga_ram_offset,
- ram_size, vga_ram_size, 0, 0);
+ pci_vga_init(pci_bus, vga_ram_size, 0, 0);
}
}