From patchwork Sun Sep 23 10:00:07 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [01/14] target-i386: Allow tsc-frequency to be larger then 2.147G Date: Sun, 23 Sep 2012 00:00:07 -0000 From: Stefan Hajnoczi X-Patchwork-Id: 186189 Message-Id: <1348394420-28298-2-git-send-email-stefanha@gmail.com> To: Anthony Liguori Cc: Stefan Hajnoczi , Don Slutz , Fred Oliveira , qemu-devel@nongnu.org From: Don Slutz 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 --- target-i386/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 423e009..cbc172e 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);