From patchwork Fri Jun 26 03:31:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 191783 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp110134ilg; Thu, 25 Jun 2020 20:48:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwl3gfC7burdwJH9Egqnsp4iwplH4e4AvqcayjIZCNJ+ggRo0R2+oSwCc36Xcx3tKK3l1V2 X-Received: by 2002:a25:ce84:: with SMTP id x126mr1731371ybe.15.1593143290082; Thu, 25 Jun 2020 20:48:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593143290; cv=none; d=google.com; s=arc-20160816; b=gxV1vgp6RWsc/W8Yg3z5BWPkpekpS5k5vqEVlB4vadNqLzFJ3VkJnvUvR5YlIaGac7 TcavUpszYL9SpOFUL/tywjc+tCz8ctmh48OE0lhvYeHWL2hXVB8gQTkKakKH4+GNQNef nr+6QkAvHrQkQ49AHTWb7OBHtMgx8fZDcYypd4YYZshvYu7WuZe9GIOTEQpTGuK7Dmgv hM5Bg69v39MPffa5cdNAQ68eVP+KcVY4MXsnOIYGKAG72Rf6iS+oVcwocVB5rqTBDkTz apc2wyDTAhk51EUXhtHhooPSv2P6mqRmqKVdQhkBE3LNhTwyzdy9spE4xGJQeGOEc/4x Rxxw== 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=stVlKjyO4FM1PLWl+alUt+TVVCi4zJ9UBg3ub/hbBOI=; b=IlEoGgbml4iTojVBY69SQbXSFXgUxSwB4UKJb1/kVOoUHBejAVFfxUe6SJs/PPRq1e sYLRDdiLpXjSp5Pe3l1fUC0Z/XQp7+appG1d7oKh8wUoHLtYZcmFU25BUTvz29amUYsa sl2QqmhjvlTl92KNDIt5qRZqyeRvTHdwK4rfKG6aAO2G+9hvFrJKfHbHfybf8iz7ZiSq c4Gd/v247OvrKaNRshMKz5p+x8Qizdup/7Hueoawdx1PQtA9qENIiNpuqwtxVdUKB2Tj eNTdaTiUkPzMWviulvUGi1E04gQXcyFfRMVFgtdt9NzHExf6Vt96qDIGchYPVjWSv1Gj Ysnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=amKFnfPR; 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 s32si23885295ybe.62.2020.06.25.20.48.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 25 Jun 2020 20:48:10 -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=amKFnfPR; 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]:38658 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jofLV-0003JB-IR for patch@linaro.org; Thu, 25 Jun 2020 23:48:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42604) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jof6L-0000iY-Tb for qemu-devel@nongnu.org; Thu, 25 Jun 2020 23:32:29 -0400 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]:41455) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jof6K-000211-Cr for qemu-devel@nongnu.org; Thu, 25 Jun 2020 23:32:29 -0400 Received: by mail-pl1-x642.google.com with SMTP id f2so3750927plr.8 for ; Thu, 25 Jun 2020 20:32:27 -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=stVlKjyO4FM1PLWl+alUt+TVVCi4zJ9UBg3ub/hbBOI=; b=amKFnfPR+Lve+/3UZ9LS5oxmM1nPGn8UoUZFIWtDJeQAXHMylui6RcKccZiM7PjDiz SyRu9hBrXzkOgBlTbvrqToucH1gImZ1RCOBFadwxtqCmg+s1DXqwgjLhnTD2HNKlyXNg WpKtp/gz0BgLclxMRfVVIS0Ia5HZ/RAF6tXDZD3KtEel9rJwQOZRK/5q+LqF1kBeuFUn 0Jtkc2JCAMSwgqDLVDUZaSB7QNyZ6g0c4KyUexMaIHr7GyWXlL/zPrXOk8AaC6+uWvTH XnPMbjFnMRKuII4B/sp3By/L8PODenxADRCg2YJh/dpAqOt8XKr0X7owhxPSjr3A52DG AULw== 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=stVlKjyO4FM1PLWl+alUt+TVVCi4zJ9UBg3ub/hbBOI=; b=OYD9jEYdLVeiOB4XHcrERlbaMLkgCOKFUfea4CYUdP94w/eSCK3sbU3gW2ZKpmxfeB 2Yo6Hi29h3DOaJ2+upkktbCtbtwPJikYKRVTp9pdyyLQpe7YkwBEqSCPGk3cVpYjrKak h6Oc5FianJ0gB8L3Gudu+7GXzhp3RKwfYh6uIIFDAEWIfuHdxg2I9oY/tS6Yhh0m41hj MDRlAJo3DTTzOZ7CMsBlOgyuBwvtRkhAu+p4v/n35IWC1EoG9+/BB9UZOwTrT4nqiHic EnGACWra08Pk+oClychFlTnAgATQ+W8EERrJvqLA+DS2zl+lmHUHaNP+nSAhCc7VYXTa /PXw== X-Gm-Message-State: AOAM532kf09RDMqBJvWQ+lOAqwavdXx16C8gI+yF1kEYMWqTsB+O9sQ+ 26m9IxOafeZMizdm6OitpNLURswI2Hc= X-Received: by 2002:a17:902:7008:: with SMTP id y8mr920357plk.84.1593142346731; Thu, 25 Jun 2020 20:32:26 -0700 (PDT) Received: from localhost.localdomain (174-21-143-238.tukw.qwest.net. [174.21.143.238]) by smtp.gmail.com with ESMTPSA id y27sm1605256pgc.56.2020.06.25.20.32.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jun 2020 20:32:26 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v9 30/46] target/arm: Use mte_check1 for sve LD1R Date: Thu, 25 Jun 2020 20:31:28 -0700 Message-Id: <20200626033144.790098-31-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200626033144.790098-1-richard.henderson@linaro.org> References: <20200626033144.790098-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::642; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x642.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_HELO_NONE=0.001, SPF_PASS=-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, david.spickett@linaro.org, steplong@quicinc.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) -- 2.25.1 diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 4a613ca689..4fa521989d 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve.c @@ -4892,7 +4892,7 @@ static bool trans_LD1R_zpri(DisasContext *s, arg_rpri_load *a) 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 the guarding predicate has no bits set, no load occurs. */ if (psz <= 8) { @@ -4915,7 +4915,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. */