From patchwork Mon Jan 11 19:00:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 360533 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp3137590jai; Mon, 11 Jan 2021 11:17:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJyA6HzheM+ud4Q2u1A+kJfeyHk7SrTyontHWMe6vBBBLZ/Uoc50Gy0AztOqOdZiwY1L3+FQ X-Received: by 2002:a25:3812:: with SMTP id f18mr1753388yba.327.1610392630844; Mon, 11 Jan 2021 11:17:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610392630; cv=none; d=google.com; s=arc-20160816; b=EOtc5AbG6Pu6C0ZsocHVH2LZZuv4SbMHLw5GPvBB36/6kyrHzlRnKJP8eVqbk2pQgT XZuRaxg2L5eZ+DmLt7IzwZM2jMgEnPCKsJZ3C/eZ7yvpvPe7A+kwx3EsbR14XERJpErc rcMimrWBUqMLbpQj0nTwuXjs4RvyRT+2SWJyiT7hZSeIAzD4Kb2dlgV/0K+6wkYiJoPc QyHvI1JYlN8ZgI8mniduIvEvAwJBaXTA5+MGz7mdyeiAFNbNSoHK5CIbtF6O8znjv0hZ Z3bhJ2vdvlkaNXV0moWQCqjdnmFaJbVWufIfReL/hxLGsaULOAJzuw4D8TitVAKj7x3l zn4Q== 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=4n1qdCl4BSNX+je6zlGPHDmT7d0/KM39fnJLGgL3o+g=; b=p17wAw2nxsN9OhcD/UK/m9HGjMi/6f1HqLIueue/cySKZWcKaTBhv1UqtPCboSzV4p QXe+MTgZA3JyJchaIJkyK+SL8kNUgGFgwqfZ5Qs8mvlfr5fhuKMxBqcjS4JqhH4vZFXC 097aomwc1MAJ93F9jm/RhzBR6HSEUVEUtCZVgOQtCQA9nSDK5fm0Zo1av25F+suLrG6Q pM0PGXcvHTqi6omfJ6FDd1P1I5MUVMmf3Yl9jZUbEZ0Th+F30hbLh9RTD12fmqXm9Ile bXIDIqfyAmfb/q49p5Ai5zQeisBiZZwcC/oFzE/gIsY54dD41rja1jf1Gdo0qwKg+RY9 mtwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=vZ52RXzv; 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 a9si625755ybc.91.2021.01.11.11.17.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 11 Jan 2021 11:17:10 -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=vZ52RXzv; 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]:50356 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kz2gg-0002Mo-4t for patch@linaro.org; Mon, 11 Jan 2021 14:17:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47382) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kz2Rx-0006AS-K4 for qemu-devel@nongnu.org; Mon, 11 Jan 2021 14:01:57 -0500 Received: from mail-pj1-x1031.google.com ([2607:f8b0:4864:20::1031]:52872) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kz2Rk-0006SV-3I for qemu-devel@nongnu.org; Mon, 11 Jan 2021 14:01:57 -0500 Received: by mail-pj1-x1031.google.com with SMTP id v1so99231pjr.2 for ; Mon, 11 Jan 2021 11:01:43 -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=4n1qdCl4BSNX+je6zlGPHDmT7d0/KM39fnJLGgL3o+g=; b=vZ52RXzvCu8qZKS3gNUC0ZhUVPiUGm1kQvwfR0adFZP12XhQ8sF4v2bX24OhwJsaa9 vMouhEHvs8Dzu1ysfuOU+iLwetQ43Z1Jmg75i+YlFsABxntnV6xabFYxSg+zCJjtAe6E IYnhx3jkXldfZ9YNMbmwF15mOGFgE7G0aZJF/81yEQZX66pu2E5geBMooG3fWfagu+WU cmqcobp+P8w5u4N9dW1QSLdXG2eWV2mgs+FIY98KfAng3x3iCU70IgVymygS7EG9x36l jvUr6+ElJy3FlfLqJmv+c+Fq99wF5cumyGj8ZtotpbDeQoZ3T7dWtJpiT7EIifk4nLSO 8I2g== 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=4n1qdCl4BSNX+je6zlGPHDmT7d0/KM39fnJLGgL3o+g=; b=hWInroPTbsem0C4mld6uuJSsoK+eRrFmTzmTuKzZ+RUo9Lz0lrV2r9xu8+xykxIodp Jd5KOAVesoWS02b3JpUeqL3Y07dtt6JujAP1SW5vFguwMedVHoX08N3nCRayRQErgn+c 0unuhXTvp1Psx26iUWB+2mni5aVtzSUGJitKUExxOzJUO9JtIJP62W9TimEiA1w8rc2J 0NEEF+0t2JKOB9T7a/q2nVKEGCYH5yGrnpWRjGN3hg+S+TKAwLBWGMBFFuCHq+MISn5Z i229XCaqTVUECjYieNE4MUKrO2o/1A5Y5qaiME81r2bUhvtC2Lkd/izy1NP7pEukmXzZ N4Gw== X-Gm-Message-State: AOAM53394tC1C0TIhoiMvmeFhScB1kQ0tBC+rTbFOuy8YakE+jIFvSAM +nu4Oz9UKIYKUk2PA1FAbNRz5GJwYQY+kQ== X-Received: by 2002:a17:90a:1057:: with SMTP id y23mr268737pjd.97.1610391702604; Mon, 11 Jan 2021 11:01:42 -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.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 11:01:42 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v3 15/30] target/arm: Enforce alignment for LDA/LDAH/STL/STLH Date: Mon, 11 Jan 2021 09:00:58 -1000 Message-Id: <20210111190113.303726-16-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::1031; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1031.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 9cc6a9f83d..ba68d4d7f4 100644 --- a/target/arm/translate.c +++ b/target/arm/translate.c @@ -6883,7 +6883,7 @@ static bool op_stl(DisasContext *s, arg_STL *a, MemOp mop) addr = load_reg(s, a->rn); tmp = load_reg(s, a->rt); tcg_gen_mb(TCG_MO_ALL | TCG_BAR_STRL); - gen_aa32_st_i32(s, tmp, addr, get_mem_index(s), mop); + gen_aa32_st_i32(s, tmp, addr, get_mem_index(s), mop | MO_ALIGN); disas_set_da_iss(s, mop, a->rt | ISSIsAcqRel | ISSIsWrite); tcg_temp_free_i32(tmp); @@ -7039,7 +7039,7 @@ static bool op_lda(DisasContext *s, arg_LDA *a, MemOp mop) addr = load_reg(s, a->rn); tmp = tcg_temp_new_i32(); - gen_aa32_ld_i32(s, tmp, addr, get_mem_index(s), mop); + gen_aa32_ld_i32(s, tmp, addr, get_mem_index(s), mop | MO_ALIGN); disas_set_da_iss(s, mop, a->rt | ISSIsAcqRel); tcg_temp_free_i32(addr);