From nobody Tue Feb 10 04:17:52 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1506499028456747.3264978395387; Wed, 27 Sep 2017 00:57:08 -0700 (PDT) Received: from localhost ([::1]:53076 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dx7DM-0004fz-Ot for importer@patchew.org; Wed, 27 Sep 2017 03:57:04 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56755) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dx70R-0001Wl-Vv for qemu-devel@nongnu.org; Wed, 27 Sep 2017 03:43:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dx70L-000443-O4 for qemu-devel@nongnu.org; Wed, 27 Sep 2017 03:43:43 -0400 Received: from ozlabs.org ([2401:3900:2:1::2]:59981) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dx70L-0003zs-BN; Wed, 27 Sep 2017 03:43:37 -0400 Received: by ozlabs.org (Postfix, from userid 1007) id 3y28vN0038z9tXG; Wed, 27 Sep 2017 17:43:27 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1506498208; bh=YMmCgq3GdYeJWvmYB8TJ8lKBiCittELRkU2Bc9BYEdI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RsYeCuh1HQtCr0LB4JkGsD7LFeIODh1GDSFX5MasP3XbyogxbZUf8mvrwHOqGq+TN O4aQ/PRCeZTzNZE2ckcesvdpUHH1G9quQTvOxlxtSlpQHxfcnsOQYS6/MR2dD6i3tf /rrtQ8YzasI3mh9Jo+nm3mhMaMEZsGvjQMc3uurU= From: David Gibson To: peter.maydell@linaro.org Date: Wed, 27 Sep 2017 17:42:57 +1000 Message-Id: <20170927074316.4454-8-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.13.5 In-Reply-To: <20170927074316.4454-1-david@gibson.dropbear.id.au> References: <20170927074316.4454-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2401:3900:2:1::2 Subject: [Qemu-devel] [PULL 07/26] ppc: QOMify g3beige machine X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: agraf@suse.de, mark.cave-ayland@ilande.co.uk, qemu-devel@nongnu.org, groug@kaod.org, qemu-ppc@nongnu.org, David Gibson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" From: Mark Cave-Ayland Signed-off-by: Mark Cave-Ayland Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: David Gibson --- hw/ppc/mac_oldworld.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/hw/ppc/mac_oldworld.c b/hw/ppc/mac_oldworld.c index 61838c3e6f..bc7c8b7bd7 100644 --- a/hw/ppc/mac_oldworld.c +++ b/hw/ppc/mac_oldworld.c @@ -371,8 +371,10 @@ static int heathrow_kvm_type(const char *arg) return 2; } =20 -static void heathrow_machine_init(MachineClass *mc) +static void heathrow_class_init(ObjectClass *oc, void *data) { + MachineClass *mc =3D MACHINE_CLASS(oc); + mc->desc =3D "Heathrow based PowerMAC"; mc->init =3D ppc_heathrow_init; mc->block_default_type =3D IF_IDE; @@ -385,4 +387,15 @@ static void heathrow_machine_init(MachineClass *mc) mc->kvm_type =3D heathrow_kvm_type; } =20 -DEFINE_MACHINE("g3beige", heathrow_machine_init) +static const TypeInfo ppc_heathrow_machine_info =3D { + .name =3D MACHINE_TYPE_NAME("g3beige"), + .parent =3D TYPE_MACHINE, + .class_init =3D heathrow_class_init +}; + +static void ppc_heathrow_register_types(void) +{ + type_register_static(&ppc_heathrow_machine_info); +} + +type_init(ppc_heathrow_register_types); --=20 2.13.5