From patchwork Mon Apr 19 20:22:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 424041 Delivered-To: patch@linaro.org Received: by 2002:a02:6a6f:0:0:0:0:0 with SMTP id m47csp3045503jaf; Mon, 19 Apr 2021 13:45:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEQqrzznjnBYPwVCp6B/4rMdrWUckCLh0MDrKNwHkRgnYlyyD9Zm8a5qUgXlXkXuO96cqr X-Received: by 2002:a05:6638:bcb:: with SMTP id g11mr4779705jad.144.1618865107443; Mon, 19 Apr 2021 13:45:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618865107; cv=none; d=google.com; s=arc-20160816; b=xJcvDYhPjmxwaSKuA6huwFr/H3Gh+kFXTFQtFnaZQhvsmPBe1tw1bTBcgIip6ixZ0y DV1HokdBrjFb6LR5sH7SEMTx5WP+1I8OueJjokdXxCSneGxH47YllBjT91zBfzOAf/Nr 395rGljAgCDmkCzD+p1dSUMOSh6Ik4fsRZ1onpFIjV5w1HbdM9x6VgvT3/y+bqslVBMP wIe0VixfVSzGRPa94FOQzLlH0sXnP9Czc/xpfL4Rg7XTVvucEBygwNC4+Y/gzLW8z6x0 y7ZydEOffvwmeFWb3QPOmsk0v1t6A2042TEUP8NBuXWLeNxUGH3/9lxQEjDfrTgUkY9C /slw== 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=KALA1eSooGUfBo7CGQXBooa38v23DHVbjR3um2cG8+w=; b=XAt5fnRO22ckY8PcsCwUOeeUV3dsNRgJ0YrwhzQ2mnXBrZFFQ95O7RAsfYXxyg7RT5 cupxRNWuar2D/CBiMGp8lB3eDmTaYDDA2Ay3d9l388Bp4BKKY3NTkPyGA4SOspGdVQaC ugK6DE48/OPrmcFki9ITXQAO0m56f/xauZKqhUcE1iVxBJE+1x+JxkxkOcqBXzL6VbKD PVBY1tSfWvnO4bUHCsAuAzM9mq0T9Tdu9AKbEwQOvZawlEZfs60DIvzHfJSdhgBfqH3s bBMdM1hzGqO6H5lU7ev03vAdYMA0S2wv3IgCQqOhnNehbHvwh8HVSBVmj7N7apnT5kNr vH8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=QlWb2VXD; 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 h2si14216855iow.79.2021.04.19.13.45.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Apr 2021 13:45:07 -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=QlWb2VXD; 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]:52234 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYalW-0005u6-R3 for patch@linaro.org; Mon, 19 Apr 2021 16:45:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34140) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYaQm-0007kS-41 for qemu-devel@nongnu.org; Mon, 19 Apr 2021 16:23:40 -0400 Received: from mail-qk1-x734.google.com ([2607:f8b0:4864:20::734]:35378) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lYaQj-0002gR-E6 for qemu-devel@nongnu.org; Mon, 19 Apr 2021 16:23:39 -0400 Received: by mail-qk1-x734.google.com with SMTP id h13so18507933qka.2 for ; Mon, 19 Apr 2021 13:23:37 -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=KALA1eSooGUfBo7CGQXBooa38v23DHVbjR3um2cG8+w=; b=QlWb2VXDM3mNobkMRUQa5D/bLNODCJp3ZWa8T0QbIgrlvjSPt6wEKS7MzyNeUmQl5L DBzG1kdDFl8v/rnMPSz1DXTIMM375cAOJQiAI39z5tzRhglAE+S699S4ePJdRexw6Y2P 2v9KhYqzcS8P1bupwgJHuctMUgCquw/6PoVebXOML3m2L2BBXKgGYZjAUz3NKKNLfbmx 9WYNGMSDZGZD+o0eUQgbeCDddd6Fs5Mn82+6UbDQl5r/dady4KPRTOBoFNxAV5+3pNWJ kOVyRONCHtLwuvapWoSqs5vX5nehx2dplZc+wSh+a3Y6UQJfucwkbJAHlhYrbEuNXIXS fsJA== 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=KALA1eSooGUfBo7CGQXBooa38v23DHVbjR3um2cG8+w=; b=jcRWBbABJHBAP4LmZ3gf2RrPt7t5J5R+YQ/1ysIxRFZsWPBAsbm/WBCfL0RScBT1yN JOHZYsSAlTOdCEbBJ62YrQgDidptuzxLvK6FMp0wn6xCqZgQP7X2spRp8nT/MfQ46h3i VZzuRKD5jFXsihjPp1Fd8/6GIBSZwvpsZMGaKrc3u8RvIgqSDMl+5cA/cgl8nm722nfs nHshNTEOJa1W1sE8GHZ4FvgqqzSh7bZ52ExJfXO0lNaWDn3w7rWO5c2lXOwMDSe48WfR H/Wx8LOG68j8IUCD+Xdzc781HLzlZMqCanHj29zdZcsTtMxcx67qrQHQ2qawx0WedMka aWyQ== X-Gm-Message-State: AOAM532Izz92viMWX/lWaWKqW+VXUbFlBntECZm+dYcKCXSK7FqVcqOt 6eCEKBD12c1rJqyESE7tkDIel3NChOI4Htuo X-Received: by 2002:a05:620a:386:: with SMTP id q6mr1949054qkm.438.1618863816539; Mon, 19 Apr 2021 13:23:36 -0700 (PDT) Received: from localhost.localdomain ([2607:fb90:80c7:aba4:3594:91a:8889:c77a]) by smtp.gmail.com with ESMTPSA id c23sm10007835qtm.46.2021.04.19.13.23.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Apr 2021 13:23:36 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v5 20/31] target/arm: Enforce alignment for VLDM/VSTM Date: Mon, 19 Apr 2021 13:22:46 -0700 Message-Id: <20210419202257.161730-21-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210419202257.161730-1-richard.henderson@linaro.org> References: <20210419202257.161730-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::734; envelope-from=richard.henderson@linaro.org; helo=mail-qk1-x734.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 autolearn=unavailable autolearn_force=no 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 , qemu-arm@nongnu.org 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-vfp.c.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.25.1 diff --git a/target/arm/translate-vfp.c.inc b/target/arm/translate-vfp.c.inc index 10766f210c..f50afb23e7 100644 --- a/target/arm/translate-vfp.c.inc +++ b/target/arm/translate-vfp.c.inc @@ -1503,12 +1503,12 @@ static bool trans_VLDM_VSTM_sp(DisasContext *s, arg_VLDM_VSTM_sp *a) for (i = 0; i < n; i++) { if (a->l) { /* load */ - gen_aa32_ld32u(s, tmp, addr, get_mem_index(s)); + gen_aa32_ld_i32(s, tmp, addr, get_mem_index(s), MO_UL | MO_ALIGN); vfp_store_reg32(tmp, a->vd + i); } else { /* store */ vfp_load_reg32(tmp, a->vd + i); - gen_aa32_st32(s, tmp, addr, get_mem_index(s)); + gen_aa32_st_i32(s, tmp, addr, get_mem_index(s), MO_UL | MO_ALIGN); } tcg_gen_addi_i32(addr, addr, offset); } @@ -1586,12 +1586,12 @@ static bool trans_VLDM_VSTM_dp(DisasContext *s, arg_VLDM_VSTM_dp *a) for (i = 0; i < n; i++) { if (a->l) { /* load */ - gen_aa32_ld64(s, tmp, addr, get_mem_index(s)); + gen_aa32_ld_i64(s, tmp, addr, get_mem_index(s), MO_Q | MO_ALIGN_4); vfp_store_reg64(tmp, a->vd + i); } else { /* store */ vfp_load_reg64(tmp, a->vd + i); - gen_aa32_st64(s, tmp, addr, get_mem_index(s)); + gen_aa32_st_i64(s, tmp, addr, get_mem_index(s), MO_Q | MO_ALIGN_4); } tcg_gen_addi_i32(addr, addr, offset); }