qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT e6a0575] Make sure to mark MCE defines as ULL


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT e6a0575] Make sure to mark MCE defines as ULL
Date: Fri, 10 Jul 2009 19:16:45 -0000

From: Anthony Liguori <address@hidden>

Fixes build on 32-bit

Signed-off-by: Anthony Liguori <address@hidden>

diff --git a/target-i386/cpu.h b/target-i386/cpu.h
index 6f7478a..372fe31 100644
--- a/target-i386/cpu.h
+++ b/target-i386/cpu.h
@@ -256,11 +256,11 @@
 #define MCE_CAP_DEF    MCG_CTL_P
 #define MCE_BANKS_DEF  10
 
-#define MCG_STATUS_MCIP        (1UL<<2)   /* machine check in progress */
+#define MCG_STATUS_MCIP        (1ULL<<2)   /* machine check in progress */
 
-#define MCI_STATUS_VAL (1UL<<63)  /* valid error */
-#define MCI_STATUS_OVER        (1UL<<62)  /* previous errors lost */
-#define MCI_STATUS_UC  (1UL<<61)  /* uncorrected error */
+#define MCI_STATUS_VAL (1ULL<<63)  /* valid error */
+#define MCI_STATUS_OVER        (1ULL<<62)  /* previous errors lost */
+#define MCI_STATUS_UC  (1ULL<<61)  /* uncorrected error */
 
 #define MSR_IA32_TSC                    0x10
 #define MSR_IA32_APICBASE               0x1b




reply via email to

[Prev in Thread] Current Thread [Next in Thread]