Message ID | 20210419202257.161730-17-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:6a6f:0:0:0:0:0 with SMTP id m47csp3062786jaf; Mon, 19 Apr 2021 14:13:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9W+K8M2zo71BDEa0GQMqmCFmny2fs+32B1avjbdPLbiij4pLemRF5zxgNJlBLAf51qxb2 X-Received: by 2002:a02:a302:: with SMTP id q2mr10335297jai.104.1618866803571; Mon, 19 Apr 2021 14:13:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618866803; cv=none; d=google.com; s=arc-20160816; b=IqSnmYwgxKhqtRX0RN3OoRiHhzMpEGJHWIwLbx+iUkX+S+ZrqoBsHTEzsE52/7jHWP 6Z6yOrjwmO1gD9nWftKEolQqWGWx6CmsRXa9aEfIS2sFv3zwwTIh9POTEMC/7Hh3VRgB gRPpvf0ocAu55QupUJLgwU2PIyHaifPq3yNGh7kp8QktOuScx5n23a8jJlEGX2MYeN7B SARWRWF8341D/sjYrILNiTn3fvQchURx9DNwto09Hxf7OibC/Y+TuSrabgWjlNj5tZ13 Wddx3iZYHoToB5U45WOKOZDhM0XWTLCD5hCT3lJwobamuTejqQKvypZ3pkdCD/IiLl6+ pgsg== 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=sbzgUSpJ4Len8Cs7k/6eQfLYFJFY7f59LIhjThiphCw=; b=yZYcOxTNpsgVURh2hGZKYodd2q9aQzRVPpTmXMkjeUacwaOWkfToGSC742chO5ojVU JXF2nR2NM/ahue3AukumF0va76LkXaZZZnpQHD6LmIVuZFRRGWIf1dsIR0/qWHPSrwsy gXvUTXvXq1DlNPN6hJllp3HjneI3T+0meyTHSQWufcz8SP7ojmMEuXdtl0ONkNT/3yA4 aOzrqrMok0/3clReVy2Be3IoE54SuQXA88kHQbNzBE0S0rO3eNiH+lxiyekGudnVdxAH TYxylglxoPSLjL7xfECbPt9gFrM1ozhWRjgDaU3EO1XFRpY7/dJU912hLjX1p3Jm1fsq xMMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=M0+nFpSX; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id b12si13775597ilo.127.2021.04.19.14.13.23 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Apr 2021 14:13:23 -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=M0+nFpSX; 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]:34620 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1lYbCt-0008Hp-3F for patch@linaro.org; Mon, 19 Apr 2021 17:13:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33994) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1lYaQe-0007Uz-5n for qemu-devel@nongnu.org; Mon, 19 Apr 2021 16:23:32 -0400 Received: from mail-qk1-x72a.google.com ([2607:f8b0:4864:20::72a]:42926) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1lYaQc-0002cc-GH for qemu-devel@nongnu.org; Mon, 19 Apr 2021 16:23:31 -0400 Received: by mail-qk1-x72a.google.com with SMTP id z2so187963qkb.9 for <qemu-devel@nongnu.org>; Mon, 19 Apr 2021 13:23:30 -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=sbzgUSpJ4Len8Cs7k/6eQfLYFJFY7f59LIhjThiphCw=; b=M0+nFpSXXGtBPz2YIxSwkJlkfycKhhUzu37P79QedqfW3tBcQGpNWlznft24zF6bXH W0ud3YGskYAKSoBgXhQg4szZ3rZ1Lvo6o54OY2LQ7PUfeQupDtKgM2xzgeM/1Qkgd1Kb +YOpIl2CpcrnW7QqXfAIm/nXXOvkFROa4uvx7M6lJX0Yy+NnsoLEvfem31+GwvOg3914 CtAGqtonewb9OG4Ge4AwrljGd6W0HPhcPX4jI7XgvV4iLYpjX37MYg7KhsfPQ/AOCx7K z3TA2uI05cDBKUMlnxmRtm+IucCOiCVe/7IX37tHw2bK9KRwfMRKuurIT7oiEUgsNBsv lA8A== 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=sbzgUSpJ4Len8Cs7k/6eQfLYFJFY7f59LIhjThiphCw=; b=qGKskMacN0ITH6iekOT+ABf3afCuhVrczCtKaYAM4/wwAOQDANYdMx8oisUOtBTb62 X/2Gr85AcYw3++XdAeG4vbhjoFKho6A9G4WW6BdbUqCMffTS28mggMdtc4zh35fEdZHy S1d1bhfMfPs7IdZwmYgFfnlu9yKxznT9l/GlbhfJdK29Edp96pjH+ZgmZcC+TckkDlkx WhJQZ3jvtdet88XAq92KI9vQiwt0oyZk7wQqHSLjJ+hITEmS/nEASBltbrFy9Nw2ybAn BPlmoxrCbQ4TCG80Qt9OveIcYZ7Ol9oOx0OQngA2z0IAJEOypSoviDMx3WPhriroRFeZ rJOA== X-Gm-Message-State: AOAM530Ntu4uBrjSKXtM7qg82Yc8liCfbTLimFHhAq81mPsq9TYIqRHg 4s9hjgsoA/Q/JP2wkY6MAU0qPYwVuuNxhAms X-Received: by 2002:a05:620a:847:: with SMTP id u7mr14053002qku.11.1618863809458; Mon, 19 Apr 2021 13:23:29 -0700 (PDT) Received: from localhost.localdomain ([2607:fb90:80c7:aba4:3594:91a:8889:c77a]) by smtp.gmail.com with ESMTPSA id c23sm10007835qtm.46.2021.04.19.13.23.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Apr 2021 13:23:29 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Subject: [PATCH v5 16/31] target/arm: Enforce alignment for LDA/LDAH/STL/STLH Date: Mon, 19 Apr 2021 13:22:42 -0700 Message-Id: <20210419202257.161730-17-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210419202257.161730-1-richard.henderson@linaro.org> References: <20210419202257.161730-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::72a; envelope-from=richard.henderson@linaro.org; helo=mail-qk1-x72a.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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: Peter Maydell <peter.maydell@linaro.org>, qemu-arm@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
target/arm: enforce alignment
|
expand
|
diff --git a/target/arm/translate.c b/target/arm/translate.c index 1b0951c45b..29fbbb84b2 100644 --- a/target/arm/translate.c +++ b/target/arm/translate.c @@ -6920,7 +6920,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); @@ -7076,7 +7076,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);