summaryrefslogtreecommitdiff
path: root/target-i386/helper.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2008-07-03 04:13:24 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2008-07-03 04:13:24 +0000
commit2c90d79488a255f27d43f7ac3edffc8f01aaae51 (patch)
tree48d7455c5c977e06fea9428b34520cd1e42a1ae0 /target-i386/helper.c
parent8114e9e8fd2610b96a808cdf703127eb26eb5278 (diff)
downloadqemu-2c90d79488a255f27d43f7ac3edffc8f01aaae51.tar.gz
Fix constant truncation, spotted by Jindrich Makovicka.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4832 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386/helper.c')
-rw-r--r--target-i386/helper.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/target-i386/helper.c b/target-i386/helper.c
index 1625007e74..852f093e9f 100644
--- a/target-i386/helper.c
+++ b/target-i386/helper.c
@@ -827,12 +827,12 @@ target_phys_addr_t cpu_get_phys_page_debug(CPUState *env, target_ulong addr)
/* XXX: This value should match the one returned by CPUID
* and in exec.c */
#if defined(USE_KQEMU)
-#define PHYS_ADDR_MASK 0xfffff000L
+#define PHYS_ADDR_MASK 0xfffff000LL
#else
# if defined(TARGET_X86_64)
-# define PHYS_ADDR_MASK 0xfffffff000L
+# define PHYS_ADDR_MASK 0xfffffff000LL
# else
-# define PHYS_ADDR_MASK 0xffffff000L
+# define PHYS_ADDR_MASK 0xffffff000LL
# endif
#endif