From patchwork Wed Jun 3 01:13:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 187428 Delivered-To: patch@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp77588ilo; Tue, 2 Jun 2020 18:27:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxADn6XHTwx09CoMZmVbuFIyVmNQk62e55SgyrSFfr0fQCbJ+HoLrXs6g5r+qCOsNTNCB5w X-Received: by 2002:a5b:541:: with SMTP id r1mr45610539ybp.381.1591147648319; Tue, 02 Jun 2020 18:27:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591147648; cv=none; d=google.com; s=arc-20160816; b=t9mxWTz1tKTUIRm/ek6batr6K7p33ioafdm7CtnNmz7DRFM8Ah5oEGlwulp/V+0UCJ ojJq4bGS7LiAzMlgqZ25+iQv4MKWgYGGDfSIYvROJ702YRpJytMciDeCKckamy7pwhiT 3Ua9G8Mnl7BnOuxU5zhV5hSRpfI0qSwNvyDGVzyAhHVPL2YltqaKwpI4JquZfkQ4mQ58 Wh/3U0He60I4M8RATs0RsbH9YjraR41HL1xa+PASnywTEHs0Kd8mlOMqcQf1ds8lX6OO QGc0pyOFbOBzt4JlvLT4tNB5RccOOcFPLV4CbXiXdIIIl2Fg7gCVJMLXLhdcZ9Ef49qs XGKw== 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=pWh7eNrZJvFxR8a07fRLkGAKBH4kVqj8pF+Brk+xMxs=; b=bt8/pd5dpN9OGt93uiWayuz2TXpukFUPfhReHexnfr3u4EwDNTv9Goa2aqI+8RfiiY lwqQvpgbt/VkEZlAAAPp6DxpQQ+Caqp2JaxVgV/wkenKaHS7LQCIRnxgRTu6FWkFOLSt r/wSZTezFOyejt7LyfjSUFltRexxsIu3Jvap1DwB4u8nKMkLCklao96/gmxxQDMj98bB i/vVc4VJzI2EuqeDvZVkXwIUlrH2vMfbS0RNwTrXefyfHdZHozoGC3ldxtPCpUZrn+KC shT3AsinbyeXlSH8UkAjMQlw+4xbGMTbbY6tdnVLqc6WYciP5Ua4lmXyQXlkGH1oLZbv S/SQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=rScdcdAj; 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 d127si338270ybh.439.2020.06.02.18.27.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Jun 2020 18:27:28 -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=rScdcdAj; 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]:50846 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jgIBj-0003nL-RJ for patch@linaro.org; Tue, 02 Jun 2020 21:27:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48920) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jgHyj-0004eq-0v for qemu-devel@nongnu.org; Tue, 02 Jun 2020 21:14:01 -0400 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]:35460) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jgHyi-0003er-4F for qemu-devel@nongnu.org; Tue, 02 Jun 2020 21:14:00 -0400 Received: by mail-pg1-x541.google.com with SMTP id o6so579821pgh.2 for ; Tue, 02 Jun 2020 18:13:59 -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=pWh7eNrZJvFxR8a07fRLkGAKBH4kVqj8pF+Brk+xMxs=; b=rScdcdAj3DugLGCAQKLiAg8MS+a/2tstaPXr9iJGTKrRy1vDFsJ04ojQ6+lkyBQ7wa ZBKhT4THswXAuaibp2L+m8hr10x1bdCXQBZw5by3Fdy5ek5u/X5rUTAB+H4k9G+Yd6u8 9xYXYrPEVPxTh3k0MAjSiACMVQE6UGxiods1lLys9fxWwfZGL8H99WTYtUR210/RansT aGEQoZmRTaP+7wtYJjJ8M7rHd5GhTtbfx+tdV6+HhytSNYCbTu0DfkrEreMd8d51nznN h+ZqlGvC701U1MkQ7eZisXJ1zK1vXyap0aw78joxQyszDUGdTUFurICYIcEzsjzyMdr2 RYGg== 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:mime-version:content-transfer-encoding; bh=pWh7eNrZJvFxR8a07fRLkGAKBH4kVqj8pF+Brk+xMxs=; b=fYoW1EjsGgLMTvkpL0bkpMYOiZvEW5J8JGQzetfkL0xxH96h4JNeGIqYwc4nZVHVrJ vy3YsqfgPidOWTTNf5jET57NcNgNPMOulX2vlQjlIYeBQLb95PYDEdaXfh/2+YvSGnFU ebqDRhr7kwgtmlq916pX3HnhisiLKUCvTTFL2iMnXgAW3h2NWdMpmQVXlohRpUXVIupn VjL8AgYbA6WAjM7HLc/dJVEH+ohEz/2NCNwfNkI5j5RrupT6iEIbKrcMY6rycguJTtGs +6HsCbKAhsz/z+3jwQ+7fDofl7AtRvWAbUT+xmw5DCpMlXrv6DcbScs6Ka4IweanlhKY NiaA== X-Gm-Message-State: AOAM530liNeRZO+zNBFxcifoehnY8AtRs6OryHY0VVv0Od6zAwCfcKCE g8Q9SeJf9iWQjstBGGPoFBsO2X9ydLE= X-Received: by 2002:a63:a84d:: with SMTP id i13mr25594284pgp.342.1591146838353; Tue, 02 Jun 2020 18:13:58 -0700 (PDT) Received: from localhost.localdomain (174-21-143-238.tukw.qwest.net. [174.21.143.238]) by smtp.gmail.com with ESMTPSA id 3sm290067pfe.85.2020.06.02.18.13.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jun 2020 18:13:57 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v7 30/42] target/arm: Use mte_check1 for sve LD1R Date: Tue, 2 Jun 2020 18:13:05 -0700 Message-Id: <20200603011317.473934-31-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200603011317.473934-1-richard.henderson@linaro.org> References: <20200603011317.473934-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::541; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x541.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, qemu-arm@nongnu.org, steplong@quicinc.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) -- 2.25.1 diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index e515646db2..4b3b879815 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve.c @@ -4830,16 +4830,16 @@ static bool trans_LD1RQ_zpri(DisasContext *s, arg_rpri_load *a) /* Load and broadcast element. */ static bool trans_LD1R_zpri(DisasContext *s, arg_rpri_load *a) { - if (!sve_access_check(s)) { - return true; - } - unsigned vsz = vec_full_reg_size(s); unsigned psz = pred_full_reg_size(s); unsigned esz = dtype_esz[a->dtype]; unsigned msz = dtype_msz(a->dtype); TCGLabel *over = gen_new_label(); - TCGv_i64 temp; + TCGv_i64 temp, clean_addr; + + if (!sve_access_check(s)) { + return true; + } /* If the guarding predicate has no bits set, no load occurs. */ if (psz <= 8) { @@ -4862,7 +4862,9 @@ static bool trans_LD1R_zpri(DisasContext *s, arg_rpri_load *a) /* Load the data. */ temp = tcg_temp_new_i64(); tcg_gen_addi_i64(temp, cpu_reg_sp(s, a->rn), a->imm << msz); - tcg_gen_qemu_ld_i64(temp, temp, get_mem_index(s), + clean_addr = gen_mte_check1(s, temp, false, true, msz); + + tcg_gen_qemu_ld_i64(temp, clean_addr, get_mem_index(s), s->be_data | dtype_mop[a->dtype]); /* Broadcast to *all* elements. */