From: Blue Swirl Date: Sat, 13 Mar 2010 09:48:08 +0000 (+0000) Subject: Fix more wrong usermode virtual address types X-Git-Tag: TizenStudio_2.0_p2.3~5412 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4ee1e82065b679d2fefe6fb4aa6e8b1d71e44584;p=sdk%2Femulator%2Fqemu.git 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 --- diff --git a/exec.c b/exec.c index 1e405b6..20e61a0 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) {