Blame 0310-target-i386-Allow-tsc-frequency-to-be-larger-then-2..patch
|
|
f375e62 |
From 4c512ed2aa98b5219b84fa98e8b3ac9ef0128436 Mon Sep 17 00:00:00 2001
|
|
|
f375e62 |
From: Don Slutz <Don@CloudSwitch.com>
|
|
|
f375e62 |
Date: Fri, 21 Sep 2012 20:13:13 -0400
|
|
|
f375e62 |
Subject: [PATCH] target-i386: Allow tsc-frequency to be larger then 2.147G
|
|
|
f375e62 |
|
|
|
f375e62 |
The check using INT_MAX (2147483647) is wrong in this case.
|
|
|
f375e62 |
|
|
|
f375e62 |
Signed-off-by: Fred Oliveira <foliveira@cloudswitch.com>
|
|
|
f375e62 |
Signed-off-by: Don Slutz <Don@CloudSwitch.com>
|
|
|
f375e62 |
Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
|
|
|
f375e62 |
(cherry picked from commit 2e84849aa2cc7f220d3b3668f5f7e3c57bb1b590)
|
|
|
f375e62 |
|
|
|
f375e62 |
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
|
|
|
f375e62 |
---
|
|
|
f375e62 |
target-i386/cpu.c | 2 +-
|
|
|
f375e62 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
f375e62 |
|
|
|
f375e62 |
diff --git a/target-i386/cpu.c b/target-i386/cpu.c
|
|
|
f375e62 |
index 423e009..cbc172e 100644
|
|
|
f375e62 |
--- a/target-i386/cpu.c
|
|
|
f375e62 |
+++ b/target-i386/cpu.c
|
|
|
f375e62 |
@@ -846,7 +846,7 @@ static void x86_cpuid_set_tsc_freq(Object *obj, Visitor *v, void *opaque,
|
|
|
f375e62 |
{
|
|
|
f375e62 |
X86CPU *cpu = X86_CPU(obj);
|
|
|
f375e62 |
const int64_t min = 0;
|
|
|
f375e62 |
- const int64_t max = INT_MAX;
|
|
|
f375e62 |
+ const int64_t max = INT64_MAX;
|
|
|
f375e62 |
int64_t value;
|
|
|
f375e62 |
|
|
|
f375e62 |
visit_type_int(v, &value, name, errp);
|