diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-07-03 04:13:24 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-07-03 04:13:24 +0000 |
commit | 2c90d79488a255f27d43f7ac3edffc8f01aaae51 (patch) | |
tree | 48d7455c5c977e06fea9428b34520cd1e42a1ae0 /target-i386/helper.c | |
parent | 8114e9e8fd2610b96a808cdf703127eb26eb5278 (diff) | |
download | qemu-2c90d79488a255f27d43f7ac3edffc8f01aaae51.zip qemu-2c90d79488a255f27d43f7ac3edffc8f01aaae51.tar.gz qemu-2c90d79488a255f27d43f7ac3edffc8f01aaae51.tar.bz2 |
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.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target-i386/helper.c b/target-i386/helper.c index 1625007..852f093 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 |