Message ID | 20201208180118.157911-10-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp3911190jai; Tue, 8 Dec 2020 10:07:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJzsCX02WfDf0UcCBY7shBm3qSywOecYb20k6FID1H0+7P21YM7iERNl51fle0BEs0PNSWuj X-Received: by 2002:a25:16c4:: with SMTP id 187mr29351964ybw.39.1607450866615; Tue, 08 Dec 2020 10:07:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607450866; cv=none; d=google.com; s=arc-20160816; b=DKgX+vQ1J/Z9B3EIBL4Rm3hakXwZ50AzXqR7CEwMkV4bJAcHk+7eThQbFSzKX7LH5G SDbtJSydLPQzgDIwaYd8Wa4vLaTukpoHzt2Yf1oZuvdRCOenLfnK/b10tpnCgk5fOZgz dgC7rXPrM4JhcQykM0itTs/vKkL5imS7yNbmkrlYKQPA20tLaAggSdN4ucfOvvSxKZ3O tp3FebYRnHIaC0ari1Sm/qJu6QcKa8NcblHQIWNQsPZyjrMzQ6I6An9S3PRVH+k5QjVu 1QaHyebGCKhAQU8arMHGhDEZ5SmM5Vce+1qZBqd5X3ARcjhJ+54vkjNM2tj5w9tWT3Rg Nq4Q== 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=eOhAHCW00JObSCY/rSv+9NXC22vyXoa7uj8AYdXLfgI=; b=d3q2wOm07WWDbDPDBguuQ+r/43NxSqzhrx6nlWCUvwTxAJLubljG40eE5twEOdZZB7 i140GBWVQR0JlfInc2QO12SqIeGqu4B4VOBbO5t85rrFdjhmPMDOYTDGBO7AnRv+jmT4 vPVN1XVnklslkKoI5cDXIiAQJk4XXoj6riUyOz0PO8d7YmebXBz6FTZQ+GyRcusuqSb1 xUd+Bra/1cU/0/wJwRxjHVBRM0tnXO4gurD07Ihx73Dgvs/a0y0u1upT9LfgO7yo9MtL Ym947iqUA5q22P11CHpTp94QTsKOtlY+Y9RZV4udpSr16rzxPV43LFL33XloiYOFmFI2 Q6fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=qM3Bi5GK; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id o72si14823695ybg.361.2020.12.08.10.07.46 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 08 Dec 2020 10:07:46 -0800 (PST) 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=qM3Bi5GK; 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]:39462 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1kmhOs-0003X5-1D for patch@linaro.org; Tue, 08 Dec 2020 13:07:46 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:56936) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1kmhIy-0007de-OU for qemu-devel@nongnu.org; Tue, 08 Dec 2020 13:01:41 -0500 Received: from mail-oi1-x242.google.com ([2607:f8b0:4864:20::242]:42697) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1kmhIv-0006MY-UT for qemu-devel@nongnu.org; Tue, 08 Dec 2020 13:01:40 -0500 Received: by mail-oi1-x242.google.com with SMTP id l200so20280908oig.9 for <qemu-devel@nongnu.org>; Tue, 08 Dec 2020 10:01:37 -0800 (PST) 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=eOhAHCW00JObSCY/rSv+9NXC22vyXoa7uj8AYdXLfgI=; b=qM3Bi5GKQf9muZHpSYP/1xwnGfbBGA4DjdVfG5jIVRKTojhuiNR+v36xp+EdI+wkFG 47iowSrWTFk6HVrdNKZjWex21cM7pe2by9ZLMDZ4ahtvirPGqEFbkcoLmsWQBvxAVbLW FXu1kl0//TX+ZeBOjgnrjW/jKUFghvF+XM76fY9BE9UwWZeBKal5QVwTocX0nFtMh743 Ltxa7m4uUaTTk/ba4RxmezAFuvC8mCAj82OZfBP06VT2BAX3WUzgBYqVFJCjXaVRwuLS Nl4685FsseB1Pi+k7CLLGB9ggtHkq/MtfS2fEb+kldyPmqmVW4SLZvqDDXM/fHVZtt/0 xbPA== 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=eOhAHCW00JObSCY/rSv+9NXC22vyXoa7uj8AYdXLfgI=; b=Rfpi8oCRDFMJNxQO1vFpXTtOo6Q9Y9VzEUPLy5+PXwc0/Mo9JOj2NJoLx+4u03TWAc nVpurf5+RDQdno7/o1kuAnFVNtDHa7PN4HF3w4f/8aeFZRllaiHsuRobwir3VA1EfI7i yn5dI9/peljlnjZtPkmivGAlaeAHyGWwijgERsc+DweI/tF3csm6caQtMu8kVyNn51fQ 3nBO8nzn64KXdGGQ7DWvgPcLvl2YOr6E3kaC68IhmWjqrY3ezd4y4D0n0+d5cwVI3Vex utP5o+sW6g5tlVu0n/59O2WX416K0tpX3U9nnK9Xi0f7TBOzMZZrut3gxBbFvRrSseUY C9hw== X-Gm-Message-State: AOAM530UeacyUkWRl24zNYMn+pAnqWRf3qZj9LzXSSyA/42DMRNf6vRc teWf46qLit+hWCP35GM8JlSPOJP3D8ABmS80 X-Received: by 2002:aca:4989:: with SMTP id w131mr3621219oia.83.1607450496633; Tue, 08 Dec 2020 10:01:36 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-144.totalplay.net. [187.189.51.144]) by smtp.gmail.com with ESMTPSA id k20sm3886805oig.35.2020.12.08.10.01.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Dec 2020 10:01:36 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Subject: [PATCH v2 09/24] target/arm: Enforce alignment for LDM/STM Date: Tue, 8 Dec 2020 12:01:03 -0600 Message-Id: <20201208180118.157911-10-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201208180118.157911-1-richard.henderson@linaro.org> References: <20201208180118.157911-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::242; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x242.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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: peter.maydell@linaro.org, qemu-arm@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
target/arm: enforce alignment
|
expand
|
On Tue, 8 Dec 2020 at 18:01, Richard Henderson <richard.henderson@linaro.org> wrote: > > Signed-off-by: Richard Henderson <richard.henderson@linaro.org> > --- > target/arm/translate.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Peter Maydell <peter.maydell@linaro.org> thanks -- PMM
diff --git a/target/arm/translate.c b/target/arm/translate.c index 1bfa209884..6c76bc521d 100644 --- a/target/arm/translate.c +++ b/target/arm/translate.c @@ -7824,7 +7824,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. */ @@ -7899,7 +7899,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);
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- target/arm/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.25.1