From patchwork Mon Feb 20 04:04:36 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: 9581977 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 0471A6047C for ; Mon, 20 Feb 2017 04:14:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DF91328853 for ; Mon, 20 Feb 2017 04:14:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D0AA528857; Mon, 20 Feb 2017 04:14:45 +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 3D1F828853 for ; Mon, 20 Feb 2017 04:14:45 +0000 (UTC) Received: from localhost ([::1]:36012 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cffN6-0000Kh-B1 for patchwork-qemu-devel@patchwork.kernel.org; Sun, 19 Feb 2017 23:14:44 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cffDv-0000RG-LF for qemu-devel@nongnu.org; Sun, 19 Feb 2017 23:05:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cffDu-0002nj-PM for qemu-devel@nongnu.org; Sun, 19 Feb 2017 23:05:15 -0500 Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]:35144) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cffDs-0002lA-LH; Sun, 19 Feb 2017 23:05:12 -0500 Received: by mail-pf0-x241.google.com with SMTP id 68so8188616pfx.2; Sun, 19 Feb 2017 20:05:12 -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=H7yQziBELVymz2swM2ACA3CLod1mS88aY5I/GUeGf3c=; b=tWIrgPlBbqRaaxSWnU+ej+02mbszkBE6K95gswIqFV3dMUmp+R8pGpF7ddifZGbKcJ lFCGb+jqQlQ8sRMx7dlSfHkr9vCIBn5LzOzQNN6DgXHZTj53RF0Zte0M9KMHzj3aToIT xlZsLR8/GHiLgiWQuWBV6ByokJM5gzIHVpTQcLzUivdVnBlAFLXHzzw6d0fFj/X/NG1G 1OChl4VAWJtjlqgkQ+wnWHYd9fTt75uYj48Hb63hQXBvaV4g53bFWcWt4gAdiLQgAmq2 Jzz+1g5xFQAP/X8ONKhowFrRhVgVlKt4f2dE4PNNm5+XLo7DNtct1cSsSZFW0C9+kPbm Qw1Q== 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=H7yQziBELVymz2swM2ACA3CLod1mS88aY5I/GUeGf3c=; b=eGNLdyHZ+BYgZ7ZqOq4pJGS6SK3NqFNbPFGKIHjPgxUWzMi0it1SDxZGDk9gsZbhlb 4HYVsFEeuyhDG3KJsOiA/LPSCRLwjpkzlBZzwL+NSYDvLq45AXoaWxpnNAToV8V343Ud BPx0QMhukVYmZTZfbtGbD0LS+Gct9MOISwhY1jB8baiYSwEwDIbmvn1r0Fgll69hB8p+ FYX0ZSfRCD8iFeNqJ8VxpNH0xh2EDaeXOhaYKO7hvFrEx0ZtzazKvIkBVYiBy/9DI6ES 9KFIOHoY8DtyGW3cFF65v2ws1t1YPYK8J7d56iQ8YbgbmD4DBV6wKM34gxBUEx30HypD cKog== X-Gm-Message-State: AMke39mvGsVknSzuv1PYXDazAVepqoo3n+Cs6tyzexkZeOql8pOYqru78iagmNwURVX6Bg== X-Received: by 10.98.144.218 with SMTP id q87mr23636490pfk.51.1487563511889; Sun, 19 Feb 2017 20:05:11 -0800 (PST) Received: from surajjs.ozlabs.ibm.com ([122.99.82.10]) by smtp.gmail.com with ESMTPSA id d78sm31622707pfb.43.2017.02.19.20.05.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Feb 2017 20:05:11 -0800 (PST) From: Suraj Jitindar Singh To: qemu-ppc@nongnu.org Date: Mon, 20 Feb 2017 15:04:36 +1100 Message-Id: <1487563478-22265-9-git-send-email-sjitindarsingh@gmail.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1487563478-22265-1-git-send-email-sjitindarsingh@gmail.com> References: <1487563478-22265-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 V3 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, sjitindarsingh@gmail.com, 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 2fbf193..cef950d 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; }