From patchwork Mon Jan 11 19:01:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 360583 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp2768889ejs; Mon, 11 Jan 2021 11:33:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJywuFO293ABxf/SjuFkZIymS+gAP9UbYs4okdtGaYElhFae2gSKW/wxRolkmn5Jr4W42rHT X-Received: by 2002:a25:83c6:: with SMTP id v6mr1851715ybm.24.1610393611762; Mon, 11 Jan 2021 11:33:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610393611; cv=none; d=google.com; s=arc-20160816; b=EbnaijYvui10Ayi0DZLjq01PDwxIboc5ErozgS63Mtf+EL7O1NfJHaWAb1cAUi8nR+ A2ebSZVTKVIh6Khiq46eV4dhR1AqSXA63muKexmNPlQ0Oc3yHE2dWB82bwvu7OSwiIPM qdSlWxoXo20QC50wSMAq8Oop+vnuTiK0VHcy1fZlEkYmCuMzSU3bm+WmcVx8oLnvDp2q Vf+Rz5MrPVDO13sjTxKiENvQiEa6Hw9Lt3oxMdc5oLzIIj8R/7J8X9+smI27A3FCZT4V /T67OdkSvexsKj+Fdh6vjMF3ZOZiRVmslbghl2LUgUZjkSL3usBjLDqydbHJKUkbkGQw /HSg== 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=+VZ34zw/gJ5eF9hiq6PjNGF/Zdf/LyRPrp4QbqxhsNY=; b=RpstaF0Y+T0+8rumSa06t4EvyQuLd6sQ7TnxFZtFV98qI+c4k1Y3DBdOnVvEMBkWJS Uaf7W/aaH51mnDHpKS00UlwBpHTdNDMOrC7c8C8x9i2o34nFfvf4wEmk0GdLo4Vur+T4 SPEPp7kDQEo5qkYu0RY6YVWZq4URlNAzNhK4RtHW/D1L9/Qn2MkdYIe3HSO+xPjzT3LQ eSudj6Pj6cgbcVfFupAC9FB8/IXJWYGnHGtyrZ5XWfBPDL9TqFjoTwH6/qWy5Ts6VQF+ AluX4cSEPH0vaQ+tEjAcxZC+6xL+kd6SLnI0q04MJh1/nkNTPF7aTlgUojODQrmQEnAS Nlgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=UTkxvt+q; 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 a1si636734ybs.185.2021.01.11.11.33.31 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 11 Jan 2021 11:33:31 -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=UTkxvt+q; 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]:58764 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kz2wU-000129-NC for patch@linaro.org; Mon, 11 Jan 2021 14:33:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47526) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kz2S2-0006KI-36 for qemu-devel@nongnu.org; Mon, 11 Jan 2021 14:02:02 -0500 Received: from mail-pj1-x1033.google.com ([2607:f8b0:4864:20::1033]:51272) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kz2Rw-0006TC-5F for qemu-devel@nongnu.org; Mon, 11 Jan 2021 14:02:01 -0500 Received: by mail-pj1-x1033.google.com with SMTP id y12so102966pji.1 for ; Mon, 11 Jan 2021 11:01:49 -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=+VZ34zw/gJ5eF9hiq6PjNGF/Zdf/LyRPrp4QbqxhsNY=; b=UTkxvt+qVNsEy8H580vKPZh1VXl1wdWywnr8powCEkGoe29AC2yEk1/q69xuBFW3GI bnh0eRwEWMGCOppsK5LDYWjMUwIpMR2v4ey9M4L8yD9VPTBYGd5UTC8C4iuZUrWNJFjK RkPfbJO9GoQsqU6QOIaTJdUAqYX5NAR/Aj6pbhOIiump9a1yAZXdFMHpwgqR+pKY0VrG nwR8ESLfRU2vNvSY964iAr7OfPtM4fbIEBelPnUplBSUHBiOj4onzlRwPhau2tZkm1bF YAUdrjV1C4JEo3hc++LZQm1fv1aQZWq7aAwPpGwuQHLkDazyss5C2fYb3sgNeXqmmRvt b8lw== 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=+VZ34zw/gJ5eF9hiq6PjNGF/Zdf/LyRPrp4QbqxhsNY=; b=GMKnazdKARi3jee6B9SNmsPeuBXta6kLxXm3gwW/esDUZB7UmfB33gWyWVrY1iNwE4 LAJwLb0gRvPGlE/fs9RMjewTquqx/PELAUNInEDCf6PbL8rl+uktUj1uRlL6TdZ072ZA mfz4U3E5y9l2AHYhrxRIbRp60nIHs+3FT4D5ziTIAaVFTD/iQopA2RdZoMUfugDbK9cW k55kRe7S1asqGlN344BQ1eqgBY6cYGbPrBGiacR1s+1cMM/yJnQIp8BrqC/4hUNLtTRD vuTJVCjQqjs86ZWbVyV7SE11Nd1Dw0SaTGUV/qjIj5vFr+NwWD9bHng/r7Urh9DTuaNj ngwQ== X-Gm-Message-State: AOAM530oi+cAynSuc0hkAoJ1X+epgBfJqMTGO79h4NIzfligTjiJBAIU UF/nnfZthjkmGmiujeuGL37UwO4RALSWRQ== X-Received: by 2002:a17:90a:eacf:: with SMTP id ev15mr309212pjb.174.1610391707934; Mon, 11 Jan 2021 11:01:47 -0800 (PST) Received: from localhost.localdomain (rrcs-173-197-107-21.west.biz.rr.com. [173.197.107.21]) by smtp.gmail.com with ESMTPSA id n195sm350395pfd.169.2021.01.11.11.01.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 11:01:47 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v3 18/30] target/arm: Enforce alignment for SRS Date: Mon, 11 Jan 2021 09:01:01 -1000 Message-Id: <20210111190113.303726-19-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210111190113.303726-1-richard.henderson@linaro.org> References: <20210111190113.303726-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1033; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1033.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@linaro.org, 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 a0d543ec1f..3057d102f2 100644 --- a/target/arm/translate.c +++ b/target/arm/translate.c @@ -5170,11 +5170,11 @@ static void gen_srs(DisasContext *s, } tcg_gen_addi_i32(addr, addr, offset); tmp = load_reg(s, 14); - 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_temp_free_i32(tmp); tmp = load_cpu_field(spsr); tcg_gen_addi_i32(addr, addr, 4); - 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_temp_free_i32(tmp); if (writeback) { switch (amode) {