From nobody Mon Feb 9 11:07:26 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=1766168886; cv=none; d=zohomail.com; s=zohoarc; b=DpQ+bhwyY19iBf6E4J0mPMKjLweW+MV4rc70w831RG4iwvdBlJ6dHq8aCaXaSxthuF9ux3uYE6X2bw5BqCFK1w/aetb44j4JR8x4i6QJylGdn0O6SMbDLIde4BYaEvH5FJe3/vCZ2ee6/dtx8bGF4c+N1qgrxNCOx76aaYhd/bM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1766168886; 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=wU31SR/JT4eTFC/HWfl2NIM8RsVwLMoHP1xZxIQHUvk=; b=Mi8z2ihqAvfXcSI5URA9SC7goW8a5zr65GfHgcGHlC7JAETAniELFSKyJhP5RcIvuAtGVhBWhBkwZAcLUUyOm6wKkQQypaBNpHeLHCnrc5zN3LqW0ZxzLCqqXGKtXtgY7wk3+SBYc/EvFs8l/QSRV0jzB4V9Shn6Ouctnu/k6k4= 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 1766168886201518.6980859183203; Fri, 19 Dec 2025 10:28:06 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vWfCI-0006wO-SR; Fri, 19 Dec 2025 13:27:26 -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 1vWfC8-0006vn-Jf for qemu-devel@nongnu.org; Fri, 19 Dec 2025 13:27:18 -0500 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vWfC7-0005XV-69 for qemu-devel@nongnu.org; Fri, 19 Dec 2025 13:27:16 -0500 Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-42e33956e76so897301f8f.3 for ; Fri, 19 Dec 2025 10:27:14 -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-4324e9ba877sm6281592f8f.0.2025.12.19.10.27.12 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 19 Dec 2025 10:27:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1766168833; x=1766773633; 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=wU31SR/JT4eTFC/HWfl2NIM8RsVwLMoHP1xZxIQHUvk=; b=MsgkAzIsWMtceVglKgvSeH2z9sYn8D6JgClg9t/aH0uL78NpHTYu5OHva4cqVINiX+ ek2EuzjnuubtlSFOnc3BraUYkHz/M5FPtnPxuX51BKLwUJeErA031XStPgyKoONQupbt U5Lry7i3cAjUMGT6P+gqK1oOyQZns6wXhiR6nYrMMEbKEuHBpUm8DtZbE6X2A26u9Jy1 Ws2hlClAeTvoGjyj++jB3y1G7TWgWyi5YaMhNaCY2I3c6Hn4iaDTozWCqzBG9CZ73YWQ ELcTi+SIwCOs3jwDV5lMh+WRIy22QFg5vrUHvoaA8ckRbsDtyq3RADQ8OVadQX2rtqhM hZSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766168833; x=1766773633; 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=wU31SR/JT4eTFC/HWfl2NIM8RsVwLMoHP1xZxIQHUvk=; b=IqUI7rcV/SSDZU4bwax0D3UjLzmQL9daBYckJFaRnHAyEAmelLQpUlQmRFN1U+K4sT rw5A6ez3l70510YwXE9BlVj3x7myUCWZntB+GNSs3TmII9XVeD+i4F6PqNWjVyR7kQUL T/S0xCPtzJ30PIrnvAad+A7sjOwjOZvvnrRTvP89xrVgjzD0eUi3zA4F2PGIqnc+gA/w TbhtvD0wHA51/BeWAPrZ0E4ronI7MwSk+DhCc30kWQTxK4ujH7oIz1DCmZRdU6OVXISl IC1lV7dSi0kzs8SNbDnGZDIXrIypXVv74iUm9Id/+iD6w66wJut3X5hNQynqrGihhbU+ qVzw== X-Gm-Message-State: AOJu0YyAXQG8iMefVl5RCmanhbNSE1Od2SSdtGw7udGX1G4oO3rPwu8t PAjV9a67J6KL0iSs9i8SULjixZS0H/xT3dgx4zFcpV6xgtZbVm0u41Ol+wCtDWxmeZUhjqDhyDa epV9cWjM= X-Gm-Gg: AY/fxX67Pn5mTP9E/2NZIDXxco/ZXaL8+0PXVsbUcLLLWfAwa6/c9yKVHcOsEpVZjfy SLt/Nu8NIT5Q/ib4dN4x/7AN3UWfSx/YtHcqFBPoZWSupeYCxGDXEht06YpZ3eYoELSocbsj4mW Vq9mIs8PgChfhxQ+3lH4IK6m5brf2JxIjSBiGAEcPpp9DpUwWP56lBMRYrGh7/lrNkoQudCaMK3 HhQ6InIbM+nMeCVFLYnfCg+cwJHF+Iz4eqIsJ9xfn82xtn1Tg/GzlYnaV1SFCCbvkbj7wBqB9Lx gyCO7/2Y8Xd9gGeorqzPaPiZp/XBw7A1zVgRMPowytsIlndg4MQE13wD59JvWGiwa2Q/7tZLcLq 6In4/ERcFS8pRIZDa166OI2nBvr5xqYpVxlOoh1JPxv03utXm/PyJedfmokfUDDAN9vG72FQmeV zFo9w16dn0Lb9QkLgcF6vvhzeNSUDx+YLOkIZkEjg2CRunAFyqZ8QG3gfPZDng X-Google-Smtp-Source: AGHT+IEgHCo0xIkulVfgZ3GQuRaboSUWDc/oonliOn/LXy44R1ZWufYTB1uNL2TlW8tdWRe4g3WSzA== X-Received: by 2002:a05:6000:220c:b0:42f:b65c:1e4f with SMTP id ffacd0b85a97d-4324e4c97ccmr3890236f8f.17.1766168833309; Fri, 19 Dec 2025 10:27:13 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , Pierrick Bouvier , Stafford Horne , Laurent Vivier , Anton Johansson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 1/3] target/openrisc: Use explicit big-endian LD/ST API Date: Fri, 19 Dec 2025 19:27:02 +0100 Message-ID: <20251219182704.95564-2-philmd@linaro.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20251219182704.95564-1-philmd@linaro.org> References: <20251219182704.95564-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 (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::429; envelope-from=philmd@linaro.org; helo=mail-wr1-x429.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.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: 1766168887437158500 The OpenRISC architecture uses big endianness. Directly use the big-endian LD/ST API. Mechanical change running: $ for a in uw w l q; do \ sed -i -e "s/ld${a}_p(/ld${a}_be_p(/" \ $(git grep -wlE '(ld|st)u?[wlq]_p' target/openrisc/); done Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- target/openrisc/gdbstub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/openrisc/gdbstub.c b/target/openrisc/gdbstub.c index 45bba80d878..ca1592c6200 100644 --- a/target/openrisc/gdbstub.c +++ b/target/openrisc/gdbstub.c @@ -50,7 +50,7 @@ int openrisc_cpu_gdb_write_register(CPUState *cs, uint8_t= *mem_buf, int n) CPUOpenRISCState *env =3D cpu_env(cs); uint32_t tmp; =20 - tmp =3D ldl_p(mem_buf); + tmp =3D ldl_be_p(mem_buf); =20 if (n < 32) { cpu_set_gpr(env, n, tmp); --=20 2.52.0 From nobody Mon Feb 9 11:07:26 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=1766168895; cv=none; d=zohomail.com; s=zohoarc; b=VkokXe4gZNTbi+/1A2M7Yf3fYDqeapxF725sFcSDVh/Xz9ViaxVHp2j19i76aQXCyGhbXt8HG1mdY9LR4PdH8XnxAlCleThSow56VqicgiAw5qqFkY5piNZ3nJUDn69LPgONaXPrrnQRFXtJHqyGt4v9ZWC38V5Y4uLdTlIQOq0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1766168895; 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=80eIc4DjrOU7auVm5Rkv4MvDkt9/G8asUqt6MOnMzSQ=; b=Ge4dYpkdEkfHRamEws7A25IUoecWpsQzsPHu0b7rDENkQwhQpZk6YoJNCXGBDOkltPayeX3FZWum5Uhe1VQ7Ta5uzX8yO7DCDcy9UDnUry8LgA+iDL2YwgoBa83Xl0XWqnqMOIAyrqdeC3DzS/XTd62JKqvQdhKsOCk0XytaUNg= 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 1766168895588864.0596293936308; Fri, 19 Dec 2025 10:28:15 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vWfCM-0006xr-SR; Fri, 19 Dec 2025 13:27:30 -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 1vWfCG-0006wb-JE for qemu-devel@nongnu.org; Fri, 19 Dec 2025 13:27:26 -0500 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vWfCF-0005Y6-7C for qemu-devel@nongnu.org; Fri, 19 Dec 2025 13:27:24 -0500 Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-42fb2314eb0so1620722f8f.2 for ; Fri, 19 Dec 2025 10:27:21 -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-4324ea8311fsm6235455f8f.28.2025.12.19.10.27.19 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 19 Dec 2025 10:27:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1766168840; x=1766773640; 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=80eIc4DjrOU7auVm5Rkv4MvDkt9/G8asUqt6MOnMzSQ=; b=mvrsahYNZQnyfbYQCngoMFx4UDW8ZOkqk0sMpd3Owg/BWPszQkI7QMgDc73NdPt790 EoFKA7x7TSUu+aXumIRjG8jwSVDzdox5+Tk/P2JjX0YvtWOiimgB7+m9z0SsC4mjX91j kgjvNs1KsiJLkhU7TlhoHjcd7DCJ/MAl+p4U2cBDH/kaI6uUKEo9KUq9xvzASxsLOYKY YjAp2njyN23xZ6lW/Q3ZBe4R1OMmUZq0E2I3DoiWDMa6nI1VeqgOhrtRmei+uV81zLxw CAa5BTBzaKMBJQzKAO1mPZsEvfJTHwdnhQjERJCYYf482Vt4ZtRqYYphZXMAUaSq3ptq l69g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766168840; x=1766773640; 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=80eIc4DjrOU7auVm5Rkv4MvDkt9/G8asUqt6MOnMzSQ=; b=bAGHkHeNda5gknFUdJ3Zxx5eJneNmE6SBi9NKUtZ9WOWk9SWq3FYDw8hLm/yZIh8bx VsRDuS5UfDlzW8HWt+iobUxd+OW4bzfJrxYJ4q0qiUd2XAm9fHn0BPVhbuCZikAprVe0 Plxd0rDHLdZ2GEa/0aN1GNlGVuJOoECjy4gAI7spmwfNTvELxSfuwNiduJeVh8TqpeI3 tqhJ91nfB2MPeSGsN2j/1C7hjjI/44SqsSkuNfYjzL7eRiLgoN+eERcVsnPOx3XOQYHc maousqrqZ5+/1X/nWmTgCZU8QGfL7jOvt668d4ZZLOtC2w78ZOPvTOYmaHk9VG4UBQZi uqvg== X-Gm-Message-State: AOJu0YxH6zKcadsbzcainhESl/1JxKj2EP3WGgDhnfra8BKBl0HKqLTp f29OB+bNGB0brVADApmisPS123zWT+Q6rbWZJhdrjB7KdNLHezw2gfpoqrSmOhCQPYzeeiriMij 9NVcEn5A= X-Gm-Gg: AY/fxX7OZvI5kFoicZquwNkBKw1gMl4At7gpmgHEnacOu8cs2OmCJShqJ2JJo7ORVhP zzUNFxc76UJs9gUqyR4orP8daMiDPoFyftxQYITXwxetNE/AcJ7FTsjbS3kT+E6Y7h9Ej74B3z/ 5bZETvkZChnaeCRLFExSpgU8l+a4m0WqRNte67k4VyxQpIDm9RQysL+NRUBDFVT7aO1MhMt/sCh N8unsS/G20Nq+CSiJLPToAZ/1msIBpNJJSB8le3kuTIh7hFGO2HoYC1rx8r0HrsHMJgfszyzkGQ 0t4POs07i4pOc216a24Ys54POVXZU6Xfn91wql/z2QCw0dGuXCijAOVFbdpDi37P/dzS2g13Uig 6XPEYX0bQ9vAakJIpRIF4kp9LznEteHBomdm3j5BlmQQP1n8cZqPVO2ZMqeDcpLJrH1P6FBfMaf rPRLQAxgjhWlen/LQ7BSoWNJN4rAAW3zGPv+UdcJEJVIFSvs2chrz18XYBMPJw X-Google-Smtp-Source: AGHT+IHnfD9pXy9t9B+OkXNqJkar+XYRRRDthXe4pad4h0Nr1f9/yPwtG5wUHWNHixUrqr2a4pYjdg== X-Received: by 2002:a05:6000:400b:b0:430:f68f:ee97 with SMTP id ffacd0b85a97d-4324e4fd8fdmr4100405f8f.40.1766168840120; Fri, 19 Dec 2025 10:27:20 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , Pierrick Bouvier , Stafford Horne , Laurent Vivier , Anton Johansson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 2/3] target/openrisc: Inline translator_ldl() Date: Fri, 19 Dec 2025 19:27:03 +0100 Message-ID: <20251219182704.95564-3-philmd@linaro.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20251219182704.95564-1-philmd@linaro.org> References: <20251219182704.95564-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 (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::429; envelope-from=philmd@linaro.org; helo=mail-wr1-x429.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.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: 1766168897055158500 translator_ldl() is defined in "exec/translator.h" as: 198 static inline uint32_t 199 translator_ldl(CPUArchState *env, DisasContextBase *db, vaddr pc) 200 { 201 return translator_ldl_end(env, db, pc, MO_TE); 202 } Directly use the inlined form, expanding MO_TE -> MO_BE since we only build the OpenRISC targets as big-endian. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- target/openrisc/translate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target/openrisc/translate.c b/target/openrisc/translate.c index 6fa4d6cfa70..a6d550bbc2e 100644 --- a/target/openrisc/translate.c +++ b/target/openrisc/translate.c @@ -1558,7 +1558,8 @@ static void openrisc_tr_insn_start(DisasContextBase *= dcbase, CPUState *cs) static void openrisc_tr_translate_insn(DisasContextBase *dcbase, CPUState = *cs) { DisasContext *dc =3D container_of(dcbase, DisasContext, base); - uint32_t insn =3D translator_ldl(cpu_env(cs), &dc->base, dc->base.pc_n= ext); + uint32_t insn =3D translator_ldl_end(cpu_env(cs), &dc->base, + dc->base.pc_next, MO_BE); =20 if (!decode(dc, insn)) { gen_illegal_exception(dc); --=20 2.52.0 From nobody Mon Feb 9 11:07:26 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=1766168885; cv=none; d=zohomail.com; s=zohoarc; b=Amv+Mlt8NdIvkOhEKkDZJGkHLTrWHzP8NY9qxomgcDxlx8QD3qRB59DuJ6xsrBkksjdBkloKfa9WL1uBSS7YXbAEzNCHwoXkDs/pzS1UmVTrxdM+f+11q/aNnkCUGc006sTBHtoN602GyZgabCyyeI3Bx3bSSS0T1iqZpImDHxo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1766168885; 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=vpVBRqx1qfeVuk9oF+fByqxYh3BOioTsbTesg1hLqvQ=; b=EURtUTGWihZzHTrhC1oCOVKyEV1PDFSREqLtLBeUA/7xRCKeX7MRcuqJr/3emdbApxo2fxvWggeLgv4PiX2yccE9r82X+cFVb0MScYtUdikFCidQnWp/7xNr2VjmNM0cPtht2mlhvmFnlLyv+BIc998WHFFvaWNuuhLsdc4bus4= 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 1766168885538221.98305756894774; Fri, 19 Dec 2025 10:28:05 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vWfCP-0006yX-UT; Fri, 19 Dec 2025 13:27:33 -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 1vWfCM-0006xs-78 for qemu-devel@nongnu.org; Fri, 19 Dec 2025 13:27:30 -0500 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vWfCK-0005Yd-Pg for qemu-devel@nongnu.org; Fri, 19 Dec 2025 13:27:29 -0500 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-477632b0621so12887245e9.2 for ; Fri, 19 Dec 2025 10:27:28 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-47d193d5372sm58428445e9.14.2025.12.19.10.27.26 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 19 Dec 2025 10:27:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1766168847; x=1766773647; 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=vpVBRqx1qfeVuk9oF+fByqxYh3BOioTsbTesg1hLqvQ=; b=Fezy74WgAUIe1S4J5pWXbS9Wayzpt6BwhlO5eZ5XTjbUIjRBR5s47hkzQawO4bHWAW OGEbdb+sDtNfJWnx+2tvEPUEEFyXQWcJ5HZPTi3MPcHvDiVvK/4tq0OD5xo1KbxnLOUs hujOiirgreIfCeTWxIqYLIm2UsVkkXNr6tqoOMmF2G+uwoGpKUUmrtP1prR0+JghQ5rA kYcdLbtteG8csvn+j3VjQrCl16y1IKdeFHrCaDvUleTCNW/aQTvDjpyT8Jf5ezGpbZNR TCwmxxzT61i37FFf/hZRlOiIl+mhnnQpNxbqzbcMWtNN9k236ZKjs1LQWibYSmuei4vc xNVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766168847; x=1766773647; 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=vpVBRqx1qfeVuk9oF+fByqxYh3BOioTsbTesg1hLqvQ=; b=edm2zP/hdtXILLkF+IUjTzp68Sg/jZ7DjFlGy5DX2ia4NembUtj0xhUPAI1+fR5Nwr n0581xTyQUuTOy2kJgd4Do7F2zcvPvInMdPAFDTZP1vWM5ldGVY7AGKtv2xFz/lBEF5v iqNUNpnq6Yg16Sh0P+cLTiAKWsy0P4FUuXKSQd+HZy/oetg2FS4N0Hm/7A9xqpkYfktd 7uSqe3FJkz6PDFSzc6dmfohkz4Ht2YtBa6LkUmWGSxx6QJrs1x6q+tkz44xQrjkYyLHx 4qaCDkm3UeMCisnObJyeEol51ye2Nc9sFHbZ9OYZLHBo96wA1CBirHlAwRws9sNbjATI eV4Q== X-Gm-Message-State: AOJu0YxVnK8lZHoLDKaWTEger6jFe/RTF/YVdQ3YJsnLCJGllnQy7ohj OrYdjju1mEyeTogJ8jLXQkJyEsMN1wYTlOC6we7csAarqRzKHq5n4KZGxJrhz9yPU2B3DgLS9B9 SDZ7RXXw= X-Gm-Gg: AY/fxX4G5e43cWnwYA2kiGowhF74Qrpjt7XdUOxXxU9JCTLNtsk6/a5eawWgZlPuHis KZiz3giMdR3dp28tv9VU0JDOC2dtZvlJ+HQiigvruQhhJsVM05xk8HshB/7Y3pKnbhBGE3hmwg+ 8odiK+Uf/Olx3GAA37LRX5Xc+Bp5oZmU0k8DTqBmKiKGqCbN0Y6jgNHArsVSXiCaRFmMTnHVrfy ZCRvjzU59DRxeKkqMYEpGh62XQsB9JpDbZo6aQj03r6ti/EbaLFlMzcnVqac58fS604CyEPbMuk VYSGNxX09FC31/uxt216gN2dGYuoBSjQquITLlxJ0gHKuAmQcmHON5XQT1QHVtJKy7Nsaynuh70 zIY3WrgdpRja2W1zccgieFEDgcZIh9PKK2WLmHJj08yZA+U7tq7ojHW5apsLbGgsSomGZPxJ/te LMG+9n6OVOA9jwvmWirG8F7q/IEWhQXoDNkoQNR5nHbXZQj7IwbsSNYIUIR0Nl X-Google-Smtp-Source: AGHT+IEQWdP9GdAiJAm9FG351lPBWqIMY5CIVsmGG3kZCQkBzeyyYgE4CSyK+r5aOXxnATuAAOQF8Q== X-Received: by 2002:a05:600c:820e:b0:479:1a0a:ebbe with SMTP id 5b1f17b1804b1-47d19578ca7mr39385405e9.14.1766168846997; Fri, 19 Dec 2025 10:27:26 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , Pierrick Bouvier , Stafford Horne , Laurent Vivier , Anton Johansson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 3/3] configs/targets: Forbid OpenRISC to use legacy native endianness APIs Date: Fri, 19 Dec 2025 19:27:04 +0100 Message-ID: <20251219182704.95564-4-philmd@linaro.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20251219182704.95564-1-philmd@linaro.org> References: <20251219182704.95564-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 (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::331; envelope-from=philmd@linaro.org; helo=mail-wm1-x331.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.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: 1766168887068158500 All OpenRISC-related binaries are buildable without a single use of the legacy "native endian" API. Unset the transitional TARGET_USE_LEGACY_NATIVE_ENDIAN_API definition to forbid further uses of the legacy API. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- configs/targets/or1k-linux-user.mak | 1 - configs/targets/or1k-softmmu.mak | 1 - 2 files changed, 2 deletions(-) diff --git a/configs/targets/or1k-linux-user.mak b/configs/targets/or1k-lin= ux-user.mak index 4cc6f2a6616..810567a98f9 100644 --- a/configs/targets/or1k-linux-user.mak +++ b/configs/targets/or1k-linux-user.mak @@ -3,4 +3,3 @@ TARGET_BIG_ENDIAN=3Dy TARGET_SYSTBL_ABI=3Dcommon,32,or1k,time32,stat64,rlimit,renameat TARGET_SYSTBL=3Dsyscall.tbl TARGET_LONG_BITS=3D32 -TARGET_USE_LEGACY_NATIVE_ENDIAN_API=3Dy diff --git a/configs/targets/or1k-softmmu.mak b/configs/targets/or1k-softmm= u.mak index 5a8eb66cbc5..0e47d9878b0 100644 --- a/configs/targets/or1k-softmmu.mak +++ b/configs/targets/or1k-softmmu.mak @@ -3,4 +3,3 @@ TARGET_BIG_ENDIAN=3Dy # needed by boot.c and all boards TARGET_NEED_FDT=3Dy TARGET_LONG_BITS=3D32 -TARGET_USE_LEGACY_NATIVE_ENDIAN_API=3Dy --=20 2.52.0