Fix constant truncation, spotted by Jindrich Makovicka.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4832 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
8114e9e8fd
commit
2c90d79488
@ -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
|
/* XXX: This value should match the one returned by CPUID
|
||||||
* and in exec.c */
|
* and in exec.c */
|
||||||
#if defined(USE_KQEMU)
|
#if defined(USE_KQEMU)
|
||||||
#define PHYS_ADDR_MASK 0xfffff000L
|
#define PHYS_ADDR_MASK 0xfffff000LL
|
||||||
#else
|
#else
|
||||||
# if defined(TARGET_X86_64)
|
# if defined(TARGET_X86_64)
|
||||||
# define PHYS_ADDR_MASK 0xfffffff000L
|
# define PHYS_ADDR_MASK 0xfffffff000LL
|
||||||
# else
|
# else
|
||||||
# define PHYS_ADDR_MASK 0xffffff000L
|
# define PHYS_ADDR_MASK 0xffffff000LL
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user