From patchwork Tue Apr 22 14:54:47 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: 882985 Delivered-To: patch@linaro.org Received: by 2002:a5d:474d:0:b0:38f:210b:807b with SMTP id o13csp2456417wrs; Tue, 22 Apr 2025 07:55:52 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUHa8N6BGln3BEBhgFcdgbTCERsNcyu//a7Zk1QnplEEPBg+F1IA3aFUch7UPO7yVmQ+BLjJA==@linaro.org X-Google-Smtp-Source: AGHT+IFOwVXivdNPZd73Jy8zxJk+gneT3yf7KGO9y5zilMZP62QuvlkwWa+tyZKxI1Er8WlwPSha X-Received: by 2002:a05:622a:1354:b0:478:f69b:ac9 with SMTP id d75a77b69052e-47aec480b64mr254174581cf.11.1745333752591; Tue, 22 Apr 2025 07:55:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1745333752; cv=none; d=google.com; s=arc-20240605; b=fqVmT5KbLXS5p/sFW2BOqN9upeuGQ94AIWY0lNQMUuxCtfHUNtpn3lxa6af0HMxSy7 qaR7AEPazNKltV9bVULe9ZFhP0mMcmaZwEp+9URVGBDZ0hXUSCV+N04gp/9s66D2ZXjp aXit5WsRL7ZZ3/k4l17QHqj/UyNw7RM7HX0Dtw/gwOJusNvCMWeQ/D32+jRTyL24GLHs J0W8DZFYdvYTotUlXU9FSjdUEYDnw6BQDnhMsDKhYRdAwbeo7EizSISyUZvPBu/iMpQS T4EOb++gSPUqur2EovsEpK3oFSYW8lApVhzkHk+Nc+CdOTNtR68jBCVPvx1b/E2o9Pwp PpTw== 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=1cjOcSs5mbhxyNi9CGbhSoHxduGzG92ImG84oID1+1U=; fh=98FKcUbfHOMAWlQQi9/5y14VVYgcGa56vjU1mKYkvXI=; b=Vk1BIWOgyoTx9elxHutbkjNLD//zNZM1XqKsQyp8RRts+ErEZLBX3Ag823SwqqP/tA NAR30gFGJ1SWUbkuisagvN6vBil0M5BuzxBQ0iUQdSZaKnds0MNf57+mg8tvyPS4HXqM rDU+mtGY9RzCTTfBJNwElEanCIlHxWj47J8TAHhLk0TWPhjD6AP+ZCX9cnufAQbUWaLj /QN2CcfXzgeexPO3+E9K7dnucfakarpFWHYPRxs2QjZLzmZ/itbeCyeCKLG1pCP75mn8 h0AsvEnMXT4fi89DwNTaJQQOM2BQvtD1pFe7ok7/UraXGBLpuIx3+4fUOieK7AJJhiXg eo0A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Mp/7mUk/"; 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-47ae9c0e143si111604421cf.50.2025.04.22.07.55.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 22 Apr 2025 07:55:52 -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="Mp/7mUk/"; 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 1u7F2B-0006sY-Hf; Tue, 22 Apr 2025 10:55:39 -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 1u7F29-0006re-K9 for qemu-devel@nongnu.org; Tue, 22 Apr 2025 10:55:37 -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 1u7F27-0005By-Pk for qemu-devel@nongnu.org; Tue, 22 Apr 2025 10:55:37 -0400 Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-39c1efc457bso3289522f8f.2 for ; Tue, 22 Apr 2025 07:55:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1745333727; x=1745938527; 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=1cjOcSs5mbhxyNi9CGbhSoHxduGzG92ImG84oID1+1U=; b=Mp/7mUk/8cT+MM5JtSSIFW1uzEclwkJltvbhWK/Eq0qU5ncjnN/oM+oesAVLMfVVhp aVSFLObG9QzdpHPh+PQkcQbaZ/TkNCjZno9+5k8efbN7cPVgr0JtMn/MG4XgDRmNWoJC vMQZf/8eG7yc5cSPKlkzkovVfLZrHnNLnLX52ddWVM/4Odk/1DCHnwhqVL93+3eSevKr 7ZiTVQ6NntNZgeAPAHTtlYV2fD6O7budtVcMnS6ged/aonvKvXr+a87u+X4rFQC61dzZ ++/ZFTJEvuKUrd+ArEWmReoSNKIW+A0vH3c08EN1pic2SsUlUxh3Bq5xKQiRlmA/JiXH /zlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745333727; x=1745938527; 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=1cjOcSs5mbhxyNi9CGbhSoHxduGzG92ImG84oID1+1U=; b=KsdiUgsQXLyBgQB+GgoAOCQW/IKcfbwOGFeKuFP2nADE818MrHFK1lW6LW1o6HT+kr aX1A48nYMJq3zskLjumq4YlTk11MwooodhfMTRkNyLWh7swqt1755u9PWmcEwwb7hVkl 24NNmCXspz8/28di2qG6qyH2HWNU0QINxvDpCWwWwwgrtA56lIU6oc64Kcvx1cTyQf/C BQwnEv068TJK8fL9WEQ+pZf8Er8HIEZvC9V6jkPNBJDnYNX/TW6urVt3jPAz+SbFpsNC lCFfpbj01+pem2of+9xZFYYcGp2vGdt5QXMO0CulVgm+7rYbPnjuK3zoUikc5tzZURQe Xbwg== X-Gm-Message-State: AOJu0YzS5mYZiRD6/CJwTfv7NHMqFpCNFypQREX/bl6PQv6INl31+Hv6 IdpE0eYb9+x1wDxryzQLnBa4m1Bm5MLvnwiif337+qAglRsfecdLiJqM3kXi+etcKJNxW9ZPoXj H X-Gm-Gg: ASbGncsvbH4/bEi8zBE5S7KaiKIOTME+eeYbngNqfysiq6RECiaBdlboZqvAyVzcqwF oxyVOQmee67nzr4f54m8F9E4DxQtuMSrEKgBKtHbq2mIF9VRwdEIF8cnqJMbpedbypiCapRBYd9 DAbDx8NNgMYq4hNAX9vwHcSY8PPnljYezOewnFY3laFWr1wPuUzeAucakwn+jC07PMJR2vZYl1W tC5JysNqqyT+72T2TtrybwJevua/PuDoHleko4WxfQ4b+MxsXyfbIEcudPraG264viV44jNhdVW wkkb3qrKANiwnSo8b2ln+cmiAKmrxWQZEupROUIKoM5CsGdX3iu1yYO784YHv+PBQ/gCfzceMyG rnScpoCrNYIqnClc= X-Received: by 2002:a05:6000:381:b0:391:4ca:490 with SMTP id ffacd0b85a97d-39efba5f84cmr13052423f8f.29.1745333727621; Tue, 22 Apr 2025 07:55:27 -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-39efa4a49b5sm15482164f8f.86.2025.04.22.07.55.26 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 22 Apr 2025 07:55:27 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org, Pierrick Bouvier Cc: Richard Henderson , Anton Johansson Subject: [RFC PATCH v4 05/19] hw/core: Allow ARM/Aarch64 binaries to use the 'none' machine Date: Tue, 22 Apr 2025 16:54:47 +0200 Message-ID: <20250422145502.70770-6-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250422145502.70770-1-philmd@linaro.org> References: <20250422145502.70770-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 When we'll start to use target_machine_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é Reviewed-by: Pierrick Bouvier --- hw/core/null-machine.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hw/core/null-machine.c b/hw/core/null-machine.c index 1ccaf652eb4..dd56d7cb7e5 100644 --- a/hw/core/null-machine.c +++ b/hw/core/null-machine.c @@ -16,6 +16,7 @@ #include "hw/boards.h" #include "system/address-spaces.h" #include "hw/core/cpu.h" +#include "hw/arm/machines-qom.h" static void machine_none_init(MachineState *mch) { @@ -62,6 +63,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 }, + { }, + }, }, };