From patchwork Fri Apr 16 18:59:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 422569 Delivered-To: patch@linaro.org Received: by 2002:a02:6a6f:0:0:0:0:0 with SMTP id m47csp653158jaf; Fri, 16 Apr 2021 12:10:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+3bm0/OuS4m7bAjcjem5LxazNyBbJSl1CnCSz54ucfIzqfeeC49te8s6bUA6XpAJzk8Wd X-Received: by 2002:a9d:1b62:: with SMTP id l89mr4991361otl.307.1618600250052; Fri, 16 Apr 2021 12:10:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618600250; cv=none; d=google.com; s=arc-20160816; b=M66sTFUG4kCVk3+O+Qp5sORWJthWzezxMIuq3sH99s27Tk63yRFIZ0r0MT18TKo5IL PW4VXvauxZP9IVw7EjB7hcC8f7V5KTaJvW39p0NNxFv7uWeuIVJm9S8rut4D+STzTcXt /ELG1pNlaBtUWF21G3SXh72EZqJaOIKqsAjr5abZuAqmeGg6pqR1uOP3eUg2jDP3hqqW I2veZkBigmITElyOphWfR/X9mtDwluQ40ikFPEthtw5GLDakvVssTI7yk/1x97T92CRH AR/vpnCE1hgNzjCU/twZ2m6r6UF4lazMvfnGGpinlCeYSYmgKOLlp5k2ANCAqzERuQDw qjNw== 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=I2U8YEM62/D08WuqUDIDv71u1YA11N1lnaYze760LqI=; b=d1pnUl6AslvjgMb3kBO4KG9lt7+8h4gSCe98ANcAlE4moMADhn6n3kFadWX+zFL0ki hFAT3WrKKq99COcFhtYikSJ6Ip7vchiPglJrxIpm5Y4Ig0i4c2SSTvkgbivFfrsBgQ/Y uTUWpFfHJ3sst0npqxhsuLou/cFMLRUfkeykR0Jaq1ITP5emTZ01sQtTUVLOJ9DtQFR7 mMDe6taBOAzHhig6imseFDRok10gmglOC95JUbKeqcaE/P9YmdQ2wlbQhd8D2nXEesrn G7Jv/AZ3R6nG6H6qeL1rC5ifXYw+aDpW2B3xLgfYJq4gX3wUCKA2ILb63GInESPJFx1G uLEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=V+77bUFw; 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 y10si5872637otq.318.2021.04.16.12.10.49 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Apr 2021 12:10:50 -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=V+77bUFw; 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]:58816 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXTrd-0006Ls-Bw for patch@linaro.org; Fri, 16 Apr 2021 15:10:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50354) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lXThl-0003nr-04 for qemu-devel@nongnu.org; Fri, 16 Apr 2021 15:00:37 -0400 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]:38532) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lXThU-0004P1-G7 for qemu-devel@nongnu.org; Fri, 16 Apr 2021 15:00:36 -0400 Received: by mail-pj1-x102b.google.com with SMTP id k23-20020a17090a5917b02901043e35ad4aso16901393pji.3 for ; Fri, 16 Apr 2021 12:00:19 -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=I2U8YEM62/D08WuqUDIDv71u1YA11N1lnaYze760LqI=; b=V+77bUFwuTA+ecu4Ft7TtYrNKuDVCGQ9KVIHBWbAbLb0nImCFggps2RiC9mgXnn0sw SoUdtzj0070FnvTHMaTjYIZ/hwGy9KXCBGnc9sGt+kjYMpwrPaUh2TL0Ehz6MuU6hPO1 gk2wnQZVhxg+uuAMtgMFY/9Z/KO4ZOcNgfDyOESsM4L+isXRvJbcIrHU2Qw2kHaHyF4o knQBEx8Th3r/Nj2RwyXTIBeISJqYtyIoxcyWfwfn5WQNqC1RGW7b0DQj150K09DeLFW0 pk9KK+p88BJHjXMAN0od0eQ3GoYOn4sGFEef2COSWoYviBUejgIGuXSyhhLX1C8AmlaX BISQ== 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=I2U8YEM62/D08WuqUDIDv71u1YA11N1lnaYze760LqI=; b=drUNFeq1LieAjK0m4oVOyYItScyhHvrfPcGoMz1OtK6UxLEOfeCd6P+LExMne7zplk Kf+r0FIFGleG69k42qkXtGXG51c5+5CqP7V1yKsFeSxO++jFMPgJva26VYsknwpm3rAx le684so+ejQWRAZailiPmdOSPC32cNITxvLarMLMx+Nrj8ErdJ61oSpGrs4ThQkinqfK CM2eoEvogYkx8XjIF7gNunkVz5OcFq/Mt2mAMnEh4hnYoANydPVN8yD4e0ntb76UypgA 8xaUtVluEKH46zRMVvlnApx3e0/ySGonOdL3GOJxV7lBuZ9DDbFYILrNZh3XuwHzi9L1 SN8A== X-Gm-Message-State: AOAM531NBndbAXvvnsdixwdIkvOe/FUMjPTWhNvu1HvJN2//10N6AKhD CNAZGFlKLFtXr7dnX95VtF4kGv4oK8pQ2A== X-Received: by 2002:a17:90a:d983:: with SMTP id d3mr3455339pjv.99.1618599618727; Fri, 16 Apr 2021 12:00:18 -0700 (PDT) Received: from localhost.localdomain ([71.212.131.83]) by smtp.gmail.com with ESMTPSA id d7sm1988337pfv.197.2021.04.16.12.00.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Apr 2021 12:00:18 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v4 18/30] target/arm: Enforce alignment for SRS Date: Fri, 16 Apr 2021 11:59:47 -0700 Message-Id: <20210416185959.1520974-19-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210416185959.1520974-1-richard.henderson@linaro.org> References: <20210416185959.1520974-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::102b; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102b.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=ham 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 6d2339ebad..c2970521c0 100644 --- a/target/arm/translate.c +++ b/target/arm/translate.c @@ -5200,11 +5200,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) {