From: Andrzej Zaborowski <balrogg@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [4200] Allocate the -vmwarevga framebuffer in the right place in RAM.
Date: Sat, 12 Apr 2008 23:49:38 +0000 [thread overview]
Message-ID: <E1JkpTW-0001Sc-Mr@cvs.savannah.gnu.org> (raw)
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);
reply other threads:[~2008-04-12 23:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1JkpTW-0001Sc-Mr@cvs.savannah.gnu.org \
--to=balrogg@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).