Message ID | 20201125040642.2339476-4-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp123454ilb; Tue, 24 Nov 2020 20:11:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJyLvliMhBewUORmld3r8xlL+tw3OMWTVCbltHYZd7CV4L8HO2iiYOVYpoZVNH7tXdgvpC/v X-Received: by 2002:a25:c60a:: with SMTP id k10mr1650503ybf.113.1606277464585; Tue, 24 Nov 2020 20:11:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606277464; cv=none; d=google.com; s=arc-20160816; b=RSpFK3fsdn0wS1r65tV8rXfL3ChBipN7cO1RFX6qFB8rhVYklMFWSM+Srg33W4rgBK +pH4rkN2+QyZ6BnlN0ilZZx3ZrGIPaZXLwEik+647v0dwKMV1ys7idIcuYZRoOYRCrS+ zxPjiGVI2JSiRF9xfkGzqopNz0B6Y3W5flgjEJcQ3yHlm5CLXILU+UgCrKsnUgW9TbC7 hMQYRl4Nog8jBKZ2bsQyw0clqRAHkhR4V8STgVNNnvYSlzcQ8YrVGFqg0hw2l6EEWZG7 dqVOu5XZlPa+pfHgnzHC/caA0RIQ0ypYrk5F+tN9CaEA1vVoOZTjcLOBofjrhu5JZZdI +WpA== 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=CeRrpuz8AyToTR5rNqSx2nYuSkShEOKR3hSvhU0d5PE=; b=CqjM27Z723pG9S2uGvDjMmGcey2oPmbz1Cn4M6n4XKZpb5HtW0rmGd7QbWZo1NxRPR p/9bvBLY/kn5VxDT4X7MndM1qPJ3fR+rmcNNRVoUuPViEb9IlusPICriLiA2YLWhDXhY rYD5JJzN7zHOZZUwqWjaSV6gzYqxLKcZSxWwvr4NEFHJfnKeqCRwFlpspW5/JIPA/EtC lDPXIwUV7bP5NxrGUhoZy3hSZoEu3TvuUDpEMJe8PFWvtm1814Gs2MLkp4CVmPrNTXJ/ 9wjxmy/rFYkY+iUewJoKwry5kFXUYobIyhbiHGn7MtkXj0mWCgDQOucgBVmypPX19jdk D8xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="acPV/Ah4"; 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=pass (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 l205si1061980ybl.60.2020.11.24.20.11.04 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 24 Nov 2020 20:11:04 -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=pass header.i=@linaro.org header.s=google header.b="acPV/Ah4"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:57240 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 1khm91-0001fz-W0 for patch@linaro.org; Tue, 24 Nov 2020 23:11:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36140) 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 1khm4z-0004mM-Em for qemu-devel@nongnu.org; Tue, 24 Nov 2020 23:06:53 -0500 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]:39952) 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 1khm4w-000626-Jm for qemu-devel@nongnu.org; Tue, 24 Nov 2020 23:06:53 -0500 Received: by mail-pg1-x544.google.com with SMTP id t37so1186462pga.7 for <qemu-devel@nongnu.org>; Tue, 24 Nov 2020 20:06:50 -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=CeRrpuz8AyToTR5rNqSx2nYuSkShEOKR3hSvhU0d5PE=; b=acPV/Ah429b3YcECViVoxv+ryYJKhc4SL5NQI6ZIKrNgoT0izAyAnTe9Z2/k1s1fsD 1I80CcVYJmvnok+Rmxy5CfieRDTamaUC4n6eKvBQgKYw1hXzwNG/J1hP8sKv5ccsS1A8 iwB+rN4+lSHA8+vq9pvqAI75Nllva5kV+zI66MiKDwfH4U7a6vIR6fHE67cOjMzuYLe7 U76WjTTF/bVBvtWFwuSwj/TCCrGUxcoHKyRXU66TfVFnLVCx+ZYZ+x8drKtGdrTGbv/Y gXVRcZShWsWcqkes0oZoOcL3p30KJeTP/EYcotZpWJK4Kc7id5vZAN0O2jWY9OMOHey0 V8bA== 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=CeRrpuz8AyToTR5rNqSx2nYuSkShEOKR3hSvhU0d5PE=; b=AEBSIdU80xIiuPU/fKM+gB91jgbNBSOA6BbXRH9pIBbLdRZdQFVczK21GJwIzIZROJ 9XbuLTHmVgT/Z6HniiFifHqx4HZRYvLo/rx/lFrR7WkrBfn23WVg6Q8VdaHUTWYk3dXj H2vXRvExKJrnvM7txwRHOrj0vfjUaGeQpBFmyKPQglPK3nEvMkMaFWRLBXnII9m+JZOC NMDjFjJpwhED+lZPiguB8cBRFauAmuyxEKEq/kJZWvMFSNrw4Nia2ZtdHHhQIbhA5rEa gymTm3BG9n/gQG3gXcpZwvLBVJQvnps5SDi6VZ22G6scJ4WClkz9O5dyGU/jztliPuh1 A6zA== X-Gm-Message-State: AOAM530fjk4ztQWgHTtcjAxFpp7EDHCpPpracL94JUusnDszbGK+WSS7 /M6ks5ft0AcxBtOzb5OFgSOxPf6x6o6/0A== X-Received: by 2002:a17:90a:5d0e:: with SMTP id s14mr1843248pji.53.1606277209110; Tue, 24 Nov 2020 20:06:49 -0800 (PST) Received: from localhost.localdomain ([71.212.141.89]) by smtp.gmail.com with ESMTPSA id f7sm447806pfe.30.2020.11.24.20.06.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2020 20:06:48 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Subject: [PATCH 03/11] target/arm: Enforce alignment for LDM/STM Date: Tue, 24 Nov 2020 20:06:34 -0800 Message-Id: <20201125040642.2339476-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201125040642.2339476-1-richard.henderson@linaro.org> References: <20201125040642.2339476-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::544; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x544.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: 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
|
diff --git a/target/arm/translate.c b/target/arm/translate.c index 73b3d8cbbf..fe4400fa6c 100644 --- a/target/arm/translate.c +++ b/target/arm/translate.c @@ -7814,7 +7814,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 | s->be_data); tcg_temp_free_i32(tmp); /* No need to add after the last transfer. */ @@ -7889,7 +7889,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 | s->be_data); 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