From b480d9b74dfd1efd29026b7dc6438364a633ee99 Mon Sep 17 00:00:00 2001 From: Paul Brook Date: Fri, 12 Mar 2010 23:23:29 +0000 Subject: Fix usermode virtual address type Usermode virtual addresses are abi_ulong, not target_ulong. Signed-off-by: Paul Brook --- linux-user/mmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux-user/mmap.c') diff --git a/linux-user/mmap.c b/linux-user/mmap.c index ad00b6f..46923c7 100644 --- a/linux-user/mmap.c +++ b/linux-user/mmap.c @@ -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); } -- cgit v1.1