From patchwork Sun Apr 17 17:44:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 562873 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6886:0:0:0:0 with SMTP id m6csp1880360map; Sun, 17 Apr 2022 11:50:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy08uVp8QaKEQQmJbYTqyt8okwD+NPMhnVs91Xd7bi1iI1hhBc99OZheeVMOQRKuMrYhwrb X-Received: by 2002:a05:620a:44cb:b0:69c:26fc:9a84 with SMTP id y11-20020a05620a44cb00b0069c26fc9a84mr4619961qkp.52.1650221420680; Sun, 17 Apr 2022 11:50:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650221420; cv=none; d=google.com; s=arc-20160816; b=GLX7GFmMuN58R4iv95Ci0ZUmrdl1E3BCeYdlTX0QXqnypXyrBJ2/Q9Vv7hYMRHqCiA 6sgGylbRQ78Nra1v2COiZscVJBhBMtWhwJLGpesc0Q43fMFFL8VT0wt3waOqmA/J3tDK hHgrOwjJVex1gy560y9NSJdsGhAw1J2QbZkc+qaAZjk1ntF3PNgLBq++9JAx1vjL6XwS QAx902++YuOfLGtG/CV63Htz37y+KxnlZM0XQX2oE0Ahp527KNERRtmXzt699YyDwyil c2E7vgQLzgF92DX/uGhSA7poXYQW/tosHabwIqHKAYk9dY1s04SkOhY2WuEus0sS32pU VDFQ== 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=7bwI399xmkYMZYOeiF66UP7rD5My88v054sfcO3BxLg=; b=Farl7Hxbj2c+8wjKxFhsL0wzA4FsCC3DewaSuqFfFdFFlmS32cvfWLy2w+IYghSJ9E ej1PXDBi2vDbyE4YX3oTlfSreObYf0XRkg1oh2K2Gk+QVhRStEEb9SGDQo0BLUJZNoR2 27cUsedfJJbSMzT+/sEJSbsTx7KQaH5JBaQNAqBpZu5MFCx0GZGyeIe8ONNMp9JNUtCM YVPUKYhSSeQyb2IQHS4+q6+1M0JfHRGlkLRSpyCN+2HNgqXymBzaRN1hq7vzQ9RnBjzT kH+386gtYVQqQqBtbI0dTgtldM9uEBVvkvE3Ivi1Eje966vSCseVUnyx5yZe5roTnLss k1mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=zzb2qRTp; 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 ke3-20020a056214300300b00443d297d9b7si2052666qvb.467.2022.04.17.11.50.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 17 Apr 2022 11:50:20 -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=fail header.i=@linaro.org header.s=google header.b=zzb2qRTp; 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 ([::1]:37594 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ng9yW-0002ZL-9q for patch@linaro.org; Sun, 17 Apr 2022 14:50:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49936) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ng90a-0004nv-Ny for qemu-devel@nongnu.org; Sun, 17 Apr 2022 13:48:24 -0400 Received: from mail-pg1-x536.google.com ([2607:f8b0:4864:20::536]:33624) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ng90X-000478-4a for qemu-devel@nongnu.org; Sun, 17 Apr 2022 13:48:22 -0400 Received: by mail-pg1-x536.google.com with SMTP id k14so14994481pga.0 for ; Sun, 17 Apr 2022 10:48:20 -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=7bwI399xmkYMZYOeiF66UP7rD5My88v054sfcO3BxLg=; b=zzb2qRTpQv5YOaWzGfE0jQkLcnBU+zDntc/eh/oowf/cKflXehA6hIbAtaFYICsHiY jR6w3MTb8AHbOEKJ9wRx8/LNe0ZeA2+G/UtjZMtL0CBwXoqMWferVNOOWJPU9D23yt2g NyEy7E2BE8ICudIycjncU36WJF+K/sZ6dxSU/J0cdvXQIASElqfqTWf8DfCsoG0u9yUJ QsJuMu+CDpz2HokuqofJokUNwlaasnnvy8ZORdqlBo3xLhNYazh2VQda6v72JW5XRalj 9/l6sy1eD75ZFAMlL+0kE2kssvvCR9fq79qqo85hp0JB8EV8Vs5dVus672lTiFafEmii dUSw== 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=7bwI399xmkYMZYOeiF66UP7rD5My88v054sfcO3BxLg=; b=BGb+7sZ3XuQdNQ/Husr2ABXPoUlS8Gc+6YQzkBG5gytnGN8fHJL4Ap2rFzvaoYslyD 1WMJaVrpBfTi6keHuUtUaSaCXn/8vT7t0wJAi6uXSvSNPgWNWcOtC6q1Olj7YQ7k5So4 Cu0237b6rCxli1Irq2rlbA5ZY/tvJT/CwXbdlfyOxfb9vp6TWF3FV6+/cR8gq3LKh6Ix p2TqYVREvbfRWPC4j6dBHaAJECFzdrQLDpNMAc57CMXgH4W585U+w7GTW4yZswQczGRA ex40aSunByRq3MsrHJqE0cY8kGdbwUyjo3WWu0E+9RY965oFVb+mDuhdfk4DYUj7XMFT rCgQ== X-Gm-Message-State: AOAM532V9zA6a8zSgpn+xzPZyHRjhpwkGg3Hx1ggkScy/Mc1Ebvvn7zA wFAdwzxJJ4RoF0kBbooo+WbR6Tlc7NWzLg== X-Received: by 2002:aa7:8a06:0:b0:506:28c:1282 with SMTP id m6-20020aa78a06000000b00506028c1282mr8418956pfa.19.1650217699937; Sun, 17 Apr 2022 10:48:19 -0700 (PDT) Received: from localhost.localdomain (174-21-142-130.tukw.qwest.net. [174.21.142.130]) by smtp.gmail.com with ESMTPSA id e14-20020aa78c4e000000b00506475da4cesm9372055pfd.49.2022.04.17.10.48.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Apr 2022 10:48:19 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v3 58/60] target/arm: Enable FEAT_DGH for -cpu max Date: Sun, 17 Apr 2022 10:44:24 -0700 Message-Id: <20220417174426.711829-59-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220417174426.711829-1-richard.henderson@linaro.org> References: <20220417174426.711829-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::536; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x536.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=unavailable 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: Peter Maydell , qemu-arm@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This extension concerns not merging memory access, which TCG does not implement. Thus we can trivially enable this feature. Add a comment to handle_hint for the DGH instruction, but no code. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- v2: Update emulation.rst --- docs/system/arm/emulation.rst | 1 + target/arm/cpu64.c | 1 + target/arm/translate-a64.c | 1 + 3 files changed, 3 insertions(+) diff --git a/docs/system/arm/emulation.rst b/docs/system/arm/emulation.rst index f75f0fc110..bc9cdda75a 100644 --- a/docs/system/arm/emulation.rst +++ b/docs/system/arm/emulation.rst @@ -16,6 +16,7 @@ the following architecture extensions: - FEAT_CSV2_1p2 (Cache speculation variant 2, version 1.2) - FEAT_CSV2_2 (Cache speculation variant 2, version 2) - FEAT_CSV3 (Cache speculation variant 3) +- FEAT_DGH (Data gathering hint) - FEAT_DIT (Data Independent Timing instructions) - FEAT_DPB (DC CVAP instruction) - FEAT_Debugv8p2 (Debug changes for v8.2) diff --git a/target/arm/cpu64.c b/target/arm/cpu64.c index 6139f51267..336a941acd 100644 --- a/target/arm/cpu64.c +++ b/target/arm/cpu64.c @@ -738,6 +738,7 @@ static void aarch64_max_initfn(Object *obj) t = FIELD_DP64(t, ID_AA64ISAR1, SB, 1); /* FEAT_SB */ t = FIELD_DP64(t, ID_AA64ISAR1, SPECRES, 1); /* FEAT_SPECRES */ t = FIELD_DP64(t, ID_AA64ISAR1, BF16, 1); /* FEAT_BF16 */ + t = FIELD_DP64(t, ID_AA64ISAR1, DGH, 1); /* FEAT_DGH */ t = FIELD_DP64(t, ID_AA64ISAR1, I8MM, 1); /* FEAT_I8MM */ cpu->isar.id_aa64isar1 = t; diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c index fc0b3ebf44..b44ab3ecf3 100644 --- a/target/arm/translate-a64.c +++ b/target/arm/translate-a64.c @@ -1427,6 +1427,7 @@ static void handle_hint(DisasContext *s, uint32_t insn, break; case 0b00100: /* SEV */ case 0b00101: /* SEVL */ + case 0b00110: /* DGH */ /* we treat all as NOP at least for now */ break; case 0b00111: /* XPACLRI */