From patchwork Sat Apr 9 00:07:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 559189 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6886:0:0:0:0 with SMTP id m6csp758952map; Fri, 8 Apr 2022 17:13:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjzkF+KET2ThKF61DX/EKowlvmhA3e2FkjB68TbNyhioLZ6Z9b8sJ3lfQZOe7ChPzJaPqe X-Received: by 2002:a05:620a:410d:b0:67d:7391:de64 with SMTP id j13-20020a05620a410d00b0067d7391de64mr14545093qko.78.1649463180240; Fri, 08 Apr 2022 17:13:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649463180; cv=none; d=google.com; s=arc-20160816; b=gIKyyQOU2RUHV+ppuqmnelW+RsNYLLYs0gji5U+aTRb4OTmf9P0tVQ80FSPEY8ig5Z lmIiVOHv04sNtHrWJSxdqyjfep6wnTp4+C/eFCQIRHvsNc8lVuTWHbgQ2jTnw49cNlrp +sAAjS5t0DExa1MqWYxJ25rNIbGfZTHqeSgwPycPoRoMWkV2BlJ/nXLYYLjRMkYW/Krl wByb9hvs2+LRwzJlvG8SljkXVTpv0Q9/kROqv4FrbJnh4BZgSFSAS1bWuJCf1tbqzrDo 2wmFoxjoZSavr9c+L+UFQaezYONAyoTQw6BbklDfj/a5chFGdvMPj2RCXanHAR8e5VVt zoxQ== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=e+gf4njBlT4aculnG55HysMJzlBG+wUfm2aGsCO3sRk=; b=w0y/5AdO1acxhELqW/5RcnYeCxJBuKliCy+DHxfx0lRribKdBCikCkDGfBTWGh1q9h OCNpFNQv3y7QTn8vTP0pK+cw0zOFImRB2OhmzjriA+AoNV2PGhJKozMPhecVmuhxfISn 1x8kSnOeEROT7Sn/IACJ8dNMDLoo/w5xMC+MNhgU55b47IL7WEKQXgqu/oLX0Waz8dQT hvFISLai45U4tKaQORVSv2F3ii4Wey+5xyH57y5iFVHVEQ2Ag17NlgQUpQXqEamE7yNH Hh31MWMm15eV+U5LF70FXhJC//pI+X6PV2RMIV/cH6VtdJzXvQepzqUAivt/QVV+dq6N Ymkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zqS+U8Qk; 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=pass (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 v14-20020ac8578e000000b002e1fbf3bf7csi1500945qta.365.2022.04.08.17.13.00 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 Apr 2022 17:13:00 -0700 (PDT) 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=pass header.i=@linaro.org header.s=google header.b=zqS+U8Qk; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:40714 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ncyip-0007e9-Qm for patch@linaro.org; Fri, 08 Apr 2022 20:12:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47010) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncye1-00005g-50 for qemu-devel@nongnu.org; Fri, 08 Apr 2022 20:08:01 -0400 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]:33346) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ncydz-0003Vp-O0 for qemu-devel@nongnu.org; Fri, 08 Apr 2022 20:08:00 -0400 Received: by mail-pg1-x532.google.com with SMTP id k14so9132559pga.0 for ; Fri, 08 Apr 2022 17:07:58 -0700 (PDT) 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 :mime-version:content-transfer-encoding; bh=e+gf4njBlT4aculnG55HysMJzlBG+wUfm2aGsCO3sRk=; b=zqS+U8QkUzgNwKxjFsjN6LoAxPPFoVnxUIRUOF/cV3VLDTShiR5ODafF83uydhHuiD MBkJnIURFf1eh+ELCQWRPCXfUviOSEmlRoU8FvcKgaMNECKgeIWQ9xYVaVQUt1oOQ+TW f/9wulUGrZRWZmHJSBSUX8r6yfhEKEjLqo3LsipQxkPpZo5emmZt+d+M4GbKO36M7Hz0 HhXstYx2XzPinK+9k8zkKOdKBBnxXPYmSEawy/UVa0GmYHofzus2rrHP6TlBB5WkxJHR bjMm8JqwZQ6Q/K4bwtO3ePIE4R7KmppJWw2KSl76qC9WckvprB1IDEc7r2WJqUMB0utP E5MQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=e+gf4njBlT4aculnG55HysMJzlBG+wUfm2aGsCO3sRk=; b=FneiHTxMS4UAgN3UgdIweH6pyyKJko5VhnA5Ij7J6D0rh2dNwrvpLLcZZ3Dl1HMORw zTKxBIi5ZSOWKBAgMveChJlBa9IXrL/Xm8+meYPHfWLhbMF10272a9kXgAp71Ev1Ev/o W309SsjzohSAC1qcfQf9QQniqCcZ+TwlTKw0M8zp+ivV2vXbeJgD2gQ8U0C5zob+B3xx XmQPMzqO3aSsfc9ctVsPh3ELdGhXW5KWSjRA7hHE2pyJpucmOvWXaUDDiDdacdrQnEP3 s37pqG8Trc8YNcuao46Rr+vfmC3TyJwcNrqkrCx3sz0QVWOi8ClZlic3OMH2C5WDpIx0 Zv9w== X-Gm-Message-State: AOAM533AV2AKsmWtXQrkg6XhVCuZk1oX9yB/AtElmnJDUk1GZOe9W3Vp PB4hHUBo8NnMsXVtmdPowWIznp7MckpUtA== X-Received: by 2002:a63:6e0b:0:b0:397:f965:64a7 with SMTP id j11-20020a636e0b000000b00397f96564a7mr17399056pgc.581.1649462877460; Fri, 08 Apr 2022 17:07:57 -0700 (PDT) Received: from localhost.localdomain (174-21-142-130.tukw.qwest.net. [174.21.142.130]) by smtp.gmail.com with ESMTPSA id t69-20020a637848000000b0039831d6dc23sm22073961pgc.94.2022.04.08.17.07.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Apr 2022 17:07:57 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 15/16] target/arm: Enable FEAT_RAS for -cpu max Date: Fri, 8 Apr 2022 17:07:41 -0700 Message-Id: <20220409000742.293691-16-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220409000742.293691-1-richard.henderson@linaro.org> References: <20220409000742.293691-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::532; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x532.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-arm@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell --- target/arm/cpu64.c | 1 + target/arm/cpu_tcg.c | 1 + 2 files changed, 2 insertions(+) diff --git a/target/arm/cpu64.c b/target/arm/cpu64.c index f20fb6d9e1..03c6707111 100644 --- a/target/arm/cpu64.c +++ b/target/arm/cpu64.c @@ -801,6 +801,7 @@ static void aarch64_max_initfn(Object *obj) t = cpu->isar.id_aa64pfr0; t = FIELD_DP64(t, ID_AA64PFR0, FP, 1); /* FEAT_FP16 */ t = FIELD_DP64(t, ID_AA64PFR0, ADVSIMD, 1); /* FEAT_FP16 */ + t = FIELD_DP64(t, ID_AA64PFR0, RAS, 1); /* FEAT_RAS */ t = FIELD_DP64(t, ID_AA64PFR0, SVE, 1); t = FIELD_DP64(t, ID_AA64PFR0, SEL2, 1); /* FEAT_SEL2 */ t = FIELD_DP64(t, ID_AA64PFR0, DIT, 1); /* FEAT_DIT */ diff --git a/target/arm/cpu_tcg.c b/target/arm/cpu_tcg.c index a443e8c48a..5cce9116d0 100644 --- a/target/arm/cpu_tcg.c +++ b/target/arm/cpu_tcg.c @@ -72,6 +72,7 @@ void arm32_max_features(ARMCPU *cpu) t = cpu->isar.id_pfr0; t = FIELD_DP32(t, ID_PFR0, DIT, 1); /* FEAT_DIT */ + t = FIELD_DP32(t, ID_PFR0, RAS, 1); /* FEAT_RAS */ cpu->isar.id_pfr0 = t; t = cpu->isar.id_pfr2;