From: ths Date: Thu, 3 Jul 2008 04:13:24 +0000 (+0000) Subject: Fix constant truncation, spotted by Jindrich Makovicka. X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=2c90d79488a255f27d43f7ac3edffc8f01aaae51;p=qemu-xen-3.3-testing.git Fix constant truncation, spotted by Jindrich Makovicka. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4832 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/target-i386/helper.c b/target-i386/helper.c index 1625007e..852f093e 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