From nobody Tue Feb 10 12:57:28 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.zoho.com; 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 1486704778011922.4329950132945; Thu, 9 Feb 2017 21:32:58 -0800 (PST) Received: from localhost ([::1]:41929 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cc3pI-0003nw-KS for importer@patchew.org; Fri, 10 Feb 2017 00:32:56 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40463) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cc3jL-0006jt-01 for qemu-devel@nongnu.org; Fri, 10 Feb 2017 00:26:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cc3jK-0001fk-BH for qemu-devel@nongnu.org; Fri, 10 Feb 2017 00:26:47 -0500 Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]:33979) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cc3jH-0001eY-P7; Fri, 10 Feb 2017 00:26:43 -0500 Received: by mail-pf0-x241.google.com with SMTP id o64so777116pfb.1; Thu, 09 Feb 2017 21:26:43 -0800 (PST) Received: from surajjs.ozlabs.ibm.com ([122.99.82.10]) by smtp.gmail.com with ESMTPSA id r78sm1308298pfl.63.2017.02.09.21.26.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Feb 2017 21:26:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=NGT5UhNUmtijK+JUDIR/JpMyhPmvVqKcRC9k+OedYT0=; b=b/NQDkCPKozEcu4kRZDWqCKZcXES/JI2fvKk5L15k1m4rVcD5YNGo39ny/D/mcXK8T lAsny5p/4NV3ieyhFmAuKF7KORPGj4pC9HWILwnI5FAxWVYRa51eYZeuDqpvhfgbKagi GVnX/aDURLbVaKXd4jl5dlUaAwA88ZiePNMEv6EznFqYDsu3oWfbEmrD43rxvhAbSo7i FpHsL2JXqQlUO1lqsTM6Lo2iuLTsB2531t0zsyXwYyMUt+S2IEqBqv8/gIqsiY8O07Gy 7H7Zrn1YMFLrnOiB0eIUWiXyJx0qTmiZaNn9uPYSW57FlKg2JdWMatP3RlHidu7IV6no xtZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=NGT5UhNUmtijK+JUDIR/JpMyhPmvVqKcRC9k+OedYT0=; b=goV8bs44uMuWyKAewGs7SwfSkqdgXVrrdoBmxe1WMkaMUnU6XQR5z46srte0EAqrqI MXSiXuWeMpOWBIQX/FXOGV900ToAUBqIJR9ZNkhCnTxuQKy9Pg+tat/mahbA/cCrl6f8 3no0ChAOhnJTApG4vBa99dfwUji3AoPX/0yca7ruNUdXjFd2lwTWlR2ezTyhT8egWVMm xrIqSeDFl4ReFxRpIaFq4bMZPiYaudMxMv8WTBzMot94ogWAdZOjjBZOQoGwmoVxwPPG 2bVJwL0Ct0TmKq8kuJ5FcEFDuiSh2R0pox89QHWWFVse85b15lcJGm/jEhRa9dicJAAm VN2g== X-Gm-Message-State: AMke39nRbOLE9yVU4vEGDL1ZmM8Q3phYepm1Ab3gyJUPQsg1dr1Awpo/hmZVbkhAH7hu4w== X-Received: by 10.99.43.136 with SMTP id r130mr8477439pgr.83.1486704403013; Thu, 09 Feb 2017 21:26:43 -0800 (PST) From: Suraj Jitindar Singh To: qemu-ppc@nongnu.org Date: Fri, 10 Feb 2017 16:25:58 +1100 Message-Id: <1486704360-27361-9-git-send-email-sjitindarsingh@gmail.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1486704360-27361-1-git-send-email-sjitindarsingh@gmail.com> References: <1486704360-27361-1-git-send-email-sjitindarsingh@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c00::241 Subject: [Qemu-devel] [QEMU-PPC] [PATCH V2 08/10] target/ppc/POWER9: Add POWER9 pa-features definition 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: qemu-devel@nongnu.org, Suraj Jitindar Singh , agraf@suse.de, sam.bobroff@au1.ibm.com, david@gibson.dropbear.id.au Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Add a pa-features definition which includes all of the new fields which have been added, note we don't claim support for any of these new features at this stage. Signed-off-by: Suraj Jitindar Singh Reviewed-by: David Gibson --- hw/ppc/spapr.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index 057adae..44eb014 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -356,6 +356,20 @@ static void spapr_populate_pa_features(CPUPPCState *en= v, void *fdt, int offset) 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0x00, 0x00 }; + /* Currently we don't advertise any of the "new" ISAv3.00 functionalit= y */ + uint8_t pa_features_300[] =3D { 64, 0, + 0xf6, 0x1f, 0xc7, 0xc0, 0x80, 0xf0, /* 0 - 5 */ + 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, /* 6 - 11 */ + 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, /* 12 - 17 */ + 0x80, 0x00, 0x80, 0x00, 0x00, 0x00, /* 18 - 23 */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 24 - 29 */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 30 - 35 */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 36 - 41 */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 42 - 47 */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 48 - 53 */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 54 - 59 */ + 0x00, 0x00, 0x00, 0x00 }; /* 60 - 63 */ + uint8_t *pa_features; size_t pa_size; =20 @@ -370,6 +384,10 @@ static void spapr_populate_pa_features(CPUPPCState *en= v, void *fdt, int offset) pa_features =3D pa_features_207; pa_size =3D sizeof(pa_features_207); break; + case POWERPC_MMU_3_00: + pa_features =3D pa_features_300; + pa_size =3D sizeof(pa_features_300); + break; default: return; } --=20 2.5.5