From patchwork Fri Apr 18 00:50:55 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: 882298 Delivered-To: patch@linaro.org Received: by 2002:a5d:474d:0:b0:38f:210b:807b with SMTP id o13csp587373wrs; Thu, 17 Apr 2025 17:52:10 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUNS/XWvsGbb8WYT9ZZGPlYs6IXmuHCKF2gK9KKreVFB2u5Xqh+Qj2wmyTqxlyF6fOpyVbhQQ==@linaro.org X-Google-Smtp-Source: AGHT+IEpEOZJGm4QcUTDuYA7h0wVtE5JHvh3H8vhRh2VTtQA8M5++Z+J87su/L16Wp1AIlwNQvca X-Received: by 2002:a05:620a:2949:b0:7c5:5003:81be with SMTP id af79cd13be357-7c9280186bamr153795385a.43.1744937529727; Thu, 17 Apr 2025 17:52:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1744937529; cv=none; d=google.com; s=arc-20240605; b=d7UEPkkmKrpsKhVibDnadoXXG7sNr3lzRXtX0VKlopPoNzj3+quw7PVj+Sq1juZUDV VqRyunU/9rpRQ8B2pRf10XdVyIYsVWD4Pu5t5VXlKBFwKv5bpMO9jXrqXB1m6cs/YGeg LbEk9CtmsjW+4vNufD24v9UB2BWhKoPF6nW9Oa/9O+LkZkRbGpJwdtvbNVTLsc3xr1UG Jav+RI//ruwfpF48fF/+o/bBCpopBRUMPeD9/aolLkasIUnJUSqgaBYYQ8ffY+KLT0zU dE0I4qML9N3Lig3i5jqpusVZQWMk+ew1ml1LLQp58Q0gJbcn8cnn43odo27Y5bZP6IG5 bGig== 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=HcN3OSzYH87XaR5VdWjr7Gc7b57JUTMWUSMgbSiV6+A=; fh=kwxRRZuDS/k2D+6tG2y9ZPN+LkCxPeQzJVeWSht03/0=; b=ECIxoD8jwy8rHkfVff81aFWjnOidc+k9/zy6GvO8LNcbbc5kt3IGaYEa80r5ngeq7y dSXapAMCdl+RnxrIhuppYst7NBGhUrqlLL1EKvCEW55kCbMFQ1v+5eKB0wjox7akDPDY zEiljE34iRwwm9zZdbjqIba/4dsPMs18moMeuTs6ZRMMC5H249cYmZS11d7WcRqtq4Qv iHulHcCcs88z11W2hpRUN6XPxTSTS9t+XnBcpihVgCYfKVk3ktmKcDc//Z9ge/XZMXVx v5Doy1HjjkuYktlS5ZeHpwtbmwFPbkBJ1WcuAx9O9cifU+V5UqeSj71lPwWWxIOUlaEC ayeQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FYCOtZ46; 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 d75a77b69052e-47ae9ca39f9si10575361cf.279.2025.04.17.17.52.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Apr 2025 17:52:09 -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=FYCOtZ46; 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 1u5ZxG-0001yG-5e; Thu, 17 Apr 2025 20:51:42 -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 1u5ZxE-0001wj-QO for qemu-devel@nongnu.org; Thu, 17 Apr 2025 20:51:40 -0400 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1u5ZxC-000608-W6 for qemu-devel@nongnu.org; Thu, 17 Apr 2025 20:51:40 -0400 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-43ce71582e9so10936265e9.1 for ; Thu, 17 Apr 2025 17:51:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1744937497; x=1745542297; 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=HcN3OSzYH87XaR5VdWjr7Gc7b57JUTMWUSMgbSiV6+A=; b=FYCOtZ46YaXyt24K4JBYLDBH0FgMneKJ5OiqqLhhw5dW5yzIZOIBDciht9O9kVFpCT XnrYzQ0BcPzoPjncqgNcvHDpipmMMrcswFoqegXWCPsOCHIdbdIa80rX38mmSkSSabUX bj2X9nEkrhRMdft4yKMp8m2LBANaLLi1GADPjE4P2vdZBF8Ivx4yoL8KlJ65EqNu5vda feEBZsukvZrZyx+RFrlBR8pihITZb8hb77fwi++WSYua/foG7quNPDQcS5onDZ5UA0m0 UW4MttSJOe8RI0SMy71GvTDCI8+P3Q1VBqA8weQEMW07ji1pPiGyvJQTjB8Kppd0CSFi TCQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744937497; x=1745542297; 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=HcN3OSzYH87XaR5VdWjr7Gc7b57JUTMWUSMgbSiV6+A=; b=bNR1znt3j4OZmmYOuR5DQiuA7dFhsiOqn5siF4MoGf7iZt1YtyAzDo33yNFrudgYZl 5DNeQJryXzzAB4nGtnnBX9cDCFJovJqLQGkNJRz961EazLanOUnl+VLNyyW92m8vSObE v35YGS81pAvQz/QK5kU2Id/5jgVaPQLc4HQ5tcgkKMxqcxomJfo7u8rgk4Osn+i7cD8G 9HEUGuoLBwvk/0wQ2bqdhES1LRjTdMB5ED9lqdhYOnURbsCe4+31PSroRjv1At1aB61q XE9KmWdOw14pmxTXlhOuf/VggRJA/82Sryu7pROAXgubrCEdITu5Jzt4C1XtGJ2PQMB5 lOVA== X-Forwarded-Encrypted: i=1; AJvYcCUHP4AeWIrK2mw3PlugILwwTkvwhACo0uIvWaix6iYw2A+iviAbUPVvFeC3ZUAE8gZMhWAOzMS7XYoa@nongnu.org X-Gm-Message-State: AOJu0YzgYl11fwa3hF1NeXB8W2g0s/VIiC38jp01C0SvO21n4q8YHDR9 Chj8lPIVbMTHoyN1GHDUfkJIMScUvd0allg5vmRM56Rf70AAiWiYgLnV04SZrgI= X-Gm-Gg: ASbGnctioe0617TQJETyN3zPaXgiOgjOqGbnbiE0axF/y7T7PN2+HZiJRxBwfrEFeXR 0wXTWFChpuaMvRzfW+I1+QZJsXNs1Yrd5hUyWhfMH5juhuWrLMe+u1s2GBVKmMRkQgy/TbHrTCP HKem5n3U61X2Gl42KGo28Ee96+eE88UIDXhRxyxcfCysQkow7oNdZ/ahIl5er0j8M2LPlSUREyF YRlGR+gRXL4ft01NUjbYB4CVM/0dvWxRi0i4BT+F1ojS1nXp+w261+iBGrxTmeAWn4ZVHIiCc6m jx36+5buz0rLjYetxLWJl91+aYiyctZf/I0Ob2xXu+ijRcyPjH/UGCWIIkNxImhJkGC/D5ERNVr l/Vy3DBKuXccitCiarau0SuI2NVgnJ6Q= X-Received: by 2002:a05:600c:4e0b:b0:43a:ed4d:716c with SMTP id 5b1f17b1804b1-4406ac0ef62mr5423695e9.22.1744937497566; Thu, 17 Apr 2025 17:51:37 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-39efa421c79sm1161834f8f.1.2025.04.17.17.51.35 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 17 Apr 2025 17:51:36 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: Pierrick Bouvier , qemu-devel@nongnu.org Cc: Anton Johansson , Richard Henderson Subject: [RFC PATCH v2 07/11] hw/core: Allow ARM/Aarch64 binaries to use the 'none' machine Date: Fri, 18 Apr 2025 02:50:55 +0200 Message-ID: <20250418005059.4436-8-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250418005059.4436-1-philmd@linaro.org> References: <20250418005059.4436-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::335; envelope-from=philmd@linaro.org; helo=mail-wm1-x335.google.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 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, RCVD_IN_XBL=0.375, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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 When we'll start to use target_machine_interface_typename() to filter machines for the ARM/Aarch64 binaries, the 'none' machine will be filtered out. Register the proper interfaces to keep it available. Signed-off-by: Philippe Mathieu-Daudé --- hw/core/null-machine.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hw/core/null-machine.c b/hw/core/null-machine.c index 1ccaf652eb4..614b52dae0d 100644 --- a/hw/core/null-machine.c +++ b/hw/core/null-machine.c @@ -62,6 +62,11 @@ static const TypeInfo null_machine_types[] = { .name = MACHINE_TYPE_NAME("none"), .parent = TYPE_MACHINE, .class_init = null_machine_class_init, + .interfaces = (InterfaceInfo[]) { + { TYPE_TARGET_ARM_MACHINE }, + { TYPE_TARGET_AARCH64_MACHINE }, + { }, + }, }, };