Commit e6a0575e98179167bc5f7ab792c3d19f9852ee5f
1 parent
7d8abfcb
Make sure to mark MCE defines as ULL
Fixes build on 32-bit Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Showing
1 changed file
with
4 additions
and
4 deletions
target-i386/cpu.h
... | ... | @@ -256,11 +256,11 @@ |
256 | 256 | #define MCE_CAP_DEF MCG_CTL_P |
257 | 257 | #define MCE_BANKS_DEF 10 |
258 | 258 | |
259 | -#define MCG_STATUS_MCIP (1UL<<2) /* machine check in progress */ | |
259 | +#define MCG_STATUS_MCIP (1ULL<<2) /* machine check in progress */ | |
260 | 260 | |
261 | -#define MCI_STATUS_VAL (1UL<<63) /* valid error */ | |
262 | -#define MCI_STATUS_OVER (1UL<<62) /* previous errors lost */ | |
263 | -#define MCI_STATUS_UC (1UL<<61) /* uncorrected error */ | |
261 | +#define MCI_STATUS_VAL (1ULL<<63) /* valid error */ | |
262 | +#define MCI_STATUS_OVER (1ULL<<62) /* previous errors lost */ | |
263 | +#define MCI_STATUS_UC (1ULL<<61) /* uncorrected error */ | |
264 | 264 | |
265 | 265 | #define MSR_IA32_TSC 0x10 |
266 | 266 | #define MSR_IA32_APICBASE 0x1b | ... | ... |