From: Don Slutz Date: Sat, 22 Sep 2012 00:13:13 +0000 (-0400) Subject: target-i386: Allow tsc-frequency to be larger then 2.147G X-Git-Tag: v1.2.2~34 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3dfbc51e787bbe150273595ef526167842fd94ec;p=thirdparty%2Fqemu.git target-i386: Allow tsc-frequency to be larger then 2.147G The check using INT_MAX (2147483647) is wrong in this case. Signed-off-by: Fred Oliveira Signed-off-by: Don Slutz Signed-off-by: Stefan Hajnoczi (cherry picked from commit 2e84849aa2cc7f220d3b3668f5f7e3c57bb1b590) Signed-off-by: Michael Roth --- diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 423e00905d0..cbc172e9fc7 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -846,7 +846,7 @@ static void x86_cpuid_set_tsc_freq(Object *obj, Visitor *v, void *opaque, { X86CPU *cpu = X86_CPU(obj); const int64_t min = 0; - const int64_t max = INT_MAX; + const int64_t max = INT64_MAX; int64_t value; visit_type_int(v, &value, name, errp);