From nobody Mon Feb 9 23:58:13 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1764068265; cv=none; d=zohomail.com; s=zohoarc; b=X23e2MeXZJ4XG7hI0mV6eDGg8SQjzNUsRie0NctoaT++vTA4ZhGARA2bQau+ha0CHXxUHlazfvH3akT/VuplmZ69uMqguZ6AhbuNWGfWSMoagQJ0sqXE0NyX0YlEQrX1o7ZVbGnLCNrEhPFMOGMnbNtvrfGFZy77XRNwPZ/XZ4E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1764068265; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=yQ3G/f5z9MwEGa9QMBSOfQ0OhqIrmAfETxxhBlriST8=; b=C+30VRQ8w0Wve7hl+8StC/MnA6JV1hFqDK0wx5TZ5N4M8aodeCaCpeGblDUZ7wfMRe7cUlSRhJD/cI49nKfHTjvNmVe0Hlk/fKXU+BMn5wDMqhGUorKGQ03LQVXb+hnMjLgO5DsaSqyqUR5eBImUQR7j8jebiw5Im6GM62WlzxQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1764068265310509.51259715858805; Tue, 25 Nov 2025 02:57:45 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vNqiI-0004pF-A7; Tue, 25 Nov 2025 05:56:02 -0500 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 ) id 1vNqiE-0004aQ-Uz for qemu-devel@nongnu.org; Tue, 25 Nov 2025 05:55:59 -0500 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vNqi9-0001pi-GJ for qemu-devel@nongnu.org; Tue, 25 Nov 2025 05:55:58 -0500 Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-42b3ad51fecso4279239f8f.1 for ; Tue, 25 Nov 2025 02:55:52 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-42cb7f2e556sm33315291f8f.5.2025.11.25.02.55.49 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 25 Nov 2025 02:55:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1764068151; x=1764672951; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=yQ3G/f5z9MwEGa9QMBSOfQ0OhqIrmAfETxxhBlriST8=; b=HW6ICViWFx8fuSrzOcD3jeSkj6qEn196PIb5nJnkcVf6mwMMiWEest23aJ6iS6oaBG 6aJFQlwLlAgxF66RadU/Y6/uoZGSjnk3q0e3b75EcSW94Cbh+tmtusREBacM2zN2Anz7 zk8PVRuuG0oQjk9xagBy6JsMNYqm/pIT7aTftTTF59ef8E/zD5qZg/OcHKV/XVbMbrcz D9voG5wGgJxmmpc0DbDNf8EhHcA4dLrQdzHHUvZSOv+tD1dWxoSg/DU3Ef3RT7lt/Dwr 11gkUpl/M2yOgK0MyAqcGAyfe91kgVArvx7LPtA5asUGuQg/n7HrNtHpLCDqv6TFpuaa Ew2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764068151; x=1764672951; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=yQ3G/f5z9MwEGa9QMBSOfQ0OhqIrmAfETxxhBlriST8=; b=pdhYYMLkLhMgxU/Arw6u2UY7SoBJb+RlB5mZn/gz3SE53Ot+tuv706aPAETTOdkdyw 3c/8i0M2QmX4qz3aO8F+EHDxY+9yEhlgtgvKBH5dQah1fHlW1/99EsyKQCoZIXIRaaNh u2P1UFP6m5G90treRQ36Bhx0TZGhIBWQLgI1HNpd0xulzh+H1AjsH7lVZH0W9nOMzjIT 2k18Y7xI8C/biAf1w+GvTLe/fNizDcDSFDqf+MK36pYDP+JphtCWCpBi8wR8nsA/KIkg QWKoAVlwtE2KM8HTNznhAM5bgMaddXJGHUd4faQaZ4yEWnJ0XFxatz8kqhikE4Svfusj hm+A== X-Gm-Message-State: AOJu0YwK4MbaMWv0Vjbr2EJE0shBS4klDaUnsrxfEWYfVz1Br3fd3TMQ rYPb5mbEozpUHnO2bUOrfnXjAg4LlLGLEL9nOw2p5ZVdRWaunExOKi9uOMQUUITey0rigsfDaU7 VzRGEb+yivA== X-Gm-Gg: ASbGncsBXqzK22dW0aDonn1/HlzimX83ptqCK2iHWZsivqoOw4PY4faKpW0fimGrkw0 mMVpR+m57+dLj80c4eKralTDHSfJA/JmbdHnr7dg5pt6CQXfP+CILkAN92h/HRHIY6yNjOvgtoW 0ZdejaLe+dckfCqm5VZ9LN5FVrRrY9KrlwqE3MyyQczu0z+IdTkIG5+0c+WbhhIVy4Zk3ixvzh/ joJBCPf1mxf/B/MpSfk6wXVR2IeuCXNca11dzbcnU1l2/49xzddE5pncKhPMxOb+BIl0BO5kj9d BSCvNTP4uwPed/4pXv6rKKdCkvQMG+EKG0LaO7IUoB8Z+TUskUZatFaUTpJF0gsC8uYxCWscznS ZsUzH56db2WwBkYHGOyF48o3JHOxdyh17pa/LUeAf0EbZlRm2Llfs/kqUQph31JzoKVlJE1PvU7 cbkFQMVEoFyMcLVfiF6d1rM5rJhmHc3tsRZkbZPHVMIFM53rEvvMOnCPtmmFu6KiPJSAtfh4k= X-Google-Smtp-Source: AGHT+IGmr8rG25zaL9CLrRLJSz/n7IqXyNjVat0SFDPCDEhkxdniYE3qgen3PT1iXCuE3DIPg9nYAQ== X-Received: by 2002:a05:6000:2c0c:b0:42b:38de:f00b with SMTP id ffacd0b85a97d-42e0f33f7d3mr2380017f8f.35.1764068150673; Tue, 25 Nov 2025 02:55:50 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-s390x@nongnu.org, qemu-riscv@nongnu.org, Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Yoshinori Sato Subject: [PATCH-for-11.0 10/12] target/sh4: Replace cpu_stl_data() by explicit endianness variants Date: Tue, 25 Nov 2025 11:54:31 +0100 Message-ID: <20251125105434.92355-11-philmd@linaro.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251125105434.92355-1-philmd@linaro.org> References: <20251125105434.92355-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::42b; envelope-from=philmd@linaro.org; helo=mail-wr1-x42b.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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1764068266741019200 See commit 852d481faf7 ("SH: Improve movca.l/ocbi emulation") for more context on this code. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- target/sh4/op_helper.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/target/sh4/op_helper.c b/target/sh4/op_helper.c index 557b1bf4972..63515cc5e6c 100644 --- a/target/sh4/op_helper.c +++ b/target/sh4/op_helper.c @@ -143,7 +143,11 @@ void helper_ocbi(CPUSH4State *env, uint32_t address) if ((a & ~0x1F) =3D=3D (address & ~0x1F)) { memory_content *next =3D (*current)->next; - cpu_stl_data(env, a, (*current)->value); + if (TARGET_BIG_ENDIAN) { + cpu_stl_be_data(env, a, (*current)->value); + } else { + cpu_stl_le_data(env, a, (*current)->value); + } =20 if (next =3D=3D NULL) { --=20 2.51.0