]> git.proxmox.com Git - qemu.git/blobdiff - exec.c
Fix more wrong usermode virtual address types
[qemu.git] / exec.c
diff --git a/exec.c b/exec.c
index 1e405b67e284e5f5299b25aa3e7b44709fe2edfd..20e61a0c5b6302be88beebc27bc09cfc928c72d9 100644 (file)
--- 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) {