diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-04-10 02:24:36 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-04-10 02:24:36 +0000 |
commit | b584726df971c1238a5249cc21121cf2ebbcaf55 (patch) | |
tree | 32b73d21de064d8b3c28750d35608cac701d1863 /hw/g364fb.c | |
parent | a8b01dd87f3f1cb93d51ce87b13f57fe5415e33e (diff) | |
download | qemu-b584726df971c1238a5249cc21121cf2ebbcaf55.zip qemu-b584726df971c1238a5249cc21121cf2ebbcaf55.tar.gz qemu-b584726df971c1238a5249cc21121cf2ebbcaf55.tar.bz2 |
Clean up VGA ram allocation.
Signed-off-by: Paul Brook <paul@codesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7063 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/g364fb.c')
-rw-r--r-- | hw/g364fb.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/hw/g364fb.c b/hw/g364fb.c index 8bfd134..44c0685 100644 --- a/hw/g364fb.c +++ b/hw/g364fb.c @@ -584,8 +584,7 @@ static void g364fb_save(QEMUFile *f, void *opaque) qemu_put_be32(f, s->height); } -int g364fb_mm_init(uint8_t *vram, ram_addr_t vram_offset, - int vram_size, target_phys_addr_t vram_base, +int g364fb_mm_init(int vram_size, target_phys_addr_t vram_base, target_phys_addr_t ctrl_base, int it_shift, qemu_irq irq) { @@ -594,8 +593,8 @@ int g364fb_mm_init(uint8_t *vram, ram_addr_t vram_offset, s = qemu_mallocz(sizeof(G364State)); - s->vram = vram; - s->vram_offset = vram_offset; + s->vram_offset = qemu_ram_alloc(vram_size); + s->vram = qemu_get_ram_ptr(s->vram_offset); s->vram_size = vram_size; s->irq = irq; |