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: 159088 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp2440952jaa; Fri, 22 Feb 2019 18:40:29 -0800 (PST) X-Google-Smtp-Source: AHgI3IavQ/yj59HMi2avABgvw35w12JQIuHtX5K1zG25Bj8OzbJWTKjzzpm4ooefkppLmYJDjKdx X-Received: by 2002:a5b:48e:: with SMTP id n14mr6068643ybp.327.1550889629934; Fri, 22 Feb 2019 18:40:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550889629; cv=none; d=google.com; s=arc-20160816; b=ytpG4MWVaSnEiHsiajBew3WZ3cKqheOIDWKlOHVPotpObFK5f2V8MV8bPD5dBJ8/gy gdcpPiJAXBdJGWOsZrD4dZrcCpiw3zDij2IeWx1Oe4QzL+B6TRfwafaOhxTL3PjmoxTh yQjnq6gb2QMWDMs2W/xULtRaj6rdVPklDbkn0jgKc3k7geiy1ji6POgPDW97UYoZD09m PfYW0v1b5IlYAQTgDfU1J0Ldq+lnLd/X10G/ZTzgj9qho7ccmsBGunXQQcyRnr5Te+3O 0wYPccj02r1EE8YbkfwcVISDA0vpfG8zdeeOC8NjJoZAhJKHs30eIBm4ZM3+bZsY4fnn BVXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=hO9tI0gl+7v0EEROptE0nDBUbXhf6NtyQAL92HWtEUU=; b=ZH/mlR8dKGEeSX3mvgM1+a42PZ+moaLNCICvetAIFzdefM3AD/wHAbyNV6R7XEWBvM ZBWPI2xf3R1xO6Gaghop00cvWvFmVTcuph9Xa0OkUL5TM+FLqQvb2EKiWeyFq/Xh2yyv J4ESMFL4YUd/W+1aSS4kF4DfDgtlroV1VBti0kOKQMXHGEScvIZ+1oDB4XPcvoVMMaEx usO8pIUP3QfGOzd99gABw9dnjEyU3jOJCPBsAVtPbXCG34LY0WwJVi4jn2FRzes5eaBw ZikmpbH9on9MZADht/CdgH4hfHWWC6zdweNMqQkkaP7xkQKJWsD9jmNYOjwYZmOi3KxZ vkWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="NIr/tER7"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id a19si1976577ybh.187.2019.02.22.18.40.29 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 22 Feb 2019 18:40:29 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="NIr/tER7"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1]:60017 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gxNEr-0002vK-Bx for patch@linaro.org; Fri, 22 Feb 2019 21:40:29 -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-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+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This was defined at some point before ARMv8.4, and will shortly be used by new processor descriptions. Signed-off-by: Richard Henderson --- target/arm/cpu.h | 1 + target/arm/helper.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) -- 2.17.2 Reviewed-by: Peter Maydell 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,