From nobody Tue Feb 10 19:10: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=1766161368; cv=none; d=zohomail.com; s=zohoarc; b=dW752GfofNZe7QogLPconJTdr6uBuiOlRfoeofvVeV/EuWBNhtPMvm2Wv1krV3661E7ZqkSc9gacDjqBGp+6FTikNlLYVU0OQsYTgY4DA8xM2KsBU9W+LPhskCIvkdH7L/o4Zk/Sp7U5vWqkZd41RT5Tgt3di1hbZW9QcV/B1xc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1766161368; 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=BpjgfT5VSI3t/6S6vaApflnZkyWTsFc2Sy1vcWpsXLI=; b=nOYMUn1HZ7E5NnnIcve9gudPB3DjQORTVozA1bO41e4uYUJ3n6Vi3CwqV91ppgmpk74PGW9B9nZoFE98QL1Uo5cuFKXGjrKIe4YEZWfNnwmCbFbrWq8noyMejb6MO6FvZr6TZ01YXpQ7fTs+M+VenIoiiPRmShOAdxnCeD/nEOY= 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 176616136880986.43281675347521; Fri, 19 Dec 2025 08:22:48 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vWdFZ-00044M-NU; Fri, 19 Dec 2025 11:22:41 -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 1vWdFP-0003pR-Q7 for qemu-devel@nongnu.org; Fri, 19 Dec 2025 11:22:33 -0500 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vWdFN-0006Po-6Y for qemu-devel@nongnu.org; Fri, 19 Dec 2025 11:22:30 -0500 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-4775e891b5eso8164005e9.2 for ; Fri, 19 Dec 2025 08:22: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 ffacd0b85a97d-4324eab33f5sm5911303f8f.41.2025.12.19.08.22.26 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 19 Dec 2025 08:22:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1766161347; x=1766766147; 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=BpjgfT5VSI3t/6S6vaApflnZkyWTsFc2Sy1vcWpsXLI=; b=tlU4f6dVCNrDU9aB7kiW8ph7NOx9eMUbfppTIkrVhVsTfGQ99uZNk1k1n3NleLrQZh /ZevyRoi4WyAiqHOFwFZ8qQ8RkOTSiyK8uO+shStkDOS7i3CmzUCrcrVDGah3pnIJWhD XOVqyMkz8cAegbB7l2eB4JCg8qRxpGansDvOqXvzfm9JLEx38X7ficYQjIOmJWrZsoX8 ugsdHMzPtA7sMBaCouAdBL3e6Qn675QmF1aI9YWqoqAmnpadDUmopW/7ubaesMZ21gmb Hsi0HegyHsc0WRZ8CO+xgc/RItNgvmFEFBi90/VaKt44znc7f/mvvCUoRbzVnwd85PMy LS4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766161347; x=1766766147; 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=BpjgfT5VSI3t/6S6vaApflnZkyWTsFc2Sy1vcWpsXLI=; b=s5N45xDqzhdkCGHSx6KNs1bPjEGJatgTDA02TX329zP/YYWKcq007Cpbb0wMLh2W/l edGSx5OwlmiZqFzmwAJGyuHvLS1DlN1H0L7Uuxbui5rmihXVst/q5wJAdiIfPDQSNGFr EQoncXBDBoR+iLCXM4edK2oYhUBXfoMXhLLBy9s0KcjPJTflC/c9X//aeWu2163hOerm 2J95v1pRxcwCQaxgkMMsHNHDqPQlwcIrK5SIV+14ckmXM8O/oNvJWaDs2/3tFsmJ9hdp /Ba5qZewEIrNgFnz5uA+eRcEsK1YplAjv7G4mhQafIpl18EK15vekAs98LnUfNl6ocNy 71kw== X-Gm-Message-State: AOJu0YyYwzKvikY2ygecSawLxXysHrk3LOda3d/ZbP1b6CoXpaz12eJJ EciWogozlbjoTtYdgfY056i0ZxI/g6HQ9y2naOEx7W5iB3sUXqOz5+hY/Y03RfGD7sT8iGLrznp DEh93qw0= X-Gm-Gg: AY/fxX4bPg9ouuFIrYhT+wOyd0CYKwh73Oa2cSfgAaC/BWpK9oct5HOmC7idCqo7pvF eGDh25PC7gFvIpc8zL6L+thn3IG0Q/3xaGMO3gayXADht93PuWAMxLilW7TPD2QmftQKDxLR/Tn 8YAXrurHA/H/unJfEIeOjgSikjL7gxFxkVR/DqJQWsgpDDmWVtNc+8L0CSYyPqbRHRm6xmf1n76 h7Ab3TPb6jgTiiRIojrS/tADF6bDg5NDW1UCGuBDY36Mc2z11baPrvcBLzVoujiqGJsUaAl5/QJ BdD48eihe3zOjd62XW4v3evuBaskF0elAzvmAiFLgBrsAO68MI4wJToNFJXVzXZHZ3qwNXuHl/9 dlGLuyJ+dsuPi4CvW1FTesngFkA0XpTqdBqd2VfBsfSvucv4vLSJTrne3Du6xnC86mC7uCRJBvi 5Hy6IqCEJCHgamVSVbY8AEAu1vBQlYqmdpXID0o+ykbq7/Dnl0CQUvyma2fKy+ X-Google-Smtp-Source: AGHT+IEIoop5UneoLJ0ulg3j7HfIDhkh8nnEHCs1MnnRLTrcdx/hSuqQmA8K8qB9dza+R65emYP0oA== X-Received: by 2002:a05:6000:2386:b0:430:f718:2388 with SMTP id ffacd0b85a97d-4324e4bfa20mr3195495f8f.8.1766161347302; Fri, 19 Dec 2025 08:22:27 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Peter Xu , Richard Henderson , Daniel Henrique Barboza , Paolo Bonzini , Pierrick Bouvier , Anton Johansson , David Hildenbrand , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v2 21/24] system/memory: Restrict legacy translator_ld() 'native-endian' API Date: Fri, 19 Dec 2025 17:19:48 +0100 Message-ID: <20251219161953.72724-22-philmd@linaro.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20251219161953.72724-1-philmd@linaro.org> References: <20251219161953.72724-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::334; envelope-from=philmd@linaro.org; helo=mail-wm1-x334.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: 1766161369423158500 Guard the native endian APIs we want to remove by surrounding them with TARGET_USE_LEGACY_NATIVE_ENDIAN_API #ifdef'ry. Once a target gets cleaned we'll unset the definition in the target config, then the target won't be able to use the legacy API anymore. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- include/exec/translator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/exec/translator.h b/include/exec/translator.h index 3c326555696..30e6596c5d7 100644 --- a/include/exec/translator.h +++ b/include/exec/translator.h @@ -188,7 +188,7 @@ uint32_t translator_ldl_end(CPUArchState *env, DisasCon= textBase *db, uint64_t translator_ldq_end(CPUArchState *env, DisasContextBase *db, vaddr pc, MemOp endian); =20 -#ifdef COMPILING_PER_TARGET +#if defined(TARGET_USE_LEGACY_NATIVE_ENDIAN_API) && defined(COMPILING_PER_= TARGET) static inline uint16_t translator_lduw(CPUArchState *env, DisasContextBase *db, vaddr pc) { --=20 2.52.0