repository: /home/avi/kvm branch: master commit 39a7aab506b34dbb54abe707a0424e238bc7e350 Author: Avi Kivity <[EMAIL PROTECTED]> Date: Mon Sep 24 14:21:01 2007 +0200
kvm: qemu: change the type of the various page masks to unsigned long prevents truncation with >=4GB of guest physical memory Signed-off-by: Avi Kivity <[EMAIL PROTECTED]> diff --git a/qemu/cpu-all.h b/qemu/cpu-all.h index b41fb77..1989094 100644 --- a/qemu/cpu-all.h +++ b/qemu/cpu-all.h @@ -663,7 +663,7 @@ static inline void stfq_be_p(void *ptr, float64 v) /* page related stuff */ -#define TARGET_PAGE_SIZE (1 << TARGET_PAGE_BITS) +#define TARGET_PAGE_SIZE (1ul << TARGET_PAGE_BITS) #define TARGET_PAGE_MASK ~(TARGET_PAGE_SIZE - 1) #define TARGET_PAGE_ALIGN(addr) (((addr) + TARGET_PAGE_SIZE - 1) & TARGET_PAGE_MASK) ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ kvm-commits mailing list kvm-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-commits