Message ID | 1467104499-27517-11-git-send-email-pl@kamp.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/hw/display/vmware_vga.c b/hw/display/vmware_vga.c index e51a05e..9942b2d 100644 --- a/hw/display/vmware_vga.c +++ b/hw/display/vmware_vga.c @@ -22,6 +22,7 @@ * THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qemu/mmap-alloc.h" #include "qapi/error.h" #include "hw/hw.h" #include "hw/loader.h" @@ -1247,7 +1248,7 @@ static void vmsvga_init(DeviceState *dev, struct vmsvga_state_s *s, MemoryRegion *address_space, MemoryRegion *io) { s->scratch_size = SVGA_SCRATCH_SIZE; - s->scratch = g_malloc(s->scratch_size * 4); + s->scratch = qemu_anon_ram_mmap(s->scratch_size * 4); s->vga.con = graphic_console_init(dev, 0, &vmsvga_ops, s);
the scratch pad is 256kB Signed-off-by: Peter Lieven <pl@kamp.de> --- hw/display/vmware_vga.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)