aboutsummaryrefslogtreecommitdiff
path: root/hw/g364fb.c
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2009-05-13 17:56:25 +0100
committerPaul Brook <paul@codesourcery.com>2009-05-13 17:56:25 +0100
commitfbe1b5953d061c77c07b91e4eb555c92195308d0 (patch)
tree1475976bd828788075a1e32017b6f75a93344965 /hw/g364fb.c
parent1481e16abbab14a2e19410770f97cb764bb9be16 (diff)
Remove vga_ram_size
The vga_ram_size argument to machine init functions always has the same value, and is ignored by many machines (including SPARC32 which has an obsolete ifdef for VGA_RAM_SIZE). Remove it and push VGA_RAM_SIZE into vga_int.h. Signed-off-by: Paul Brook <paul@codesourcery.com>
Diffstat (limited to 'hw/g364fb.c')
-rw-r--r--hw/g364fb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/g364fb.c b/hw/g364fb.c
index 44c0685cfb..6d37ca128e 100644
--- a/hw/g364fb.c
+++ b/hw/g364fb.c
@@ -584,7 +584,7 @@ static void g364fb_save(QEMUFile *f, void *opaque)
qemu_put_be32(f, s->height);
}
-int g364fb_mm_init(int vram_size, target_phys_addr_t vram_base,
+int g364fb_mm_init(target_phys_addr_t vram_base,
target_phys_addr_t ctrl_base, int it_shift,
qemu_irq irq)
{
@@ -593,9 +593,9 @@ int g364fb_mm_init(int vram_size, target_phys_addr_t vram_base,
s = qemu_mallocz(sizeof(G364State));
- s->vram_offset = qemu_ram_alloc(vram_size);
+ s->vram_size = 8 * 1024 * 1024;
+ s->vram_offset = qemu_ram_alloc(s->vram_size);
s->vram = qemu_get_ram_ptr(s->vram_offset);
- s->vram_size = vram_size;
s->irq = irq;
qemu_register_reset(g364fb_reset, s);