From patchwork Fri Feb 10 05:25:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suraj Jitindar Singh X-Patchwork-Id: 9566005 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6EAC4601EA for ; Fri, 10 Feb 2017 05:31:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5C81F2854E for ; Fri, 10 Feb 2017 05:31:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5116728551; Fri, 10 Feb 2017 05:31:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DDB6C2854E for ; Fri, 10 Feb 2017 05:31:22 +0000 (UTC) Received: from localhost ([::1]:41922 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cc3nl-0002A8-Lb for patchwork-qemu-devel@patchwork.kernel.org; Fri, 10 Feb 2017 00:31:21 -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) 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) 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) 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+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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 *env, 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 functionality */ + uint8_t pa_features_300[] = { 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; @@ -370,6 +384,10 @@ static void spapr_populate_pa_features(CPUPPCState *env, void *fdt, int offset) pa_features = pa_features_207; pa_size = sizeof(pa_features_207); break; + case POWERPC_MMU_3_00: + pa_features = pa_features_300; + pa_size = sizeof(pa_features_300); + break; default: return; }