mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
Fix usermode virtual address type
Usermode virtual addresses are abi_ulong, not target_ulong. Signed-off-by: Paul Brook <paul@codesourcery.com>
This commit is contained in:
parent
4836a2b09a
commit
b480d9b74d
5 changed files with 20 additions and 16 deletions
|
@ -88,7 +88,7 @@ void *qemu_vmalloc(size_t size)
|
|||
|
||||
if (h2g_valid(p)) {
|
||||
/* Allocated region overlaps guest address space. This may recurse. */
|
||||
unsigned long addr = h2g(p);
|
||||
abi_ulong addr = h2g(p);
|
||||
page_set_flags(addr & TARGET_PAGE_MASK, TARGET_PAGE_ALIGN(addr + size),
|
||||
PAGE_RESERVED);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue