Message ID | 20230511080450.860923-42-richard.henderson@linaro.org |
---|---|
State | Accepted |
Commit | 3ec02c1f0f539ea117817484f4a352010edaf9e2 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:4a41:0:0:0:0:0 with SMTP id v1csp3268388wrs; Thu, 11 May 2023 01:14:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7hL9E4OVBCcu+dU7CSK8a9lxA/tSJJidW+uuDmZrrAmONz0AmppKPL8qXbpg1ut3OY/y7X X-Received: by 2002:a05:6214:20e2:b0:56b:f28e:628a with SMTP id 2-20020a05621420e200b0056bf28e628amr28928084qvk.6.1683792881099; Thu, 11 May 2023 01:14:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683792881; cv=none; d=google.com; s=arc-20160816; b=hPCMuJc8YUi3n5Bc4PMZaLSEXBN0ioYAnh5EwquWqD0zouHBOj+icAUBe+bxwNzwiB PdZgQylnj8mSM12526Tl+6LCfJtWqTvnO+OEjTdP/h8vbmiYIfrrQbJtdm7uMs9A3PaQ pmmgLu3jGbjFVv+bcKaYLMR5PVbzSkCSer8K0zgqvR5x+n3AWEf/NnmYRupya/ylXDRe dh1WKXInVmKNn2TuQ9XZwUNlh4yJgHMUBI2on7CqmPgO14kN9SuhBbf812oEeKZE1FnA z/E9SVl6r8kJAhDfQWy/RWi0o8M3qiD/jnLRP0DTneSLOUxYU8fcORtZAK1Ci5ykK4QL 3aow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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=Ak9lI8a+Y3Ekw5fqxmz/fOYShDZB2hBrThel6H303CQ=; b=rq0PCpvV4VMcv91eKwn2JrRrOAsBJjFAlfqLy6ILJVyJtWW8BZa4eA6mS7YtBbf9mP HkvdfLvuaktGmdw4z96HXVrvMcp64BWgkfcF5MgoWM10KLFibMvDflJmJ/s2bXq3BuYf Z15C2UrEXFcqaATOz2DPUcRYH1u607Mc5d/6NREuDWj+QlZkHRpKzo1L61kGaZ4XYQ0W v1XBonL0nuWwlUHebSxmtrwaBI1AQPfb4QrODF/f2Fiv72fXjNtD3ET5MHi4EnUN1ce0 5ryMLrd5bqz00zMnl27tjx1R/IQfT9mnRRg31yO4dgDRkc79IslYvW8Nu2aAOSAb3HGS 7r1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yoEwye4v; 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=pass (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 t2-20020ac85882000000b003e85bea7fdcsi2112348qta.19.2023.05.11.01.14.40 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 11 May 2023 01:14:41 -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=pass header.i=@linaro.org header.s=google header.b=yoEwye4v; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1px1Lb-0007FR-G1; Thu, 11 May 2023 04:08:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) 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 1px1La-0007EQ-1J for qemu-devel@nongnu.org; Thu, 11 May 2023 04:08:22 -0400 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) 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 1px1LX-0001wf-B5 for qemu-devel@nongnu.org; Thu, 11 May 2023 04:08:21 -0400 Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-965fc25f009so1205910566b.3 for <qemu-devel@nongnu.org>; Thu, 11 May 2023 01:08:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683792498; x=1686384498; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=Ak9lI8a+Y3Ekw5fqxmz/fOYShDZB2hBrThel6H303CQ=; b=yoEwye4vPuvaZCOqtz7Ci10IRYorhjU3yizrwj3ov2anAg88+nhaiEO+D/aZ33gdLG l3xMe4BG0gBwpQqxagt6uP0JXAGsVC1plC4LgxWcPTUOn9RnWGsC8RL4lQZ/7S3f6J2m Y0jdThOViXlfuvCeZV+G3p7MwlfXEfttlg3Leo/QBYYucNHuXiUxEHtDLLpE7tAItzha pfPIQbP/jYhhpIxjbfhKgAZk2pQY4mmapTc+oTaHT5VayFkxQ4igKoRtZMGLjuo25ldZ k0+G6SkmLJ0g9L1j8RV6FjZmSF8DrSsQ31Yh78Yo7emgkvKJA8+xTqfEKdw2dCbB+JQ6 aKWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683792498; x=1686384498; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ak9lI8a+Y3Ekw5fqxmz/fOYShDZB2hBrThel6H303CQ=; b=VPECSP7DIDHHImRELytgKcX2inecVEscPP9jqF0GJT0wVw32Z9Mqq2knTOIqwUIKv6 IglGj4mvJG6jF8usatunLOYmeoK10ShXtJiQvusgydqVQURbxJbYZDnsIxx/KYRtrPnw 6ZdwOmnqdk4+q6N2j8uI/x7W/R9X72G/vbXOK2STkbZBAo/yogWeexVYTLt1vE056zCV yrLwfwhPQ2jSy3qcz4xupSDLuQw1AMdffVO9QW2MVvldduQMfuuo0WdxUX8PoQGTfNv+ t3a+HqyvWNLwUD/v1BMUqE9w7s8IeXk3ytmR4UrPmPPtYcrd3DGesJx/leK4+fcqrAmc qe8A== X-Gm-Message-State: AC+VfDzAJZ4fe3rtXsz0rHmakRy7oSSeZeGlLcRcLfIqLjSACt/5lowW IH1soa5VZi2R8WVo7Qnyxl2z6PE3FOnhOv+dCOfXhA== X-Received: by 2002:a17:907:eab:b0:969:813c:9868 with SMTP id ho43-20020a1709070eab00b00969813c9868mr11197610ejc.18.1683792497717; Thu, 11 May 2023 01:08:17 -0700 (PDT) Received: from stoup.. ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id ci18-20020a170907267200b00959c6cb82basm3635225ejc.105.2023.05.11.01.08.17 for <qemu-devel@nongnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 May 2023 01:08:17 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Subject: [PULL 41/53] target/mips: Add MO_ALIGN to gen_llwp, gen_scwp Date: Thu, 11 May 2023 09:04:38 +0100 Message-Id: <20230511080450.860923-42-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230511080450.860923-1-richard.henderson@linaro.org> References: <20230511080450.860923-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::631; envelope-from=richard.henderson@linaro.org; helo=mail-ej1-x631.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 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> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
[PULL,01/53] target/m68k: Fix gen_load_fp for OS_LONG
|
expand
|
diff --git a/target/mips/tcg/nanomips_translate.c.inc b/target/mips/tcg/nanomips_translate.c.inc index 97b9572caa..e08343414c 100644 --- a/target/mips/tcg/nanomips_translate.c.inc +++ b/target/mips/tcg/nanomips_translate.c.inc @@ -998,7 +998,7 @@ static void gen_llwp(DisasContext *ctx, uint32_t base, int16_t offset, TCGv tmp2 = tcg_temp_new(); gen_base_offset_addr(ctx, taddr, base, offset); - tcg_gen_qemu_ld_i64(tval, taddr, ctx->mem_idx, MO_TEUQ); + tcg_gen_qemu_ld_i64(tval, taddr, ctx->mem_idx, MO_TEUQ | MO_ALIGN); if (cpu_is_bigendian(ctx)) { tcg_gen_extr_i64_tl(tmp2, tmp1, tval); } else { @@ -1039,7 +1039,8 @@ static void gen_scwp(DisasContext *ctx, uint32_t base, int16_t offset, tcg_gen_ld_i64(llval, cpu_env, offsetof(CPUMIPSState, llval_wp)); tcg_gen_atomic_cmpxchg_i64(val, taddr, llval, tval, - eva ? MIPS_HFLAG_UM : ctx->mem_idx, MO_64); + eva ? MIPS_HFLAG_UM : ctx->mem_idx, + MO_64 | MO_ALIGN); if (reg1 != 0) { tcg_gen_movi_tl(cpu_gpr[reg1], 1); }
These are atomic operations, so mark as requiring alignment. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- target/mips/tcg/nanomips_translate.c.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)