From patchwork Fri Apr 16 18:59:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 422575 Delivered-To: patch@linaro.org Received: by 2002:a02:6a6f:0:0:0:0:0 with SMTP id m47csp655574jaf; Fri, 16 Apr 2021 12:14:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwx1qbRl0s61/Y64RkzySQlK8hDI3RHUb5I8yo3vgKUCzzCpy7zxseV3virnyqMpErY/2Q0 X-Received: by 2002:a6b:b4d1:: with SMTP id d200mr3831519iof.162.1618600470064; Fri, 16 Apr 2021 12:14:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618600470; cv=none; d=google.com; s=arc-20160816; b=N7BETGRGTBQTfLF1G/DuJ87EZFawW0MmlaBP71dTjib9/PXncwE+vTtbnJ5C0jU+yy xwYTkTpYO7RdfTZiLKJNxgSQLWrMz2ysuaLwmJxOVaaa3jXWMshcijV8qq99zrCvHiHd shoJxxMCGbB3U2z2fMHTCRnBPoCs94SKY0D+FhQT/YLVKttvVDgYAAkd0v8wNxseTCWk F/XbAMAvrru29uoMfNkFNr3fgrY896+s0WhMtFwX2MwqklpXlHRmThPOLId/IyWnYwGB 8CmxDBDjIPPkj+na7PpIhox/tUC5SftlG4FxBJQF9NqFClhNhe2EFReyWfZ5WdnYSHHU jQTQ== 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=KALA1eSooGUfBo7CGQXBooa38v23DHVbjR3um2cG8+w=; b=qPIq6mgss2uQTcfVvL4iNeEDtoHzNxRPheiA96B3gunss36ik52y37j/SPtK0VTzsw 5J0Ukog97+bYy2xMUfSdfJBEWVQEkVoNlAzlbfa0NhuZf64QyF+ZPjGhhwCr5N3+Ag5Y aJD31NeVjKd43J+0lVtUA2xc/EbVn5HfURwKOhy3C9XG6cMQbdB7nXzldrKiycrhHYAK r97Q7H9iIa0mCpS2WYvdcsBgcb/6TqatmO0KfwmWcSBXv67Zs/dKJ9kptTXaB369LR9D /MqisN2tE4GrxFj4+UMcZSTOqkNh0pzkhFact74qFtlofcsfUHLlu6IOCPi+JZfJZnIz 9Yvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=df7qR45v; 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 g5si6665439ild.106.2021.04.16.12.14.30 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Apr 2021 12:14:30 -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=df7qR45v; 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]:46492 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXTvB-0004kj-F4 for patch@linaro.org; Fri, 16 Apr 2021 15:14:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50486) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lXThr-0003yR-Ih for qemu-devel@nongnu.org; Fri, 16 Apr 2021 15:00:43 -0400 Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]:42858) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lXThY-0004Pv-0C for qemu-devel@nongnu.org; Fri, 16 Apr 2021 15:00:42 -0400 Received: by mail-pj1-x1035.google.com with SMTP id j6-20020a17090adc86b02900cbfe6f2c96so15117465pjv.1 for ; Fri, 16 Apr 2021 12:00:20 -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=KALA1eSooGUfBo7CGQXBooa38v23DHVbjR3um2cG8+w=; b=df7qR45v3HbO40nbnKm+iajt4hX5QOAn1rOdywRK2LRqEDBhLqDd6W6l5o2fUKiwSu SVikwL6aUloRzn0zM5AzMI3MkGYNlMQpyhxwDnGbFDPXQHvdBC1uV+ubAUqg8c5rX1Ak B3TjDC0Sw0WMb0uxmX4ItwLRfJd83hGVzf9BD4c82ZTkNg+7r3qGC5v3KrV2TlXnQX4p 4L7UvS2xsNWZwMwP0ERdjXET/9UUhmYF0FlU0djrLw7Z2ka4rpvwhNKl1y3nGW5GQIfS b/GKSM92hnib5bOz5Fc08DLpyCKyTeCk5GolYn4JfnLU1JeV1Mzr2MiKRpznFAxEroBo wNWw== 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=KALA1eSooGUfBo7CGQXBooa38v23DHVbjR3um2cG8+w=; b=SMxaKEl1CxJ059sr7G2i80aWA+/DYoKlAaQeWxK+Nnd80ik6b6odmHEAwgweCT1cCP QJDBJJ8nK+R6MIaVbAb2zb5wFacIMhEGCnmvtC+yDL/BD3QzEtMD3tYdH2lPpuSgNBUR UVwfEACqR/3HpXvXfmvAZ40vmu302ozydtF815WqcGfrW2gjMfdgSygCTrZRFm5atOr6 5Pb26xUBBjSdb7RIEmhQcRwXT6bNETbIe+4N+ftdh42Z26I0CqSzs31GYh7UtAanFki1 3IsuL9TiRGfajkhoOsk+9LC3f0jJJPPh8NtUWqozzfUDCoSKMXhX+/4Yl1ln5FhrjlZ5 0HBA== X-Gm-Message-State: AOAM533Kbh1J6+WcSFhO/ROq94Nw8+SayKLwAM2WfDuOLjlq+T2sE/rC s7XrxsHcJTosclgxq2CiOPzIpkJu7ucX8A== X-Received: by 2002:a17:90a:cc0d:: with SMTP id b13mr11122306pju.219.1618599619640; Fri, 16 Apr 2021 12:00:19 -0700 (PDT) Received: from localhost.localdomain ([71.212.131.83]) by smtp.gmail.com with ESMTPSA id d7sm1988337pfv.197.2021.04.16.12.00.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Apr 2021 12:00:19 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v4 19/30] target/arm: Enforce alignment for VLDM/VSTM Date: Fri, 16 Apr 2021 11:59:48 -0700 Message-Id: <20210416185959.1520974-20-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::1035; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1035.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 , 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-vfp.c.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.25.1 diff --git a/target/arm/translate-vfp.c.inc b/target/arm/translate-vfp.c.inc index 10766f210c..f50afb23e7 100644 --- a/target/arm/translate-vfp.c.inc +++ b/target/arm/translate-vfp.c.inc @@ -1503,12 +1503,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); } @@ -1586,12 +1586,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); }