etrax: Don't keep the passed irq pointer.
[qemu] / hw / tc6393xb_template.h
index 1247ff6..2c5fb67 100644 (file)
 #endif
 
 
-static void glue(tc6393xb_draw_graphic, BITS)(struct tc6393xb_s *s)
+static void glue(tc6393xb_draw_graphic, BITS)(TC6393xbState *s)
 {
     int i;
     int w_display;
     uint16_t *data_buffer;
     uint8_t *data_display;
 
-    data_buffer = (uint16_t*)(phys_ram_base + s->vram_addr);
+    data_buffer = s->vram_ptr;
     w_display = s->scr_width * BITS / 8;
     data_display = ds_get_data(s->ds);
     for(i = 0; i < s->scr_height; i++) {