Skip to contentSkip to conversation

i386: fix MCE compilation

PATCH New Dmitry Eremin-Solenikov 1 participant 1 message Feb 5, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i386: fix MCE compilation

This fixes the following error/warning in the target-i386/helper.c compilation:

target-i386/helper.c: In function ‘cpu_inject_x86_mce’:
target-i386/helper.c:1151: error: integer constant is too large for ‘long’ type

---
 target-i386/helper.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
target-i386/helper.c +1 -1
index 1217452..39456bc 100644
@@ -1148,7 +1148,7 @@ void cpu_inject_x86_mce(CPUState *cenv, int bank, uint64_t status,
                     continue;
                 }
 
-                qemu_inject_x86_mce(env, 1, 0xa000000000000000, 0, 0, 0);
+                qemu_inject_x86_mce(env, 1, 0xa000000000000000LL, 0, 0, 0);
             }
         }
     }
Signature · 1 line
1.7.2.3