diff options
author | Don Slutz <Don@CloudSwitch.com> | 2012-09-21 20:13:13 -0400 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@gmail.com> | 2012-09-23 07:11:27 +0100 |
commit | 2e84849aa2cc7f220d3b3668f5f7e3c57bb1b590 (patch) | |
tree | 327f9e6885ee972ae6cf7baadf8965872d8c59f4 /target-i386/cpu.c | |
parent | 93b6599734f81328ee3d608f57667742cafeea72 (diff) | |
download | qemu-2e84849aa2cc7f220d3b3668f5f7e3c57bb1b590.zip qemu-2e84849aa2cc7f220d3b3668f5f7e3c57bb1b590.tar.gz qemu-2e84849aa2cc7f220d3b3668f5f7e3c57bb1b590.tar.bz2 |
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>
Diffstat (limited to 'target-i386/cpu.c')
-rw-r--r-- | target-i386/cpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |