diff options
author | Paul Brook <paul@codesourcery.com> | 2010-03-12 23:23:29 +0000 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2010-03-12 23:25:52 +0000 |
commit | b480d9b74dfd1efd29026b7dc6438364a633ee99 (patch) | |
tree | ba5e9af2816fb452437070da74e87d15f55d7255 /cpu-all.h | |
parent | 4836a2b09a94969d3d69c5c9f9ba8f58767575ca (diff) | |
download | qemu-b480d9b74dfd1efd29026b7dc6438364a633ee99.zip qemu-b480d9b74dfd1efd29026b7dc6438364a633ee99.tar.gz qemu-b480d9b74dfd1efd29026b7dc6438364a633ee99.tar.bz2 |
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 'cpu-all.h')
-rw-r--r-- | cpu-all.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -744,15 +744,17 @@ extern unsigned long qemu_host_page_mask; #define PAGE_WRITE_ORG 0x0010 #define PAGE_RESERVED 0x0020 +#if defined(CONFIG_USER_ONLY) void page_dump(FILE *f); -typedef int (*walk_memory_regions_fn)(void *, unsigned long, - unsigned long, unsigned long); +typedef int (*walk_memory_regions_fn)(void *, abi_ulong, + abi_ulong, unsigned long); int walk_memory_regions(void *, walk_memory_regions_fn); int page_get_flags(target_ulong address); void page_set_flags(target_ulong start, target_ulong end, int flags); int page_check_range(target_ulong start, target_ulong len, int flags); +#endif void cpu_exec_init_all(unsigned long tb_size); CPUState *cpu_copy(CPUState *env); |