From patchwork Tue Dec 4 18:58:23 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [6/6] target-i386: use visit_type_hz to parse tsc_freq property value From: Eduardo Habkost X-Patchwork-Id: 203723 Message-Id: <1354647503-30900-7-git-send-email-ehabkost@redhat.com> To: qemu-devel@nongnu.org Cc: Igor Mammedov , Don Slutz , =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Tue, 4 Dec 2012 16:58:23 -0200 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 a56a130..f8ba569 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; }