]> Git Repo - qemu.git/blobdiff - hw/tcx.c
Make ARP replies at least 64 bytes long
[qemu.git] / hw / tcx.c
index 7598e8c2f1f7c7e62311ccb323b3ddcbd515c508..6ee65bb22479654598dd21584798abefafeb76a4 100644 (file)
--- a/hw/tcx.c
+++ b/hw/tcx.c
@@ -161,7 +161,7 @@ static inline void tcx24_draw_line32(TCXState *s1, uint8_t *d,
             p8++;
             b = *p8++;
             g = *p8++;
-            r = *p8++;
+            r = *p8;
             if (bgr)
                 dval = rgb_to_pixel32bgr(r, g, b);
             else
@@ -510,7 +510,7 @@ static int tcx_init1(SysBusDevice *dev)
     int size;
     uint8_t *vram_base;
 
-    vram_offset = qemu_ram_alloc(s->vram_size * (1 + 4 + 4));
+    vram_offset = qemu_ram_alloc(NULL, "tcx.vram", s->vram_size * (1 + 4 + 4));
     vram_base = qemu_get_ram_ptr(vram_offset);
     s->vram_offset = vram_offset;
 
This page took 0.024943 seconds and 4 git commands to generate.