From patchwork Thu Apr 3 23:57:45 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 878016 Delivered-To: patch@linaro.org Received: by 2002:a5d:6dae:0:b0:38f:210b:807b with SMTP id u14csp3529763wrs; Thu, 3 Apr 2025 16:59:56 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXkPBEqrQJKyfe1IAx/n4HS7Jmb1qGJascGbkKtNMAnh1xe2C3+Di0YgzEcB6YA1HdaZSUtzA==@linaro.org X-Google-Smtp-Source: AGHT+IHoVtLL+17/BsTKv+8oClVhjm2MQjgVQV0RqWM4hrvhygWyijIgscHtQao4UJdWd7O286qG X-Received: by 2002:a05:620a:44d1:b0:7c5:5229:2f18 with SMTP id af79cd13be357-7c774d1c7d2mr209062785a.6.1743724795782; Thu, 03 Apr 2025 16:59:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1743724795; cv=none; d=google.com; s=arc-20240605; b=cYHS59p1z4vZfWjz6GuOELXYvsywuu3AiKGUWmAT7udUw9fr94dwprWDgH2j/E1Uef 144qK0h4ow2b/Ex6tKdBCS8dxOsLmcYvA5Fkp39dO2HQv77sDwvBvEJURL59z46yicWq h8AbId30oI+Gkf+JMbZ84oU4GIGtF3qhChIwT6/JinRgfcoRtzQo9JtuP/UWr/I5r1KY +eEqmjVx6dqS4v3f6AWgeMMWK+aGzPWdupAHOgwputVQe6zXDIq+vUP3sG/qP96D+XW0 RR92KRs760uOfqCg0O07FCeadkjyEYw9I9/6RtExHNiDwrBf7XlFtPyVSEc/Qs5NB8DR r68g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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:cc:to :from:dkim-signature; bh=PhZdnfz+UN3n5DTP+/t+ydvw2Q2+PLLpLlc8rXzZtok=; fh=cGDjR9+NH75RtMqDHQPhCvgcQemKyI3acX9LAGXbf+c=; b=lCt1zZ0ErDG0jTkOJ1WgssxF73pitNDfIVUJf1oqLZ/Cbc4ZoWDWZd5V1yRMDKXMem cf+dVxqks4ty/4wpKyuOXuWyI2aYxTFI5shv5+MyXEPaJ9tk1kbtMwAwCG/HY7IeOo0p MZZAVse6UxbRe4Mx5RTFyUAIxC4wLBP+J1eOTuwWh9dfcbB7SsUxS56x6YSnEg0xn36e eMkVLNsXAqOKWmQzb98zEWkjukwDuMx0cQtqIrRtNMR87v4j0mWmBQBphXadJC942BnT NYI+K2ZZEhFMqIj1+SxLTQAsc1DumW8Nh+tkum7bYSLT3JL5R1f0c1avp713am5j4s7z UE+A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kRx5dde1; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7c76e74897csi218978685a.8.2025.04.03.16.59.55 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 03 Apr 2025 16:59:55 -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=kRx5dde1; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1u0USR-0004Uh-1n; Thu, 03 Apr 2025 19:58:51 -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 ) id 1u0USP-0004Tm-Ow for qemu-devel@nongnu.org; Thu, 03 Apr 2025 19:58:49 -0400 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 1u0USO-0002Se-3m for qemu-devel@nongnu.org; Thu, 03 Apr 2025 19:58:49 -0400 Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-39c266c2dd5so1253652f8f.3 for ; Thu, 03 Apr 2025 16:58:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1743724726; x=1744329526; 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=PhZdnfz+UN3n5DTP+/t+ydvw2Q2+PLLpLlc8rXzZtok=; b=kRx5dde1Yog1lAr8bZtO0rLvJIknK1sCN4I/81vI7edQrfZPIsajzp8t2yZC1MJzLz pCdGMLBw7edR9Me+5ichLOpMfrybljkrSORdPupUzysU5E79xXHnEd0V4k0ph73KmgV0 v9o9EMeDM04ouOesuYi1y2/kx8aS5R9q3PenwJj+V8ZSAJ/QjQ0PinEhDXJO/VhzzIgh bzKCoG4tKkP7Jdl2C2iGuR+uuQpiEENAr8EGpNrAZObsT6H8khOrBkA1iTic2y0ssmAz yrIwVwLk2LJ3Ym1020hIKSLUlf5fA5fooY91vluxe32r05uiK4GX1OScqdjZDrxIkP3t Jj6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743724726; x=1744329526; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PhZdnfz+UN3n5DTP+/t+ydvw2Q2+PLLpLlc8rXzZtok=; b=buYXKQgZzPXVsTzyuhlOb3grCew0IXH/jQy4Z3BHSjKDY6orR7cVn1vFs2ctk+d8Mh 97VchnnSswNUFLZyd2qmf8iHgalBSDVfOSQlVm5IDR81gBkvN4D1gSO+mqs2gQzvjF2/ bl377JcGaK96jjjx3Wu2eBt1yEdbSursBQqu4yI942lg1jTwQEGDfjyT7U83egLjjtzK Wa2GPtw0W10BmJFY0bD/c8x3yPTrqmPVMgJXd7v9i3nUZ4sqE45ZYaPCcQgtctael+z5 yJHzV957dxizWxrauWwUDNZicp/WRIIjFdQNCbtHjC1BWCgY7iM6pP905WxUtgyL8SXL 8Bng== X-Gm-Message-State: AOJu0Yw1wLtqlaffn+fXJocpe+ZuazOHXk6EPH6wNcrXB/rlMXU3OGM2 sIRzILzdYcu/ct6EApepAE1+0ezF0IaxrsK/zEZJP6C+5QlilcpxD0w7suzl+zpdnNl/YoN6xPD x X-Gm-Gg: ASbGncvsA4E03k01TEiJtEXm1BZKN7xWRv//xuaD9dbl0FPE1ppbgQp/SxahZNn6aMz sfZ0TUQ6wZg8lF8VC0ae0wnAoHsXRLuxt/gQhzBEmSYZFTRVHt50/EbI2It0ZDXba1bsOZUDdjf oRpdvQGUhl/rt8vCoA2W/xw0WRIsgir+XAltwF5XxZ6oIPAxRlA7o096SQyOSJVu+AN8XObcwet b6AhGuSf7cy4/yo0RAXBlEE5IQ7AroSmGito5RqeMcke8/pRkJjc181UBbdqbmCtzeZLQ63+HZQ mlcpTBarEwVfM00Kx0U7cabVN0KMVqKvs6q2Jg+61ieQrAaEE8olUBZuP7CGkM/UPoqTd5ykJKK VNAI6HWx58vLq+WC7KVY= X-Received: by 2002:a5d:648c:0:b0:39c:1f02:5409 with SMTP id ffacd0b85a97d-39d08b10724mr516977f8f.9.1743724726256; Thu, 03 Apr 2025 16:58:46 -0700 (PDT) Received: from localhost.localdomain (184.170.88.92.rev.sfr.net. [92.88.170.184]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43ec364d071sm30461335e9.32.2025.04.03.16.58.44 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 03 Apr 2025 16:58:45 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , Pierrick Bouvier , Richard Henderson , Markus Armbruster Subject: [RFC PATCH-for-10.1 03/39] target/arm: Filter CPU types for binary Date: Fri, 4 Apr 2025 01:57:45 +0200 Message-ID: <20250403235821.9909-4-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250403235821.9909-1-philmd@linaro.org> References: <20250403235821.9909-1-philmd@linaro.org> MIME-Version: 1.0 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Philippe Mathieu-Daudé --- target/arm/cpu.c | 2 ++ target/arm/cpu64.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/target/arm/cpu.c b/target/arm/cpu.c index 377791c84dd..b1aa482c726 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -50,6 +50,7 @@ #include "disas/capstone.h" #include "fpu/softfloat.h" #include "cpregs.h" +#include "qemu/target_info-qom.h" #include "target/arm/cpu-qom.h" #include "target/arm/gtimer.h" @@ -2759,6 +2760,7 @@ void arm_cpu_register(const ARMCPUInfo *info) .instance_init = arm_cpu_instance_init, .class_init = info->class_init ?: cpu_register_class_init, .class_data = (void *)info, + .interfaces = LEGACY_BINARY_QEMU_SYSTEM_ARM_INTERFACE, }; type_info.name = g_strdup_printf("%s-" TYPE_ARM_CPU, info->name); diff --git a/target/arm/cpu64.c b/target/arm/cpu64.c index 8188ede5cc8..9f8c98563ac 100644 --- a/target/arm/cpu64.c +++ b/target/arm/cpu64.c @@ -24,6 +24,7 @@ #include "cpregs.h" #include "qemu/module.h" #include "qemu/units.h" +#include "qemu/target_info-qom.h" #include "system/kvm.h" #include "system/hvf.h" #include "system/qtest.h" @@ -856,6 +857,7 @@ void aarch64_cpu_register(const ARMCPUInfo *info) .instance_init = aarch64_cpu_instance_init, .class_init = info->class_init ?: cpu_register_class_init, .class_data = (void *)info, + .interfaces = LEGACY_BINARY_QEMU_SYSTEM_AARCH64_INTERFACE, }; type_info.name = g_strdup_printf("%s-" TYPE_ARM_CPU, info->name);