From patchwork Sun Sep 23 10:00:07 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 186189 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 72BF12C008E for ; Sun, 23 Sep 2012 20:00:49 +1000 (EST) Received: from localhost ([::1]:43426 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFizX-0003oA-E0 for incoming@patchwork.ozlabs.org; Sun, 23 Sep 2012 06:00:47 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59769) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFizI-0003h0-Ad for qemu-devel@nongnu.org; Sun, 23 Sep 2012 06:00:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TFizG-0007a2-Mf for qemu-devel@nongnu.org; Sun, 23 Sep 2012 06:00:32 -0400 Received: from mail-we0-f173.google.com ([74.125.82.173]:56749) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFizG-0007Xh-1u for qemu-devel@nongnu.org; Sun, 23 Sep 2012 06:00:30 -0400 Received: by weyt11 with SMTP id t11so2574474wey.4 for ; Sun, 23 Sep 2012 03:00:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=lQ4tS1W4gw+ePMumdgcATg4+S9MZ0ldPXExUv5SW4VE=; b=0ABmQOs5JfJpT8Q7r5W2xy+jp77XkPiCy2LCzLOqaMdLjJuFuajnwTOz7A/7KDcfY6 1SluH1+6oR/s2r+7TKY7eFF6bEkuiqGA13oMB2Plqo5GT1FrIC+359lzXDO1chOlX3Up ukC5YFO06mqWWfsFPO6SZi8ILXAUKme9F+bgUbUID6fgkROTPSVtQm4sbfZXzfIYxHgp 7jtDdl94mldL77YxpQprBEeOuTwdLUSa9tG0DyI9hwrrW9XHcnl36oXb11K049qiriTa bdKFqS0HBl21ZZkVexC57ZEY1zvrWEs4/13a/gQ8oWMN9JGv0e0nYEtzatDPY7x6K/ML gEfQ== Received: by 10.180.86.106 with SMTP id o10mr7563075wiz.22.1348394428959; Sun, 23 Sep 2012 03:00:28 -0700 (PDT) Received: from localhost ([109.224.133.37]) by mx.google.com with ESMTPS id t8sm8308845wiy.3.2012.09.23.03.00.27 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 23 Sep 2012 03:00:28 -0700 (PDT) From: Stefan Hajnoczi To: Anthony Liguori Date: Sun, 23 Sep 2012 11:00:07 +0100 Message-Id: <1348394420-28298-2-git-send-email-stefanha@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1348394420-28298-1-git-send-email-stefanha@gmail.com> References: <1348394420-28298-1-git-send-email-stefanha@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.125.82.173 Cc: Stefan Hajnoczi , Don Slutz , Fred Oliveira , qemu-devel@nongnu.org Subject: [Qemu-devel] [PATCH 01/14] target-i386: Allow tsc-frequency to be larger then 2.147G X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Don Slutz The check using INT_MAX (2147483647) is wrong in this case. Signed-off-by: Fred Oliveira Signed-off-by: Don Slutz Signed-off-by: Stefan Hajnoczi --- target-i386/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);