From patchwork Fri Jan 13 06:28:18 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: 9514671 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 B304D60762 for ; Fri, 13 Jan 2017 06:41:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ABAEC285AE for ; Fri, 13 Jan 2017 06:41:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A05D9285D0; Fri, 13 Jan 2017 06:41:54 +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 356A0285AE for ; Fri, 13 Jan 2017 06:41:53 +0000 (UTC) Received: from localhost ([::1]:39345 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRvYe-0001VT-Bn for patchwork-qemu-devel@patchwork.kernel.org; Fri, 13 Jan 2017 01:41:52 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53275) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRvMN-0006Ls-KO for qemu-devel@nongnu.org; Fri, 13 Jan 2017 01:29:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cRvMM-00022D-Ov for qemu-devel@nongnu.org; Fri, 13 Jan 2017 01:29:11 -0500 Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]:34168) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cRvMK-00021W-Sf; Fri, 13 Jan 2017 01:29:08 -0500 Received: by mail-pf0-x241.google.com with SMTP id y143so6914520pfb.1; Thu, 12 Jan 2017 22:29:08 -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=8nT78xF3qnDZvcweY4/U+oU7fykA3RCSk6H87KRhcBc=; b=iJVb/tn3zqSdhrCuL3G8tjrL0lU/xn3ku1ZO2sr/bOo7Q5FC379BW3V7Vr3CCwJakA 5ISPg9WyM1i8ZjyGQ2Veqd3FTGEhNEPIgcu3VrGzpPBPCCjnCOtRjpckWToNy5DiDuk0 4mSuxo7xaxhPdwC8Y0ewL4yI0qmto+p1Oxz4/CP5wjjfcHfJ4MpTc6tt+Ze/sz+cFvh+ zbpl1fgKnLxtCUQeuc4CnxZuNWRNUe8n4vKpoEkP4YgURENUr7y7AlUB5DoAjsrpF2FW +iTGx1fz9ELNV+pK4suuEa8gkVRme582F+89eWKae85KCWK7hgUotM2RoKazisgfWgtD 8xQg== 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=8nT78xF3qnDZvcweY4/U+oU7fykA3RCSk6H87KRhcBc=; b=rwp2KtFu553u3bHGjO4Rb2nO6UCs6vgb7bBZXSJ7TmxV4uKCtqSklNejNjpaEN6xCk //rFiXJfKva05qmO4IsgFbnLZQaWnxXNFrIGQGfmS3FmcxQMkyad8TwBXgcWG22nGD/l BCCeyRtzCGUPms1KBwpT5FJUR5RsKjNBYKDwT+1rLmZghpIm/Fg+nGLdlVA0J/O+ejnr h0C9a0zzgezAYbuZ2eLMtsW037MLmi6DxWdTQ3R5uk+GJ0qrID4Urfk0u9kJNR9H6TbZ zNOKWrWBpiysj3rz9nqv/G3OBvpMPGLU4eX3uakbgbDj1xByfHdoDhM8H6lQK8oLQfXI wUSg== X-Gm-Message-State: AIkVDXJ6GPwkx5tU4V8ASPDCzLz1CEkwRP7Up0W+sRT4OUFOeXxoy25BBc37EjMfvTNO5g== X-Received: by 10.98.138.155 with SMTP id o27mr20986809pfk.113.1484288948111; Thu, 12 Jan 2017 22:29:08 -0800 (PST) Received: from dyn253.ozlabs.ibm.com ([122.99.82.10]) by smtp.gmail.com with ESMTPSA id r2sm26004999pfi.67.2017.01.12.22.29.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Jan 2017 22:29:07 -0800 (PST) From: Suraj Jitindar Singh To: qemu-ppc@nongnu.org Date: Fri, 13 Jan 2017 17:28:18 +1100 Message-Id: <1484288903-18807-13-git-send-email-sjitindarsingh@gmail.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1484288903-18807-1-git-send-email-sjitindarsingh@gmail.com> References: <1484288903-18807-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] [RFC PATCH 12/17] 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, agraf@suse.de, Suraj Jitindar Singh , 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 45bd2de..35799da 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -357,6 +357,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; @@ -371,6 +385,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; }