summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDon Slutz <Don@CloudSwitch.com>2012-09-21 20:13:13 -0400
committerDoug Goldstein <cardoe@cardoe.com>2012-12-13 15:31:58 -0600
commitc49efbf009200e7dc03f38bbb4194282bbafe392 (patch)
treeb6bfef9ad892f0d9583e1fcb48753b993906fd8f
parenthw: Fix return value check for bdrv_read, bdrv_write (diff)
downloadqemu-kvm-c49efbf009200e7dc03f38bbb4194282bbafe392.tar.gz
qemu-kvm-c49efbf009200e7dc03f38bbb4194282bbafe392.tar.bz2
qemu-kvm-c49efbf009200e7dc03f38bbb4194282bbafe392.zip
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 <foliveira@cloudswitch.com> Signed-off-by: Don Slutz <Don@CloudSwitch.com> Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com> (cherry picked from commit 2e84849aa2cc7f220d3b3668f5f7e3c57bb1b590) Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com> (cherry picked from commit 3dfbc51e787bbe150273595ef526167842fd94ec)
-rw-r--r--target-i386/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-i386/cpu.c b/target-i386/cpu.c
index 423e00905..cbc172e9f 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);