From patchwork Mon Mar 19 22:57:34 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 147691 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 581FBB6FDB for ; Tue, 20 Mar 2012 11:14:31 +1100 (EST) Received: from localhost ([::1]:35865 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S9lY4-0004ui-I5 for incoming@patchwork.ozlabs.org; Mon, 19 Mar 2012 18:59:32 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55732) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S9lXE-0002tm-2d for qemu-devel@nongnu.org; Mon, 19 Mar 2012 18:58:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S9lWp-0000s9-Dm for qemu-devel@nongnu.org; Mon, 19 Mar 2012 18:58:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:24610) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S9lWp-0000ri-5f for qemu-devel@nongnu.org; Mon, 19 Mar 2012 18:58:15 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q2JMwDXx022733 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 19 Mar 2012 18:58:13 -0400 Received: from trasno.mitica (ovpn-116-17.ams2.redhat.com [10.36.116.17]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q2JMw4oM017718; Mon, 19 Mar 2012 18:58:12 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Mon, 19 Mar 2012 23:57:34 +0100 Message-Id: <21a338edb66587faa60456ecc67a6ca837c869fb.1332197811.git.quintela@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH 06/36] vmstate: make microblaze cpus not migrateable 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 Signed-off-by: Juan Quintela --- target-microblaze/cpu.h | 2 -- target-microblaze/machine.c | 26 ++++++++++++++++++-------- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/target-microblaze/cpu.h b/target-microblaze/cpu.h index 33b23c2..c7ea041 100644 --- a/target-microblaze/cpu.h +++ b/target-microblaze/cpu.h @@ -294,8 +294,6 @@ enum { #define cpu_gen_code cpu_mb_gen_code #define cpu_signal_handler cpu_mb_signal_handler -#define CPU_SAVE_VERSION 1 - /* MMU modes definitions */ #define MMU_MODE0_SUFFIX _nommu #define MMU_MODE1_SUFFIX _kernel diff --git a/target-microblaze/machine.c b/target-microblaze/machine.c index 1be1c35..13abf6a 100644 --- a/target-microblaze/machine.c +++ b/target-microblaze/machine.c @@ -1,11 +1,21 @@ +/* + * Migration support for microblaze cpus + * + * Copyright (C) 2011 Red Hat, Inc. + * + * Author(s): + * Juan Quintela + * + * This work is licensed under the terms of the GNU GPL, version 2 or + * later. See the COPYING file in the top-level directory. + */ + #include "hw/hw.h" -#include "hw/boards.h" -void cpu_save(QEMUFile *f, void *opaque) -{ -} +/* To make this architecture migratable, we need to define cpu state + here. Other things need to be done elsewhere */ -int cpu_load(QEMUFile *f, void *opaque, int version_id) -{ - return 0; -} +const VMStateDescription vmstate_cpu = { + .name = "cpu", + .unmigratable = 1, +};