From nobody Mon Feb 9 03:51:19 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=1766592471; cv=none; d=zohomail.com; s=zohoarc; b=B6LCOCenBqQawmkS8uSnz/HkBdi5qIGA0irYSZn+qMlH8UPiVJVCs5z6jWD0VIKowsfF7BcdEhw3y4WD5215Dzb6zsvOpHBnuy0GVXOEw2RNqsuKFdH8k2dkoX0sOcng/W9snUJkwCdc4yVkJWck2+M4isEqYZZigRS0LQ4fvls= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1766592471; 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=ytV7sRjMhiZ+N36QlRegSL9F2KH4Bl+JY5tBc1NaTPk=; b=RYUbYgh1/bE+G/oyy40NEzn6V4x28ewS2P4qfBYVK76iDfPmRHcZ2xoL2XTLFkR8qBZFt3IKoCA8b1c2ixi8TPBhY0t0Em8VJvi8+C8Ef8yyJDpO/LRNE2+n0LGqCA5PK7P1lxgCha7ROv54tTZI2SY5cURE7eB7ugVzNH2bz0M= 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 1766592471748754.8911644154147; Wed, 24 Dec 2025 08:07:51 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vYROl-0004sY-GA; Wed, 24 Dec 2025 11:07:39 -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 1vYROY-0004r1-5u for qemu-devel@nongnu.org; Wed, 24 Dec 2025 11:07:27 -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 1vYROU-0007qK-1m for qemu-devel@nongnu.org; Wed, 24 Dec 2025 11:07:24 -0500 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-47d3ba3a4deso5918685e9.2 for ; Wed, 24 Dec 2025 08:07:21 -0800 (PST) Received: from localhost.localdomain (188.171.88.92.rev.sfr.net. [92.88.171.188]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-47d192e88f5sm295258065e9.0.2025.12.24.08.07.18 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 24 Dec 2025 08:07:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1766592440; x=1767197240; 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=ytV7sRjMhiZ+N36QlRegSL9F2KH4Bl+JY5tBc1NaTPk=; b=h0xZG8ZwdKDdZa/tnEfzv1o4K3ukG/O4h9IZsVATiMDwJRYTYWczVstIk3SFZ4QXuA de1iq3pqyIm2I5MxpIwr8Y2ocBkoUy2PoDOpx7xhssD8jrMWOKMja0ms1PQIF6v1JcAA GEmvjbj3e+donmWVqAVfkwDOSgVB7rBcE9rGTomcdNR/NlG04JFcZU+oPkdru9t4D+NF eQB/jwTESFWafiCO/KY/OkbOclL6FnLNdp9QxgDd5cTegaLSs06vrpDLpdOjkjTI1i+V 4MX9YZ7u3zsxV4uSyZUGxPP16boyR0jGn4HT0atx/pLwMHtO2WpOO/dDHbjvBkcB8jMK pDmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766592440; x=1767197240; 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=ytV7sRjMhiZ+N36QlRegSL9F2KH4Bl+JY5tBc1NaTPk=; b=PK/7dOuvqGskTDxQsnFC5OhmYOIVQuaAhzn/Ug8OaslJA6XvYn6QJlinEGcyJz3/a/ uMxE8VOtfWRiAItLjGMzOIfiwV7ITbJ4pJ/SuJW9VAKj3vsZCoSCoz4pdu0X16IRrVYl +MooRcKIQOD3kj2lCqXzw83l3OI3/QqKfuoNLrDUvGTCGfv4zwJIuiceYRbjjy+EDeZy RO0dWryALAobRhVUEmbW7BNZZr0OB8uamEImfJmEjQ6J/nAqYuZ9OonimHPySdm00W80 Nttb/AapMWXD0FRrRi5uYVc/NBBWNmUkZt9WUnjDtuquqO7amS9CoJMz0e3fZ3MoYh1Z VGDg== X-Gm-Message-State: AOJu0YxPvzg3e/BridlKkvg7rRRqpxI9M87ZJZHrC1V0r7Cvu2+NMGm0 8a/EQ/Ndwe1fjqLjTHPXRG7sOwXKEX/98QQpw2rgdJ8ljYeu4kLrE1BUJ/+0HAhHI777DO07F4Z wz42jnik= X-Gm-Gg: AY/fxX5kM9uuGaSAltRQFg94cLufhZg1kKGOm8r7ZVlBHcpjYaMW4iX7TBSEOAwHlw4 Z7r30DfoqN2w/jT/xH/KoAnY2geF7WtU17I5wZ6MjhKTp/64eSkeX9XG29PXp1p3RrJ9itwO+fI ytsPuXTFkVkGBNS4oijinSCI9fSZ/iZYLaL31H+xD4uJgHtrJAkOYpZyW2ty175sH89nuYbdqNW /PPIr+GQCBbRSYcotxTANg0Yini1MwUYAIGgau1ucRcZ2rJNzFIP/xx/z3xVIxzfCgPuf1zq/eC 7xPL0t7cucaCVO/lHR84mlvj1O/QPGwALQEAChX9O8+qs+JffVwytyP7MN5/+HnIAi9LwuH1bPB fYVXtGpv/X2HwdSwhcz9Kjvt9A0oPpAHt1InpjsQz1MeBQYGLTTLMN9euARgYkoUOfZkdtpPmRv x2cs96ttvb9opmJoerbyz1NaeDizwHQqg2vwndS8E9MyDt6EZTc/Do/dpECt9eeC348g== X-Google-Smtp-Source: AGHT+IHvUfAVfJ6SEXf71XrOGsl1X60fJzbK5i6lX/FwO16WCyigbpNyeN8aCbYug9Gf/ytPf+Kl2Q== X-Received: by 2002:a05:600c:c08d:b0:47d:403e:9b41 with SMTP id 5b1f17b1804b1-47d403e9d5amr16454975e9.15.1766592440021; Wed, 24 Dec 2025 08:07:20 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , Brian Cain , Anton Johansson , Laurent Vivier , Manos Pitsidianakis , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v3 1/3] target/hexagon: Inline translator_ldl() Date: Wed, 24 Dec 2025 17:07:06 +0100 Message-ID: <20251224160708.89085-2-philmd@linaro.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20251224160708.89085-1-philmd@linaro.org> References: <20251224160708.89085-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: 1766592474210158500 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_LE since Hexagon use little-endian order. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Brian Cain Reviewed-by: Manos Pitsidianakis Reviewed-by: Richard Henderson --- target/hexagon/translate.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/target/hexagon/translate.c b/target/hexagon/translate.c index 8fce219c0de..c37035c4774 100644 --- a/target/hexagon/translate.c +++ b/target/hexagon/translate.c @@ -203,8 +203,9 @@ static int read_packet_words(CPUHexagonState *env, Disa= sContext *ctx, memset(words, 0, PACKET_WORDS_MAX * sizeof(uint32_t)); for (nwords =3D 0; !found_end && nwords < PACKET_WORDS_MAX; nwords++) { words[nwords] =3D - translator_ldl(env, &ctx->base, - ctx->base.pc_next + nwords * sizeof(uint32_t)); + translator_ldl_end(env, &ctx->base, + ctx->base.pc_next + nwords * sizeof(uint32_= t), + MO_LE); found_end =3D is_packet_end(words[nwords]); } if (!found_end) { @@ -966,8 +967,10 @@ static bool pkt_crosses_page(CPUHexagonState *env, Dis= asContext *ctx) int nwords; =20 for (nwords =3D 0; !found_end && nwords < PACKET_WORDS_MAX; nwords++) { - uint32_t word =3D translator_ldl(env, &ctx->base, - ctx->base.pc_next + nwords * sizeof(uint32_t)); + uint32_t word =3D translator_ldl_end(env, &ctx->base, + ctx->base.pc_next + + nwords * sizeof(uint32_t), + MO_LE); found_end =3D is_packet_end(word); } uint32_t next_ptr =3D ctx->base.pc_next + nwords * sizeof(uint32_t); --=20 2.52.0 From nobody Mon Feb 9 03:51:19 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=1766592493; cv=none; d=zohomail.com; s=zohoarc; b=a3ucMwQAQOJcTtAi1Z+rp8lMlZT23+xzUzUYbmCvUH4Y9ojel3GSZgNLvJKotJptL2wPJ1340/aScQvr/pOnuFsFOKGDup8mpyj+FnQl5wBDM5M5THMXWkjOxjWA/Po3vBPVcVOnMVJMWZr9JsDQJRyLzy0WhYK9ov7BG+m/cg4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1766592493; 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=gBtqVF9aU011XQ+13ZQmCZYCeHcb9NebZ4I9xBYMCpE=; b=DFSC5HiwhJgdCkaND8C6ON8jj0B9gUIkjH2pHj7lzHBufZq5ccif3UmU0B+Zx5bOR4YZv3RemIZcwe5gYzI8VfHClrj+25yrpHohPZF2Pyh1c9Ry2NtvqLwnGmmz0sVcp4PfxDw4glwDDG/4b+Vcnr/K7LtrFJ1MNEadeJ5AUXc= 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 1766592493447521.5640640019367; Wed, 24 Dec 2025 08:08:13 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vYROo-0004th-VF; Wed, 24 Dec 2025 11:07:42 -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 1vYROd-0004ro-QV for qemu-devel@nongnu.org; Wed, 24 Dec 2025 11:07:33 -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 1vYROb-0007uT-Ph for qemu-devel@nongnu.org; Wed, 24 Dec 2025 11:07:31 -0500 Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-42e2ba54a6fso2656098f8f.3 for ; Wed, 24 Dec 2025 08:07:29 -0800 (PST) Received: from localhost.localdomain (188.171.88.92.rev.sfr.net. [92.88.171.188]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4324eab2ebfsm34569577f8f.40.2025.12.24.08.07.26 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 24 Dec 2025 08:07:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1766592448; x=1767197248; 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=gBtqVF9aU011XQ+13ZQmCZYCeHcb9NebZ4I9xBYMCpE=; b=KsnI7JRetYmKosWCNoCOGWgoI1rppdET0UUN9jRiujDM9NmE3/kGr2cvRjXCDYy6JE GHmYvlktBYQAAgvzBwMLOUaYA9hY8wQSyLN5AgoznQhQmb/sLkE9j/5YWgO8rzgnPlXc uZZSV9jM4/iNVgtQai+s/t5drVJrig+pQ//JZiHT+whkSwZlCSd3I+TsiEOfUH6YtZ8J hwECt9sUN6rxP63e1YahXKoMHGQzTM7+tvH4v/q6EHCYS65eJZniGN7zw8PeuqgSQ3ag OIBz9Gz9fHDa28Em7Gi5itO6dVmBIabf8AgjlNKE1ouW4HFwTZMBKE5Mf5cN4xHIHsFg KUJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766592448; x=1767197248; 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=gBtqVF9aU011XQ+13ZQmCZYCeHcb9NebZ4I9xBYMCpE=; b=jzDrGnYRtIKBYfnX4/03NLnOvSeDomG7b4CLXm45wJQ3Jzfgi3xQPFLje8rwQLv1Mw uqT/geN8PBdmLhAAwNYo2Uh12OeiOAXbzxtAnZbukjOq9uw69RxTi/l/8deNjIS/FiXx dmM7ZForzjpeZihxXntE8DUiGmDwf+g1X4JkjK8U2avx5b6D8BzP5Jtf6dzqww7MWBhs ccpgmK01U3cwVIeoYDMyPpHO9o8fXl6RwmWv1ICXDE52pDa5jzNc5TLfcz9cjt/0GOpB IXYT90zxR5rLUi5bjO83M2qxNThDrJXRdo2ePJaq/79sfYmzLNteu62En8jrBkeZnwS/ 7DfA== X-Gm-Message-State: AOJu0YwPMYb3r7cn06E3nmjnMkputn/PBiPzKH+Bhs7PTrNUAthZ+zeD 0uxQSW8ogOfDMDm0lBW7pb6sPZRHefeHiqtyByEAvni6qIAmfskCyqq0KnldwGlDFfgpIB7Bsha DPoKt17k= X-Gm-Gg: AY/fxX4a66EysE2u5Cmmiy0Qfi228X4Uy0thXEmO7nVjhBwrmmz5xk0x1M8E07WfEgn 3FT0rsOS76zFcwcm5K4n5TwiqJtbtg8xO1GVSpFhWOHNX6DhfhfFEIiIPyFlJwJUl2po94z9xzn 1+Nlce9JyOkdDGlz9jgVlFrqg7NLop5CNoLW6zKaEYlu6zHaTUijZ1i2X2KHXWMMsSyns1wYjnp ik3tUaso+Jrar8RVPiZiwu0OF9SL2zWqth9CUJe5XyAjZQ2BeJKuKNlJCQuTj3X2XU6lJO7Pz19 8mbbrifJ/DIeQEUogHqPqIEiRLrQQ63Cn7ViN2Ud++SuHSvX09g5YJ3wE6hflVI5LzIvhkjzwe6 Yg67I+/nfbFz2KT8pMCVHEY5TcAv6ORFye93LAmb7xc4TvW1LT0ANYoG5uX9MwmjZK36xx+J09E LjYcFl/i6F5sveLqPEqTChM8t6obS53ZRzLBG+euI/9euqm2DnB0Jj3De3c2qyQ/bhAQ== X-Google-Smtp-Source: AGHT+IG8Dezet4T6sN5vB51hGAqoCeOAnFGSLBTzVUo7I54cqNqeDqNnkxwznKhySCC/iL0OILS8nA== X-Received: by 2002:a05:6000:26c3:b0:430:ff41:5c87 with SMTP id ffacd0b85a97d-4324e701157mr19535999f8f.60.1766592447930; Wed, 24 Dec 2025 08:07:27 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , Brian Cain , Anton Johansson , Laurent Vivier , Manos Pitsidianakis , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson Subject: [PATCH v3 2/3] target/hexagon: Use little-endian variant of cpu_ld/st_data*() Date: Wed, 24 Dec 2025 17:07:07 +0100 Message-ID: <20251224160708.89085-3-philmd@linaro.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20251224160708.89085-1-philmd@linaro.org> References: <20251224160708.89085-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: 1766592494149158500 We only build the Hexagon target using little endianness order, therefore the cpu_ld/st_data*() definitions expand to the little endian declarations. Use the explicit little-endian variants. Mechanical change running: $ tgt=3Dhexagon; \ end=3Dle; \ for op in data mmuidx_ra; do \ for ac in uw sw l q; do \ sed -i -e "s/cpu_ld${ac}_${op}/cpu_ld${ac}_${end}_${op}/" \ $(git grep -l cpu_ target/${tgt}/); \ done; for ac in w l q; do \ sed -i -e "s/cpu_st${ac}_${op}/cpu_st${ac}_${end}_${op}/" \ $(git grep -l cpu_ target/${tgt}/); \ done; done Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Brian Cain Reviewed-by: Richard Henderson --- target/hexagon/macros.h | 6 +++--- target/hexagon/op_helper.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/target/hexagon/macros.h b/target/hexagon/macros.h index 088e5961ab7..6c2862a2320 100644 --- a/target/hexagon/macros.h +++ b/target/hexagon/macros.h @@ -519,9 +519,9 @@ static inline TCGv gen_read_ireg(TCGv result, TCGv val,= int shift) #define fLOAD(NUM, SIZE, SIGN, EA, DST) MEM_LOAD##SIZE##SIGN(DST, EA) #else #define MEM_LOAD1 cpu_ldub_data_ra -#define MEM_LOAD2 cpu_lduw_data_ra -#define MEM_LOAD4 cpu_ldl_data_ra -#define MEM_LOAD8 cpu_ldq_data_ra +#define MEM_LOAD2 cpu_lduw_le_data_ra +#define MEM_LOAD4 cpu_ldl_le_data_ra +#define MEM_LOAD8 cpu_ldq_le_data_ra =20 #define fLOAD(NUM, SIZE, SIGN, EA, DST) \ do { \ diff --git a/target/hexagon/op_helper.c b/target/hexagon/op_helper.c index e2e80ca7efa..08db1e9c56b 100644 --- a/target/hexagon/op_helper.c +++ b/target/hexagon/op_helper.c @@ -77,13 +77,13 @@ static void commit_store(CPUHexagonState *env, int slot= _num, uintptr_t ra) cpu_stb_data_ra(env, va, env->mem_log_stores[slot_num].data32, ra); break; case 2: - cpu_stw_data_ra(env, va, env->mem_log_stores[slot_num].data32, ra); + cpu_stw_le_data_ra(env, va, env->mem_log_stores[slot_num].data32, = ra); break; case 4: - cpu_stl_data_ra(env, va, env->mem_log_stores[slot_num].data32, ra); + cpu_stl_le_data_ra(env, va, env->mem_log_stores[slot_num].data32, = ra); break; case 8: - cpu_stq_data_ra(env, va, env->mem_log_stores[slot_num].data64, ra); + cpu_stq_le_data_ra(env, va, env->mem_log_stores[slot_num].data64, = ra); break; default: g_assert_not_reached(); --=20 2.52.0 From nobody Mon Feb 9 03:51:19 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=1766592483; cv=none; d=zohomail.com; s=zohoarc; b=geOSuIRm4N1i3u98oBMdIA/DmBo6XUxo877MqT/BuEITG0CP5IYLLv0UF/FPtorG2QgffkG/G4sX/ebi5kFlpVH38K7ZzjqqQ5DyzbALKCPxDfUEtRz5xsNMPAlz6NjdhhD9poWYIhWwVcZxykf2EqveY9h7iTwaWMaOKClYpUU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1766592483; 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=rc2VW6af/n6csojn1ZvbCAv3R8hfVcamqrxSvhqJ3PQ=; b=Dbc+6Ejqd57gXyKZ+hZt3c3tDlRtoP1P5mJJuF1OkDeRW/DkdPmvdU3+y9TOe/gHeBk5mL7LRRTarTC5H49dOIv4OJWYH+wVhGEnL7yPDDY8ecWRu/9rZ913IKe5Zzb25OMGfUgTqfB+TY6PZDPsoqE9dTCbPTK2kzEhU+9jo78= 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 1766592483136871.1650066930374; Wed, 24 Dec 2025 08:08:03 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vYROv-0004vs-GH; Wed, 24 Dec 2025 11:07:49 -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 1vYROl-0004tD-Rf for qemu-devel@nongnu.org; Wed, 24 Dec 2025 11:07:39 -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 1vYROk-0007v9-6q for qemu-devel@nongnu.org; Wed, 24 Dec 2025 11:07:39 -0500 Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-4327778df7fso133995f8f.3 for ; Wed, 24 Dec 2025 08:07:37 -0800 (PST) Received: from localhost.localdomain (188.171.88.92.rev.sfr.net. [92.88.171.188]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4325d10cc48sm25252160f8f.16.2025.12.24.08.07.34 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 24 Dec 2025 08:07:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1766592456; x=1767197256; 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=rc2VW6af/n6csojn1ZvbCAv3R8hfVcamqrxSvhqJ3PQ=; b=ooW7BrBLXWx1R4gIY8MgV9C2jxKGiXhbOZOeRGGAaROzkHN+1EKJPJv86t18OXQNk3 HV5qjtA8TUHHIwEqeapfW6ekKnnNnfGQ8sYoXY2Sf6z5/I9Jf/zJS4qz/ew476B4iugv pd14zPIa5tjn82SyKU3LJKmm2DOcYS44hkbncztkBA6ZeAmeiCXjc6t0ZeGvwyNvMKtp IMNz3aypy/LPhQGH1kaFgSB5Mpq2+jLjRTE3Z0cha3gBFYOd8pIgBm44jpYdmZ7r6ru4 g3FnHTVrgKJxD2itcaue80uzfEKCC0hMwrXsmQxmNoq+LiZ8tJn+TDtf/gXpwTQyTCTS oJKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766592456; x=1767197256; 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=rc2VW6af/n6csojn1ZvbCAv3R8hfVcamqrxSvhqJ3PQ=; b=mExZCB8LmLjh8usJSUVHT1KLARD+ge9Z3C2Ng5drbGdvTIKPptt9/S1Zh2xj0PmdML MvgMZDsd8/000V3zRjVixrc/+sFP9z5GPIYC68ApPT///zwHd/QGQ2hGFRG5mtW5KSjK Ocd+0oiXtKnZzcB0l5E5fhR6hH2tOxAtIZzDEdZj3AyGZJZxJp+jRVneJcSlT6v256fR H5rFb41UREj4yBWToeqDiqi8Qdb7Fx16ZFAtaJ5e/q5M1ELiehl8QoidSGrCtqnB+0jh B4Rii7S6E4ggcZDRPepJ3PXHP3h0ott3DX5DsSO7WRN+O73+DrAa9VZmyKSmKsbgGFCr hq7A== X-Gm-Message-State: AOJu0Yy/1N56xytBg6mPxW245al98J0Vl0gWD1h6BltmgSE6mg4F0WNT ST21ZfBSrOomsuvn8qPMVIuXvM1zY3hLvFeeCJLmNj6poHHWRxShhJDzi1EbqPr3X6v21L2RZeJ 9A9zDpms= X-Gm-Gg: AY/fxX66CfQ01YFE8/CoFHVaIKRDkQM7I2+Ea1GpK9PxJ5sWcAELjrLML2Apv5McBzO yv8VhpwQW6BeXfmAc3l6Bp5JlPndTJmXUoKqOfAmuYSvpDlOQOmJfDoCBKwSPJECfC/S8NeaN3N quIF63dipnLCaPo7qq1XTMaCXDWuB6+s6mof7NMB4Vf6rQtwuAop+gY8ivQd8z/95cEtYXLlmQ0 dHL/9UKOADyI1rYYMtY2jdIg3B/jlK0G95gknXbdt5J+2gl/AN108dqcbH03aMN22P4yH39hvqj wAwp8PRLLJecX/+56/CONX7YwgH0cTiHnZSJ7wcUVWhIShK9QZRK8vgp5MmTa9c3RKewpsIBQeb +LnSzntt4Wyyba8r6rDV8D8LNGcpUzckyhxVAMitKsIgwsTPgbTAgTT8aMtjle0RVTKs6etVPgO NEbBLe/4fNuoR31CO2LVY9xDLJnkg3KPOwObzBhdDcjIjLyk0ytQB2v10= X-Google-Smtp-Source: AGHT+IGLRXQfLw1+XDSWsnXQlLqirup5dQhCU2nKSZYkFA3u32XqY8YCTruMXlqIosSuVHztJTZ5zg== X-Received: by 2002:a05:6000:2305:b0:430:f8b3:e834 with SMTP id ffacd0b85a97d-4324e4c155dmr22478818f8f.11.1766592455752; Wed, 24 Dec 2025 08:07:35 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , Brian Cain , Anton Johansson , Laurent Vivier , Manos Pitsidianakis , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v3 3/3] configs/targets: Forbid Hexagon to use legacy native endianness API Date: Wed, 24 Dec 2025 17:07:08 +0100 Message-ID: <20251224160708.89085-4-philmd@linaro.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20251224160708.89085-1-philmd@linaro.org> References: <20251224160708.89085-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::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=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: 1766592484127158500 The qemu-hexagon binary is 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. Preliminary commits allowing this final change: - beb38fda0f0 target/hexagon: Replace MO_TE -> MO_LE - fdcb7483ae0 target/hexagon: Explode MO_TExx -> MO_TE | MO_xx Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Brian Cain Reviewed-by: Manos Pitsidianakis Reviewed-by: Richard Henderson --- configs/targets/hexagon-linux-user.mak | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/targets/hexagon-linux-user.mak b/configs/targets/hexag= on-linux-user.mak index aec1a04d1b4..6763e2111d5 100644 --- a/configs/targets/hexagon-linux-user.mak +++ b/configs/targets/hexagon-linux-user.mak @@ -3,3 +3,4 @@ TARGET_XML_FILES=3Dgdb-xml/hexagon-core.xml gdb-xml/hexagon= -hvx.xml TARGET_SYSTBL=3Dsyscall.tbl TARGET_SYSTBL_ABI=3Dcommon,32,hexagon,time32,stat64,rlimit,renameat TARGET_LONG_BITS=3D32 +TARGET_NOT_USING_LEGACY_NATIVE_ENDIAN_API=3Dy --=20 2.52.0