From patchwork Mon Dec 3 17:28:01 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Eduardo Habkost X-Patchwork-Id: 203405 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 9CD6A2C0082 for ; Tue, 4 Dec 2012 04:27:56 +1100 (EST) Received: from localhost ([::1]:60750 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfZoA-000620-RJ for incoming@patchwork.ozlabs.org; Mon, 03 Dec 2012 12:27:54 -0500 Received: from eggs.gnu.org ([208.118.235.92]:57653) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfZn0-0002Wp-0G for qemu-devel@nongnu.org; Mon, 03 Dec 2012 12:26:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TfZmu-00044V-0D for qemu-devel@nongnu.org; Mon, 03 Dec 2012 12:26:41 -0500 Received: from mx1.redhat.com ([209.132.183.28]:36760) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfZmt-00043r-Oh for qemu-devel@nongnu.org; Mon, 03 Dec 2012 12:26:35 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qB3HQYph015249 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 3 Dec 2012 12:26:34 -0500 Received: from blackpad.lan.raisama.net (vpn1-5-179.gru2.redhat.com [10.97.5.179]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id qB3HQXQd021126; Mon, 3 Dec 2012 12:26:33 -0500 Received: by blackpad.lan.raisama.net (Postfix, from userid 500) id 4089120184E; Mon, 3 Dec 2012 15:28:09 -0200 (BRST) From: Eduardo Habkost To: qemu-devel@nongnu.org Date: Mon, 3 Dec 2012 15:28:01 -0200 Message-Id: <1354555681-15343-6-git-send-email-ehabkost@redhat.com> In-Reply-To: <1354555681-15343-1-git-send-email-ehabkost@redhat.com> References: <1354555681-15343-1-git-send-email-ehabkost@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-MIME-Autoconverted: from 8bit to quoted-printable by mx1.redhat.com id qB3HQYph015249 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: Igor Mammedov , Don Slutz , =?UTF-8?q?Andreas=20F=C3=A4rber?= Subject: [Qemu-devel] [PATCH 5/5] target-i386: use visit_type_hz to parse tsc_freq property value 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: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Andreas Färber --- 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 ee03652..def801a 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -1195,7 +1195,7 @@ static void x86_cpuid_set_tsc_freq(Object *obj, Visitor *v, void *opaque, const int64_t max = INT64_MAX; int64_t value; - visit_type_int(v, &value, name, errp); + visit_type_freq(v, &value, name, errp); if (error_is_set(errp)) { return; }