diff options
| author | Paul Brook | 2010-03-13 00:23:29 +0100 |
|---|---|---|
| committer | Paul Brook | 2010-03-13 00:25:52 +0100 |
| commit | b480d9b74dfd1efd29026b7dc6438364a633ee99 (patch) | |
| tree | ba5e9af2816fb452437070da74e87d15f55d7255 /linux-user/mmap.c | |
| parent | FreeBSD ppc_init_cacheline_sizes(): add missing #includes (diff) | |
| download | qemu-b480d9b74dfd1efd29026b7dc6438364a633ee99.tar.gz qemu-b480d9b74dfd1efd29026b7dc6438364a633ee99.tar.xz qemu-b480d9b74dfd1efd29026b7dc6438364a633ee99.zip | |
Fix usermode virtual address type
Usermode virtual addresses are abi_ulong, not target_ulong.
Signed-off-by: Paul Brook <paul@codesourcery.com>
Diffstat (limited to 'linux-user/mmap.c')
| -rw-r--r-- | linux-user/mmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/mmap.c b/linux-user/mmap.c index ad00b6f555..46923c707c 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); } |
