Commit 2c90d79488a255f27d43f7ac3edffc8f01aaae51
1 parent
8114e9e8
Fix constant truncation, spotted by Jindrich Makovicka.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4832 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
3 additions
and
3 deletions
target-i386/helper.c
@@ -827,12 +827,12 @@ target_phys_addr_t cpu_get_phys_page_debug(CPUState *env, target_ulong addr) | @@ -827,12 +827,12 @@ target_phys_addr_t cpu_get_phys_page_debug(CPUState *env, target_ulong addr) | ||
827 | /* XXX: This value should match the one returned by CPUID | 827 | /* XXX: This value should match the one returned by CPUID |
828 | * and in exec.c */ | 828 | * and in exec.c */ |
829 | #if defined(USE_KQEMU) | 829 | #if defined(USE_KQEMU) |
830 | -#define PHYS_ADDR_MASK 0xfffff000L | 830 | +#define PHYS_ADDR_MASK 0xfffff000LL |
831 | #else | 831 | #else |
832 | # if defined(TARGET_X86_64) | 832 | # if defined(TARGET_X86_64) |
833 | -# define PHYS_ADDR_MASK 0xfffffff000L | 833 | +# define PHYS_ADDR_MASK 0xfffffff000LL |
834 | # else | 834 | # else |
835 | -# define PHYS_ADDR_MASK 0xffffff000L | 835 | +# define PHYS_ADDR_MASK 0xffffff000LL |
836 | # endif | 836 | # endif |
837 | #endif | 837 | #endif |
838 | 838 |