Skip to contentSkip to conversation

[4832] Fix constant truncation, spotted by Jindrich Makovicka.

Qemu-devel Thiemo Seufer 1 participant 1 message Jul 3, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 4832

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4832
Author:   ths
Date:     2008-07-03 04:13:24 +0000 (Thu, 03 Jul 2008)

Log Message:
-----------
Fix constant truncation, spotted by Jindrich Makovicka.

Modified Paths:
--------------

    trunk/target-i386/helper.c

Modified: trunk/target-i386/helper.c
===================================================================

target-i386/helper.c +3 -3
@@ -827,12 +827,12 @@
 /* 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