From patchwork Tue Dec 8 18:01:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 339769 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp3913776jai; Tue, 8 Dec 2020 10:11:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJzowpzRYSSU+hkoqWczP+PR5dgOuSJm6Ay7G2MRb7BOvbW3pEok4QNhWA53sM7CK0WovyqW X-Received: by 2002:a25:cbd6:: with SMTP id b205mr32508459ybg.141.1607451063155; Tue, 08 Dec 2020 10:11:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607451063; cv=none; d=google.com; s=arc-20160816; b=jkGJvY+orWkHOKMe1p4qi+wPSt7fW9r11Kanixn5sH/UbFyhqDEpWZ5PqUHBCnhRe+ 3nSzjbpdctvSu7mHG5PeslJrGJk+TuQZHtCbQ9tCXsNbVTopemQC5Dvajady35sup2KF wme0cwUqqrNzlJ8EKq8NtYF0smhlrUSDqT3y34JkkNnm07c+emkhm9kqeaOaHa0CSbk9 hbsEkJWys9aAxlgRmDFCB58rVEbiolKkNkX4pBOv9T8SAxOzxpL4Va1S/hkCPdtKZ+0L ZefTDTQsxM9jje/6gg61IPlxcvwDkilrNXG4j8FIshlwzWkSn1tBg6XaLSkuChmylCJk 2vaQ== 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=4wWHkNccTdv/S+w/jY/CU0oAZ7KJ+t/SYRwBRPA0ahA=; b=pIbrNIzbL/2t4IgQEPsF98oDNHPUVRhdI5U26/nWZE7kHGNBEpSU74jR6MMU1g6qCC xV2etXyuzgHUOgJULQwvRAAv6KP4TF6dFC9bqTf/T3DQvqTVqZoMPu4WGaXSNYaRfasB agPjuHQK+UuqvLMkldVHbaFMcuAv5RJutNNo56/To3n8SY3KU17X3LBK6UxJGPO6Tr7W ApFT62kzlzW4EjS4xBSfGn2fAsu846OBO0wPY3npaApfnqKMerghZCT6ZT6uXSLV82uL lcMRx02AttkeMoOkofn7RRsh+IHZStwQL4jyepKRgBJIIy9LsoKUTeg/UTiA8jityjJq /vDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="FJXUmnv/"; 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 n65si7962494ybc.230.2020.12.08.10.11.03 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 08 Dec 2020 10:11:03 -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="FJXUmnv/"; 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]:48156 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kmhS2-00079i-KR for patch@linaro.org; Tue, 08 Dec 2020 13:11:02 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57012) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kmhJ3-0007kb-BN for qemu-devel@nongnu.org; Tue, 08 Dec 2020 13:01:45 -0500 Received: from mail-oi1-x241.google.com ([2607:f8b0:4864:20::241]:39242) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kmhJ0-0006Nu-Jf for qemu-devel@nongnu.org; Tue, 08 Dec 2020 13:01:44 -0500 Received: by mail-oi1-x241.google.com with SMTP id v85so9735592oia.6 for ; Tue, 08 Dec 2020 10:01:42 -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=4wWHkNccTdv/S+w/jY/CU0oAZ7KJ+t/SYRwBRPA0ahA=; b=FJXUmnv/vpFLt8D3EGc/yrvcDiLfmh7ShPZaSXToP2nwD0HBU/QGKkB5zRAn2cTbAC N4znxkv/t25/TWgem8OFBrJjuXOwCC6YnpQEoPxF6ucs5b1svnNoCJHZWb//YZEOciOA tW27kwzgHUxychf0rgW/5JrEtfBgk6gCjjguRqsk7GCVBglnteXBs7D/rMae+YBuwoRR 7fURS8kSyzYWrfk20GyK0RRyyA6c6a/qm1FTIgQSlQg6aaFKKqY4BKhESRfrXkltdGz0 FTdXmEZeXyoo7LgeNnq7a2PjiW5WOEQKyJ9JzTcRRKXgFtR3+HDvvYTiPZv3FvOSkUZT lQJA== 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=4wWHkNccTdv/S+w/jY/CU0oAZ7KJ+t/SYRwBRPA0ahA=; b=qEcrmOAaYGk1hCorG2z+uh5Lm/YTsBnM9QzYfdcnDPT/ausrdGj78O3EDzo5siZ1ly 7xedSSE+gaStJKO61/SvmzlLuNgc1PsAUPJWvMRVSo0FdX4ZKxhKKggiVw4+jywBv8i0 e2OTb9O5IWFPxBnzVvvGuZ7adwV4/hzLNipdriA6IAFK1ILdSUw6M4DsXigV1sBTHAMv zdcVcu/LiOB7GJUhDcdkGOaZZvNk+LCUbsYtyDEO3EOOJkcDHMN/NMBZqQ7oWPkjP9b5 bHuxYtt0qSuOu+cTOngmcDwhfigCMI6XG/Lj00wvLiWezkoEXwZzGG6LQecLqUvj1H5F sY/A== X-Gm-Message-State: AOAM532+SU3YlV6E5IIsmwSSBDGC/dGePMwmlF6pzyjO00wBo6RDLvr9 tDmEbqa1c9NvR2vwy3fZP+NLUXoCHtihi2d5 X-Received: by 2002:aca:e108:: with SMTP id y8mr3833006oig.60.1607450501230; Tue, 08 Dec 2020 10:01:41 -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.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Dec 2020 10:01:40 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v2 12/24] target/arm: Enforce alignment for VLDM/VSTM Date: Tue, 8 Dec 2020 12:01:06 -0600 Message-Id: <20201208180118.157911-13-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 Received-SPF: pass client-ip=2607:f8b0:4864:20::241; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x241.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" Signed-off-by: Richard Henderson --- target/arm/translate-vfp.c.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.25.1 Reviewed-by: Peter Maydell diff --git a/target/arm/translate-vfp.c.inc b/target/arm/translate-vfp.c.inc index 96948f5a2d..98e4ae30eb 100644 --- a/target/arm/translate-vfp.c.inc +++ b/target/arm/translate-vfp.c.inc @@ -1065,12 +1065,12 @@ static bool trans_VLDM_VSTM_sp(DisasContext *s, arg_VLDM_VSTM_sp *a) for (i = 0; i < n; i++) { if (a->l) { /* load */ - gen_aa32_ld32u(s, tmp, addr, get_mem_index(s)); + gen_aa32_ld_i32(s, tmp, addr, get_mem_index(s), MO_UL | MO_ALIGN); vfp_store_reg32(tmp, a->vd + i); } else { /* store */ vfp_load_reg32(tmp, a->vd + i); - 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_gen_addi_i32(addr, addr, offset); } @@ -1148,12 +1148,12 @@ static bool trans_VLDM_VSTM_dp(DisasContext *s, arg_VLDM_VSTM_dp *a) for (i = 0; i < n; i++) { if (a->l) { /* load */ - gen_aa32_ld64(s, tmp, addr, get_mem_index(s)); + gen_aa32_ld_i64(s, tmp, addr, get_mem_index(s), MO_Q | MO_ALIGN_4); vfp_store_reg64(tmp, a->vd + i); } else { /* store */ vfp_load_reg64(tmp, a->vd + i); - gen_aa32_st64(s, tmp, addr, get_mem_index(s)); + gen_aa32_st_i64(s, tmp, addr, get_mem_index(s), MO_Q | MO_ALIGN_4); } tcg_gen_addi_i32(addr, addr, offset); }