From patchwork Mon Apr 19 20:22:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 424039 Delivered-To: patch@linaro.org Received: by 2002:a02:6a6f:0:0:0:0:0 with SMTP id m47csp3044423jaf; Mon, 19 Apr 2021 13:43:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOJ79rTXByOXHzzIJzCnX+Zv4LIV2ncbgsacDJIDQ33hkBVMC0qtWzg4dMdj0gls/vPkM7 X-Received: by 2002:a6b:ce12:: with SMTP id p18mr16244283iob.199.1618864986835; Mon, 19 Apr 2021 13:43:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618864986; cv=none; d=google.com; s=arc-20160816; b=N4KiLFzV0+huLCshooK2ZJj916Kx4u9azf5cGSd0QetBwpTc00Sez+BQOVp46dOAdH WryM6ZM56x/tqvPwB9JhjBnwFwMwDMebxi13YC6RH4hzA7/dl+/Ls+0pN5jy3e7T9iFD ZU4KF05LsD0C2MTfR+c9QUgiZH8aH8L+QPbyuKJEOeveY9K5+tRnar9azWxPw6mtNDSo mbnLeQ1XPVPzJlUp+QhvwAgqwhr4S9gkeoRUl4CL6d8LUjccqqJr3Qb+H3iotsmzERnq nWyEd+d2PQ3KsLRVxP0gIHFXSd7NdgDlk0Sk728pfOTjqtPPzICUGWDk5P78pFjFs2xV J4AA== 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=ap4BHmXvGirFCckX758uUzRa4tB4zIAAMsUnY+UVng4=; b=JzxZnWnfzBU88P7M9A/1BGp9Q4DHIiSAJPSbN+BJAUpj6nMd4xfSpD0zNMNfSBms+1 8gae5u6c+lE0rf4OeFJzxOlO5q4bbKKei/Msqxy/Yc4jsY8R3L0ASVNPSwmm0JmKmC6w a3/NDGBaG8Oddxevwn2jfYGHjo+Qvpr7OBtZBa+wiz8VH2aArAUGtEsNJpi+W0wEHPqX XaYs9yxuS0cWQonex8hd4TVLCyoRAfiUGvdTDHdrGkrxNCWx83uTg9a5PqFUEcJte3+u j0bH9J5zMIw6ftt934IddNTAACqpfx16bCAyyii/uheWWWPkc8+eEhBPvCznNRmKO21e rI6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=C3w8o6Ss; 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 s1si14704610iob.72.2021.04.19.13.43.06 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Apr 2021 13:43:06 -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=C3w8o6Ss; 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]:44064 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYaja-0002fA-8z for patch@linaro.org; Mon, 19 Apr 2021 16:43:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34044) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYaQg-0007Yp-Hc for qemu-devel@nongnu.org; Mon, 19 Apr 2021 16:23:34 -0400 Received: from mail-qt1-x82a.google.com ([2607:f8b0:4864:20::82a]:45776) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lYaQe-0002d7-8U for qemu-devel@nongnu.org; Mon, 19 Apr 2021 16:23:34 -0400 Received: by mail-qt1-x82a.google.com with SMTP id u8so27065834qtq.12 for ; Mon, 19 Apr 2021 13:23:31 -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=ap4BHmXvGirFCckX758uUzRa4tB4zIAAMsUnY+UVng4=; b=C3w8o6SschaGL1FrtssR1xdjzcoLDMqQPvUu5ikYj1WcFiHnRE62WxamlkynhFWF1k +0QXuF/92Jw3Cauid35LSpLGcaSACO03V6va25cYhywvqGhDAIkd8r81OybpFf6DvpDH CmnpO3IXxJnQBfSuhaSETQvZ2KvowlFfBCor09fJuZMm862+pfZYSXHPu2DMhuoTN5k5 KShomKY4BVxbbe+Kdt8UMHzjll/FUnYRTSPgpLvlntm6g1NZfTAtDfGvF2cgMIe3Ec96 DqdUqJ0BNjodNEwP3F9FCjOwEZe9jAXXF0eBkRFDTDkQojtExW67QQ/qvI/OJJ759muT ydyw== 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=ap4BHmXvGirFCckX758uUzRa4tB4zIAAMsUnY+UVng4=; b=shIj//X41DwELd7WPHomG8rsI8SMAXwX9NSJUrRXkWDNEFjKvBbFm9K0ZawgzHJgF9 B2YeLmv1bVtzY5671SjNxAgas/SYzYX+5Cp7LKz4mDzae11dkEgk6vLjgJRjHkGYyCno aRWNVcZOeMvH0C/ayfMeY1spnZD82ZZU2ldR7/M4Wn/t+a85bD1N1U3ZduYKQjWTnxr1 gsK9sgZWYGgNXNLyv70R72q3KAug19GnLERnnl44guW7N8SOHPAvajFuTy/v/ju42XvA KQTnQW9imqyo7S4G7yRFvKuFRrvQCf/7l4gF/lLkLHusXH1Ve+vnhRQm58mPo4xGLcAV ewzg== X-Gm-Message-State: AOAM530qtgH99cHfNckaMspkOZfz0CNN9ArJt69Cflm8sG7w3VoxogG4 NFxMr7nSx2XvbBB18+w5VY4l1jqT3AmH0EJK X-Received: by 2002:ac8:7d87:: with SMTP id c7mr13125355qtd.281.1618863811462; Mon, 19 Apr 2021 13:23:31 -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.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Apr 2021 13:23:31 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v5 17/31] target/arm: Enforce alignment for LDM/STM Date: Mon, 19 Apr 2021 13:22:43 -0700 Message-Id: <20210419202257.161730-18-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::82a; envelope-from=richard.henderson@linaro.org; helo=mail-qt1-x82a.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.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.25.1 diff --git a/target/arm/translate.c b/target/arm/translate.c index 29fbbb84b2..f58ac4f018 100644 --- a/target/arm/translate.c +++ b/target/arm/translate.c @@ -7868,7 +7868,7 @@ static bool op_stm(DisasContext *s, arg_ldst_block *a, int min_n) } else { tmp = load_reg(s, i); } - gen_aa32_st32(s, tmp, addr, mem_idx); + gen_aa32_st_i32(s, tmp, addr, mem_idx, MO_UL | MO_ALIGN); tcg_temp_free_i32(tmp); /* No need to add after the last transfer. */ @@ -7943,7 +7943,7 @@ static bool do_ldm(DisasContext *s, arg_ldst_block *a, int min_n) } tmp = tcg_temp_new_i32(); - gen_aa32_ld32u(s, tmp, addr, mem_idx); + gen_aa32_ld_i32(s, tmp, addr, mem_idx, MO_UL | MO_ALIGN); if (user) { tmp2 = tcg_const_i32(i); gen_helper_set_user_reg(cpu_env, tmp2, tmp);