From patchwork Sat Feb 23 02:39:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 10827217 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 58D7814E1 for ; Sat, 23 Feb 2019 02:41:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3D0CE31F4A for ; Sat, 23 Feb 2019 02:41:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2EC2D31F72; Sat, 23 Feb 2019 02:41:34 +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=-2.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A94C231F4A for ; Sat, 23 Feb 2019 02:41:33 +0000 (UTC) Received: from localhost ([127.0.0.1]:60041 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gxNFs-00044X-5y for patchwork-qemu-devel@patchwork.kernel.org; Fri, 22 Feb 2019 21:41:32 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55591) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gxNER-0002us-HR for qemu-devel@nongnu.org; Fri, 22 Feb 2019 21:40:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gxNEQ-0002UM-OO for qemu-devel@nongnu.org; Fri, 22 Feb 2019 21:40:03 -0500 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]:35919) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gxNEQ-0002TJ-Gz for qemu-devel@nongnu.org; Fri, 22 Feb 2019 21:40:02 -0500 Received: by mail-pg1-x543.google.com with SMTP id r124so1939050pgr.3 for ; Fri, 22 Feb 2019 18:40:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=hO9tI0gl+7v0EEROptE0nDBUbXhf6NtyQAL92HWtEUU=; b=NIr/tER7mzZqZwnnkYCMxNMPtpOBmMKHL7ZIFR1IOIWMqJnj+2HZiVJa0/ngZO6ioU WNLz/nTFrxcakbARY/6jfLWhYkxFpJBoZMc/2VMfcjsGikWyrTbmJ/7os4oPgegH1jDd BlDs20+fDhL5GMBjmxnZQr2hslIZC55w0IvMgFwCEZPHRVeOicgxPV9hXjExIVn2mijB 5GhIoLau/S42K5PEzMMAMOMfyI5qHoPJC7xwex2g4ymKANwceoU6DXeaHs3S/Xx375wF myIAOwY4J20bxu8GCaMxEdia8g+tlDQI/EoFOUnFRwWKU834ZfcdN400bwkltn4HHFjC srMQ== 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=hO9tI0gl+7v0EEROptE0nDBUbXhf6NtyQAL92HWtEUU=; b=PXv6RBTICtaJ8U6tJKxU9GZ1RERkcyHbuVWLescvqyij1yqgqIBGVMB3CXyEbQqoV1 3FvV7qc5coj3GyWDsrHdUvwPspqychjxVwe01qMrKBC9Gg9TXUHblIuvIfuFiSm6lEfW Oi2IPZwLxTUtKYtHg4fcZ/S81jBvo08tUUd3H+f65CkqksDGnwH0wUDSzp/EnYPPdDZm fMldboiSr9BLnfgsFp4VyiTOCfFxhSTrSZ/Sf3yQGF443LWxg0kj0qlSUkIhLXE0GUzZ VEwbHPsRlwZnhOOud4uSMu5CKIE54dm0QnQbwKP7C8rul0Sjj4Gulik+XwFF1OI3eq/y bfRQ== X-Gm-Message-State: AHQUAuZK+whCFePfBWhLO+AE+dNbAe2tZdFrBW/+PY05aM/OfRsrkPDG ikSUH71Xmn8k6tlN/gHeo0i1CljvKzs= X-Google-Smtp-Source: AHgI3IaXjxlZ6A8N7Rt62U+XuhzU409Z41H0NCYWlq1f0M/2YVMShxeiOoXruRrh3/nGqhqH8k97DQ== X-Received: by 2002:a63:f806:: with SMTP id n6mr6877471pgh.19.1550889601116; Fri, 22 Feb 2019 18:40:01 -0800 (PST) Received: from cloudburst.twiddle.net (97-113-188-82.tukw.qwest.net. [97.113.188.82]) by smtp.gmail.com with ESMTPSA id j6sm3052513pgq.33.2019.02.22.18.39.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 22 Feb 2019 18:40:00 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 22 Feb 2019 18:39:52 -0800 Message-Id: <20190223023957.18865-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20190223023957.18865-1-richard.henderson@linaro.org> References: <20190223023957.18865-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::543 Subject: [Qemu-devel] [PATCH 1/6] target/arm: Implement ID_PFR2 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: peter.maydell@linaro.org, alex.bennee@linaro.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP This was defined at some point before ARMv8.4, and will shortly be used by new processor descriptions. Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell --- target/arm/cpu.h | 1 + target/arm/helper.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/target/arm/cpu.h b/target/arm/cpu.h index 84ae6849c2..c57f8e9ba8 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -863,6 +863,7 @@ struct ARMCPU { uint32_t reset_sctlr; uint32_t id_pfr0; uint32_t id_pfr1; + uint32_t id_pfr2; uint32_t id_dfr0; uint64_t pmceid0; uint64_t pmceid1; diff --git a/target/arm/helper.c b/target/arm/helper.c index a018eb23fe..8903cc13d8 100644 --- a/target/arm/helper.c +++ b/target/arm/helper.c @@ -6092,10 +6092,10 @@ void register_cp_regs_for_features(ARMCPU *cpu) .opc0 = 3, .opc1 = 0, .crn = 0, .crm = 3, .opc2 = 3, .access = PL1_R, .type = ARM_CP_CONST, .resetvalue = 0 }, - { .name = "MVFR4_EL1_RESERVED", .state = ARM_CP_STATE_AA64, + { .name = "ID_PFR2", .state = ARM_CP_STATE_BOTH, .opc0 = 3, .opc1 = 0, .crn = 0, .crm = 3, .opc2 = 4, .access = PL1_R, .type = ARM_CP_CONST, - .resetvalue = 0 }, + .resetvalue = cpu->id_pfr2 }, { .name = "MVFR5_EL1_RESERVED", .state = ARM_CP_STATE_AA64, .opc0 = 3, .opc1 = 0, .crn = 0, .crm = 3, .opc2 = 5, .access = PL1_R, .type = ARM_CP_CONST,