[Spice-commits] Branch 'spice.v11' - hw/qxl.c

Gerd Hoffmann kraxel at kemper.freedesktop.org
Mon Jul 5 08:31:27 PDT 2010


 hw/qxl.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 6bf95835a454823117e07a159b3ba894d7995eed
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Mon Jul 5 17:30:15 2010 +0200

    qxl: fix cut+paste bug.

diff --git a/hw/qxl.c b/hw/qxl.c
index fee470c..e3601a7 100644
--- a/hw/qxl.c
+++ b/hw/qxl.c
@@ -184,7 +184,7 @@ static void init_qxl_ram(PCIQXLDevice *d)
     uint8_t *buf;
     uint64_t *item;
 
-    buf = qxl->vga.vram_ptr;
+    buf = d->vga.vram_ptr;
     d->ram = (QXLRam *)(buf + le32_to_cpu(d->shadow_rom.ram_header_offset));
     d->ram->magic       = cpu_to_le32(QXL_RAM_MAGIC);
     d->ram->int_pending = cpu_to_le32(0);
@@ -1251,7 +1251,7 @@ static int qxl_init(PCIDevice *dev)
 static void qxl_pre_save(void *opaque)
 {
     PCIQXLDevice* d = opaque;
-    uint8_t *ram_start = qxl->vga.vram_ptr;
+    uint8_t *ram_start = d->vga.vram_ptr;
 
     dprintf(d, 1, "%s:\n", __FUNCTION__);
 #if 1 /* wanna zap this */
@@ -1278,7 +1278,7 @@ static int qxl_pre_load(void *opaque)
 static int qxl_post_load(void *opaque, int version)
 {
     PCIQXLDevice* d = opaque;
-    uint8_t *ram_start = qxl->vga.vram_ptr;
+    uint8_t *ram_start = d->vga.vram_ptr;
     QXLCommandExt *cmds;
     int in, out, i, newmode;
 


More information about the Spice-commits mailing list