[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-trivial] [Qemu-devel] [PATCH] target-i386: Allow tsc-frequency

From: Don Slutz
Subject: Re: [Qemu-trivial] [Qemu-devel] [PATCH] target-i386: Allow tsc-frequency to be larger then 2.147G
Date: Fri, 31 Aug 2012 10:04:13 -0400
User-agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:15.0) Gecko/20120824 Thunderbird/15.0

On 08/31/12 08:30, Fred Oliveira wrote:
The check using INT_MAX (2147483647) is wrong in this case.

Signed-off-by: Fred Oliveira <address@hidden>
  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);
I think this a *trivial patch. Adding address@hidden
   -Don Slutz

reply via email to

[Prev in Thread] Current Thread [Next in Thread]