projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93b6599
)
target-i386: Allow tsc-frequency to be larger then 2.147G
author
Don Slutz
<Don@CloudSwitch.com>
Sat, 22 Sep 2012 00:13:13 +0000
(20:13 -0400)
committer
Stefan Hajnoczi
<stefanha@gmail.com>
Sun, 23 Sep 2012 06:11:27 +0000
(07:11 +0100)
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>
target-i386/cpu.c
patch
|
blob
|
history
diff --git
a/target-i386/cpu.c
b/target-i386/cpu.c
index 423e00905d0907acecd6b2d87a71706f922b9602..cbc172e9fc7a8d2c7a40d21a73130c45a99a7634 100644
(file)
--- 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 = INT
64
_MAX;
int64_t value;
visit_type_int(v, &value, name, errp);