From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NkeDc-0001wo-UK for qemu-devel@nongnu.org; Thu, 25 Feb 2010 08:57:33 -0500 Received: from [199.232.76.173] (port=47364 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NkeDc-0001wZ-L8 for qemu-devel@nongnu.org; Thu, 25 Feb 2010 08:57:32 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NkeDb-00020W-Ei for qemu-devel@nongnu.org; Thu, 25 Feb 2010 08:57:32 -0500 Received: from mx1.redhat.com ([209.132.183.28]:3265) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NkeDb-00020M-2D for qemu-devel@nongnu.org; Thu, 25 Feb 2010 08:57:31 -0500 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o1PDvUvD022596 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 25 Feb 2010 08:57:30 -0500 From: Amit Shah Date: Thu, 25 Feb 2010 19:26:11 +0530 Message-Id: <1267106172-28011-1-git-send-email-amit.shah@redhat.com> Subject: [Qemu-devel] [PATCH 1/2] ppc440_bamboo: Add 0.12 and 0.13 machine types for backward compat List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Amit Shah Add a 0.12 machine type for compatibility with older versions. Mark the default one as 0.13. Signed-off-by: Amit Shah --- hw/ppc440_bamboo.c | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/hw/ppc440_bamboo.c b/hw/ppc440_bamboo.c index 1ab9872..aa9f594 100644 --- a/hw/ppc440_bamboo.c +++ b/hw/ppc440_bamboo.c @@ -172,7 +172,15 @@ static void bamboo_init(ram_addr_t ram_size, } static QEMUMachine bamboo_machine = { - .name = "bamboo", + .name = "bamboo-0.13", + .alias = "bamboo", + .desc = "bamboo", + .init = bamboo_init, + .is_default = 1, +}; + +static QEMUMachine bamboo_machine_v0_12 = { + .name = "bamboo-0.12", .desc = "bamboo", .init = bamboo_init, }; @@ -180,6 +188,7 @@ static QEMUMachine bamboo_machine = { static void bamboo_machine_init(void) { qemu_register_machine(&bamboo_machine); + qemu_register_machine(&bamboo_machine_v0_12); } machine_init(bamboo_machine_init); -- 1.6.2.5