aboutsummaryrefslogtreecommitdiff
path: root/hw/tc6393xb.c
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-10 00:26:15 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-10 00:26:15 +0000
commit446544909738bbaf7af927ecd5dcef45debc7167 (patch)
tree88c1b2935a3f0bb1015edb4628d72d43284b73e1 /hw/tc6393xb.c
parentdc828ca1b59b0c390a6994c78e9658174f821f74 (diff)
More phys_ram_base removal.
Signed-off-by: Paul Brook <paul@codesourcery.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7060 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/tc6393xb.c')
-rw-r--r--hw/tc6393xb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/tc6393xb.c b/hw/tc6393xb.c
index 7d2f1b2503..56fd1eec92 100644
--- a/hw/tc6393xb.c
+++ b/hw/tc6393xb.c
@@ -123,6 +123,7 @@ struct tc6393xb_s {
DisplayState *ds;
ram_addr_t vram_addr;
+ uint16_t *vram_ptr;
uint32_t scr_width, scr_height; /* in pixels */
qemu_irq l3v;
unsigned blank : 1,
@@ -593,6 +594,7 @@ struct tc6393xb_s *tc6393xb_init(uint32_t base, qemu_irq irq)
cpu_register_physical_memory(base, 0x10000, iomemtype);
s->vram_addr = qemu_ram_alloc(0x100000);
+ s->vram_ptr = qemu_get_ram_ptr(s->vram_addr);
cpu_register_physical_memory(base + 0x100000, 0x100000, s->vram_addr);
s->scr_width = 480;
s->scr_height = 640;