qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [4200] Allocate the -vmwarevga framebuffer in the right place in RAM.
@ 2008-04-12 23:49 Andrzej Zaborowski
  0 siblings, 0 replies; only message in thread
From: Andrzej Zaborowski @ 2008-04-12 23:49 UTC (permalink / raw)
  To: qemu-devel

Revision: 4200
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4200
Author:   balrog
Date:     2008-04-12 23:49:37 +0000 (Sat, 12 Apr 2008)

Log Message:
-----------
Allocate the -vmwarevga framebuffer in the right place in RAM.

Modified Paths:
--------------
    trunk/hw/vmware_vga.c

Modified: trunk/hw/vmware_vga.c
===================================================================
--- trunk/hw/vmware_vga.c	2008-04-12 20:14:54 UTC (rev 4199)
+++ trunk/hw/vmware_vga.c	2008-04-12 23:49:37 UTC (rev 4200)
@@ -58,6 +58,7 @@
 #ifndef EMBED_STDVGA
     DisplayState *ds;
     int vram_size;
+    ram_addr_t vram_offset;
 #endif
     uint8_t *vram;
     target_phys_addr_t vram_base;
@@ -1114,6 +1115,7 @@
     s->ds = ds;
     s->vram = vga_ram_base;
     s->vram_size = vga_ram_size;
+    s->vram_offset = vga_ram_offset;
 
     s->scratch_size = SVGA_SCRATCH_SIZE;
     s->scratch = (uint32_t *) qemu_malloc(s->scratch_size * 4);
@@ -1186,7 +1188,7 @@
     iomemtype = cpu_register_io_memory(0, vmsvga_vram_read,
                     vmsvga_vram_write, s);
 #else
-    iomemtype = 0 | IO_MEM_RAM;
+    iomemtype = s->vram_offset | IO_MEM_RAM;
 #endif
     cpu_register_physical_memory(s->vram_base, s->vram_size,
                     iomemtype);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-04-12 23:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-12 23:49 [Qemu-devel] [4200] Allocate the -vmwarevga framebuffer in the right place in RAM Andrzej Zaborowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).