aboutsummaryrefslogtreecommitdiff
path: root/exec.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-03-13 09:48:08 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-03-13 09:48:08 +0000
commit338e9e6ce5a1e04f52b3c82d34bea4e836c01003 (patch)
treed3d9ed7e888cea071640953d31d027f2daec4d2f /exec.c
parentb480d9b74dfd1efd29026b7dc6438364a633ee99 (diff)
Fix more wrong usermode virtual address types
Fixes warning: CC sparc-bsd-user/exec.o /src/qemu/exec.c: In function `page_check_range': /src/qemu/exec.c:2375: warning: comparison is always true due to limited range of data type Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'exec.c')
-rw-r--r--exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/exec.c b/exec.c
index 1e405b67e2..20e61a0c5b 100644
--- a/exec.c
+++ b/exec.c
@@ -2371,8 +2371,8 @@ int page_check_range(target_ulong start, target_ulong len, int flags)
/* This function should never be called with addresses outside the
guest address space. If this assert fires, it probably indicates
a missing call to h2g_valid. */
-#if HOST_LONG_BITS > L1_MAP_ADDR_SPACE_BITS
- assert(start < (1ul << L1_MAP_ADDR_SPACE_BITS));
+#if TARGET_ABI_BITS > L1_MAP_ADDR_SPACE_BITS
+ assert(start < ((abi_ulong)1 << L1_MAP_ADDR_SPACE_BITS));
#endif
if (start + len - 1 < start) {