From nobody Mon May 13 23:41:35 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; 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=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 162764311877149.60905583197348; Fri, 30 Jul 2021 04:05:18 -0700 (PDT) Received: from localhost ([::1]:42790 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m9QKL-00005t-3d for importer@patchew.org; Fri, 30 Jul 2021 07:05:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42304) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m9QF7-0008RD-I4 for qemu-devel@nongnu.org; Fri, 30 Jul 2021 06:59:53 -0400 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]:45054) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m9QF6-0002US-2G for qemu-devel@nongnu.org; Fri, 30 Jul 2021 06:59:53 -0400 Received: by mail-wr1-x433.google.com with SMTP id z4so10781172wrv.11 for ; Fri, 30 Jul 2021 03:59:51 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id p2sm1349697wrr.21.2021.07.30.03.59.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jul 2021 03:59:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=jpp+UbRt9od094/ktfFBQRT7Dj2SocCNez7NCpcCa0Q=; b=NddzzQ4pkotlILiqv51ekckBtC6DADYyGr/UVz1rDv+uL2CqNbrfxSL1vzRltlpNi9 8LO0e6TXuiIK6pzBYYiFPGpAJpnU2ouioRRAFXJCrT4tC3W6vD95YNu18Dt3QTSD9UzZ iYb73dkSWZnZqfwsozltHkejvYF7nvQMTIu4Y+juEYQFKhxxz3tKaTAHdCPickFET0F/ VZYkhJvJVLSciubRfMTSMgUFa9jxtTYkQf1FmjoNTtsu88KZg3fgbt2DIiRCKG2PgCno vOFMkBv0zFUiipcsn65qFU4v4kSAAYuT7dIQI2dli5uSgHbzMhO4lgX0NICtq7RSYGsn WerA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=jpp+UbRt9od094/ktfFBQRT7Dj2SocCNez7NCpcCa0Q=; b=ryxzuWi6N3dGsvHwkm7JSUP+pxkdh1oeeuN4lQplS8MRql2Ct69StohJ4BUd+CAtUi MLGzy3H6CzolEDbdDWjSm5Mv08MKYG9PWSSYbGk1Rm0qu5GuJLWd2qZFkjIgnUGsUGUD EdiQFFkMNnU6t58bothvg6kMgNUkShrunlG6lMpaRs7lolDe0zGp1OSVbIbHr7A7RtT4 HMPel7zbpAM1HyZ51rGyz9836yACFBRGS0kediMWP2n27qIkYs36S+ngFcf+hIrStbG9 joZsJZ4/e3jZJJRl2QIqe0c1+7CuGqSFuf9Bx4E3YjRXDhxqBFAIRA6RmPYn8YFJ0XeM FiUQ== X-Gm-Message-State: AOAM532Upy2W6bOJ+E9k8lkmd0Z/OQ3AGI6VDW/8pvxqFkPp31ResPsF 2vd2hD5kDqbtZtaWi2TmaBqzTZv9YIfKig== X-Google-Smtp-Source: ABdhPJx6324qsOCczaDakPZsE8/eUCUaiVC5uCb5tAHSQ+HbBxq3orXcErTMTqIyoVajRVsfWf4ZHA== X-Received: by 2002:a05:6000:248:: with SMTP id m8mr2423767wrz.145.1627642790913; Fri, 30 Jul 2021 03:59:50 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PATCH for-6.2 1/8] softmmu: Use accel_find("xen") instead of xen_available() Date: Fri, 30 Jul 2021 11:59:40 +0100 Message-Id: <20210730105947.28215-2-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210730105947.28215-1-peter.maydell@linaro.org> References: <20210730105947.28215-1-peter.maydell@linaro.org> MIME-Version: 1.0 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 client-ip=2a00:1450:4864:20::433; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x433.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paolo Bonzini , Markus Armbruster , Eduardo Habkost Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1627643119331100001 Content-Type: text/plain; charset="utf-8" The xen_available() function is used only to produce an error for some Xen-specific command line options in QEMU binaries where Xen support was not compiled in: it just returns the value of the CONFIG_XEN define. Now that accelerators are QOM classes, we can check for "does this binary have Xen compiled in" with accel_find("xen"), and drop the xen_available() function. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- include/sysemu/arch_init.h | 1 - softmmu/arch_init.c | 9 --------- softmmu/vl.c | 6 +++--- 3 files changed, 3 insertions(+), 13 deletions(-) diff --git a/include/sysemu/arch_init.h b/include/sysemu/arch_init.h index e723c467eb2..7acfc62418f 100644 --- a/include/sysemu/arch_init.h +++ b/include/sysemu/arch_init.h @@ -30,7 +30,6 @@ enum { extern const uint32_t arch_type; =20 int kvm_available(void); -int xen_available(void); =20 /* default virtio transport per architecture */ #define QEMU_ARCH_VIRTIO_PCI (QEMU_ARCH_ALPHA | QEMU_ARCH_ARM | \ diff --git a/softmmu/arch_init.c b/softmmu/arch_init.c index 6ff9f30badd..3f4d7c1b1cd 100644 --- a/softmmu/arch_init.c +++ b/softmmu/arch_init.c @@ -96,12 +96,3 @@ int kvm_available(void) return 0; #endif } - -int xen_available(void) -{ -#ifdef CONFIG_XEN - return 1; -#else - return 0; -#endif -} diff --git a/softmmu/vl.c b/softmmu/vl.c index 4dee472c794..a32d15b6a1f 100644 --- a/softmmu/vl.c +++ b/softmmu/vl.c @@ -3429,21 +3429,21 @@ void qemu_init(int argc, char **argv, char **envp) has_defaults =3D 0; break; case QEMU_OPTION_xen_domid: - if (!(xen_available())) { + if (!(accel_find("xen"))) { error_report("Option not supported for this target"); exit(1); } xen_domid =3D atoi(optarg); break; case QEMU_OPTION_xen_attach: - if (!(xen_available())) { + if (!(accel_find("xen"))) { error_report("Option not supported for this target"); exit(1); } xen_mode =3D XEN_ATTACH; break; case QEMU_OPTION_xen_domid_restrict: - if (!(xen_available())) { + if (!(accel_find("xen"))) { error_report("Option not supported for this target"); exit(1); } --=20 2.20.1 From nobody Mon May 13 23:41:35 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; 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=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1627642976336849.937225624566; Fri, 30 Jul 2021 04:02:56 -0700 (PDT) Received: from localhost ([::1]:34720 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m9QI3-00030V-8h for importer@patchew.org; Fri, 30 Jul 2021 07:02:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42354) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m9QF9-0008SQ-JZ for qemu-devel@nongnu.org; Fri, 30 Jul 2021 06:59:55 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:35595) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m9QF7-0002Ur-28 for qemu-devel@nongnu.org; Fri, 30 Jul 2021 06:59:55 -0400 Received: by mail-wr1-x431.google.com with SMTP id n12so10807830wrr.2 for ; Fri, 30 Jul 2021 03:59:52 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id p2sm1349697wrr.21.2021.07.30.03.59.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jul 2021 03:59:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=grrH4yZDT83NlMAFyF6VZHzq6DhTbZi1iqbpXWdsyig=; b=h3DysLmhKRgDni3tfJGA2E7gQdK8+caQVKW98P9d4Z2ve24J2IxnpsOc7nBJCyn97C hS3jGQoV2qliLBLPlio4MbYkIqRhKzpyxlwl3yv4/ZNQGXMGuTkgr2cJfFElnNyV7OSZ hC3mpadqVOZGaezUIy+u8NALfEKVs1wXR23H5uMJjDiFEMI9QUuopNdT6nCaRoBI8Hmo 3j2/NSE93iAto+np9Cg2XeKJts5n8mOKP4XFAyXEFa1oEsz0hl1v36RUGSZuFbmXMDUZ NMyaczDlynZdPZ35YSAIAbZ8n99bEkEyzxcEZ1JRBaT+jYs1h/k2vDpcv8Q1o1wxfq7s wTpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=grrH4yZDT83NlMAFyF6VZHzq6DhTbZi1iqbpXWdsyig=; b=Er3T8SWGDl3ah8VN9V7351Ov1utVtAAtk27rqx6qMMQSo77pmPcW14OtYTm/BqScrj s5b3CG8DZbUyjPFlnMuE3+TPbL6eZHJlmYtf3HUGw2rdrP3mIok/3zP3UTAhio623aaT 2CeUULrtq6//if0n0HH6iWfBKtijteCdZbH3Zx+GJfRUMeTwoBdMD1rwImeZF38u6fIf 1pF+qsfnOjhOyCTRclvV+dift9Iz7s+80f/INqr0cwuoctg8eI4gRjESnNAkctAdMTVA /5vFRm5lh5AbixTmCMyzAMQrKxPRu9dV5GBfPKWexgwjuhlwPNYqh74T/StVZdSVo4bV 4KmQ== X-Gm-Message-State: AOAM531mlvcCAe+Vt3se4hP8ArGkCC0bVpYQUkIlmxJQD7mCQkkYzO+L rcoVKOb9a1+3J2lpAKi0R5V2tqLAnbo0Pw== X-Google-Smtp-Source: ABdhPJz8HEE0vDvO5Yuft00jRT/uSVPxXbIdpAaiKZbP8eHTkddhNzUH72N6ukU81nTkBgVNaW1C3A== X-Received: by 2002:a05:6000:232:: with SMTP id l18mr2426923wrz.24.1627642791608; Fri, 30 Jul 2021 03:59:51 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PATCH for-6.2 2/8] monitor: Use accel_find("kvm") instead of kvm_available() Date: Fri, 30 Jul 2021 11:59:41 +0100 Message-Id: <20210730105947.28215-3-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210730105947.28215-1-peter.maydell@linaro.org> References: <20210730105947.28215-1-peter.maydell@linaro.org> MIME-Version: 1.0 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 client-ip=2a00:1450:4864:20::431; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x431.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paolo Bonzini , Markus Armbruster , Eduardo Habkost Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1627642977984100001 Content-Type: text/plain; charset="utf-8" The kvm_available() function reports whether KVM support was compiled into the QEMU binary; it returns the value of the CONFIG_KVM define. The only place in the codebase where we use this function is in qmp_query_kvm(). Now that accelerators are based on QOM classes we can instead use accel_find("kvm") and remove the kvm_available() function. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- include/sysemu/arch_init.h | 2 -- monitor/qmp-cmds.c | 2 +- softmmu/arch_init.c | 9 --------- 3 files changed, 1 insertion(+), 12 deletions(-) diff --git a/include/sysemu/arch_init.h b/include/sysemu/arch_init.h index 7acfc62418f..57caad1c675 100644 --- a/include/sysemu/arch_init.h +++ b/include/sysemu/arch_init.h @@ -29,8 +29,6 @@ enum { =20 extern const uint32_t arch_type; =20 -int kvm_available(void); - /* default virtio transport per architecture */ #define QEMU_ARCH_VIRTIO_PCI (QEMU_ARCH_ALPHA | QEMU_ARCH_ARM | \ QEMU_ARCH_HPPA | QEMU_ARCH_I386 | \ diff --git a/monitor/qmp-cmds.c b/monitor/qmp-cmds.c index f7d64a64577..9ddb9352e65 100644 --- a/monitor/qmp-cmds.c +++ b/monitor/qmp-cmds.c @@ -58,7 +58,7 @@ KvmInfo *qmp_query_kvm(Error **errp) KvmInfo *info =3D g_malloc0(sizeof(*info)); =20 info->enabled =3D kvm_enabled(); - info->present =3D kvm_available(); + info->present =3D accel_find("kvm"); =20 return info; } diff --git a/softmmu/arch_init.c b/softmmu/arch_init.c index 3f4d7c1b1cd..9011af74e4a 100644 --- a/softmmu/arch_init.c +++ b/softmmu/arch_init.c @@ -87,12 +87,3 @@ int graphic_depth =3D 32; #endif =20 const uint32_t arch_type =3D QEMU_ARCH; - -int kvm_available(void) -{ -#ifdef CONFIG_KVM - return 1; -#else - return 0; -#endif -} --=20 2.20.1 From nobody Mon May 13 23:41:35 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; 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=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1627643223005344.9654505576385; Fri, 30 Jul 2021 04:07:03 -0700 (PDT) Received: from localhost ([::1]:48600 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m9QM1-0004BC-QJ for importer@patchew.org; Fri, 30 Jul 2021 07:07:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42350) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m9QF9-0008SJ-Ev for qemu-devel@nongnu.org; Fri, 30 Jul 2021 06:59:55 -0400 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]:38602) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m9QF7-0002Vz-Vr for qemu-devel@nongnu.org; Fri, 30 Jul 2021 06:59:55 -0400 Received: by mail-wm1-x32f.google.com with SMTP id o5-20020a1c4d050000b02901fc3a62af78so8918874wmh.3 for ; Fri, 30 Jul 2021 03:59:53 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id p2sm1349697wrr.21.2021.07.30.03.59.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jul 2021 03:59:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=iuBWBP4vcXuymhCT8y6Q6tBW7TauWFamJhEjeIMDokc=; b=mr0j8nUbFHySFwzQZ85dAARv71QqFrxjm7qz/dtn0c5CKLy24RRQW01luQ8ExBytj1 qM1gGwV07KEVpYcb65rdeO0XwXE/b4Zjv3UFp/8O2yy0vN7mqjfbLHaXlhfEawGiPRD/ irIOOGfAqTNvFX3RQwukjUgJXhcZEWxFSHgM7kDsIdVbCRKd4B1o3Hkg2enCCSHwOU2N RNN0xB+iRwtm5tUgwxmbFMtwWXdIyABowizIdOw9YYoYZI11xDatCjA76nuHSdKgth9b ovi58ryAA12aVr9MOG3aTrPJLUK8hKzhRTO3kOQriVbDeu5RW5h1ItLm/JiYnYR8NfgV wcdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=iuBWBP4vcXuymhCT8y6Q6tBW7TauWFamJhEjeIMDokc=; b=KqGDGC9Ca+ru5ZxsdCWvH14TBZgYsJnlAAVfMgFCkYwvqEj91ec0dLG+K4xkVPzHqD Tn73CdkR6Q/nHstv14rjL5JwN/KWfm05hjZLgrzhMvE7uphBAP+g8WA0vxPHdbVN7OaD toytuXxnX1msOi+ufMl6fWB6HbOiKZg66P1Ee1JdyMcnqqeSe+NtW9yyPb9RAMvt1q7e UvAea9vxSWAbRbGuu4or/85HHS4jDTckTIWa3d0g/XaAhLn6E+FfkwwPLC/G4iJc8R36 AuS8u+1pt1ItfTLLslLAuyXLwS0+Ym+xf5Yfa9GlMhXO++IeleRvAPu+q0SB7c+ooB6H n7ZQ== X-Gm-Message-State: AOAM532qj7/2iWcvKxrOAvf+eKS6vlZ8+WoIroJLMgcuy0jJYZqRHmqy Y/rqrCeKMvh+BcNIHTUKcqqZj3mBz4K0vA== X-Google-Smtp-Source: ABdhPJz4l9X2CtiNYEpDmUgIisKV9r8/55WkYQ+OPVS6qlKP89J/A76JtK7BOSLmHTN3EePwpQ+tfg== X-Received: by 2002:a05:600c:c9:: with SMTP id u9mr2406848wmm.146.1627642792444; Fri, 30 Jul 2021 03:59:52 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PATCH for-6.2 3/8] softmmu/arch_init.c: Trim down include list Date: Fri, 30 Jul 2021 11:59:42 +0100 Message-Id: <20210730105947.28215-4-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210730105947.28215-1-peter.maydell@linaro.org> References: <20210730105947.28215-1-peter.maydell@linaro.org> MIME-Version: 1.0 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 client-ip=2a00:1450:4864:20::32f; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x32f.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paolo Bonzini , Markus Armbruster , Eduardo Habkost Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1627643223879100001 Content-Type: text/plain; charset="utf-8" arch_init.c does very little but has a long list of #include lines. Remove all the unnecessary ones. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- softmmu/arch_init.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/softmmu/arch_init.c b/softmmu/arch_init.c index 9011af74e4a..91cbf883e28 100644 --- a/softmmu/arch_init.c +++ b/softmmu/arch_init.c @@ -23,13 +23,6 @@ */ #include "qemu/osdep.h" #include "sysemu/arch_init.h" -#include "hw/pci/pci.h" -#include "hw/audio/soundhw.h" -#include "qapi/error.h" -#include "qemu/config-file.h" -#include "qemu/error-report.h" -#include "hw/acpi/acpi.h" -#include "qemu/help_option.h" =20 #ifdef TARGET_SPARC int graphic_width =3D 1024; --=20 2.20.1 From nobody Mon May 13 23:41:35 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; 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=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1627642981641728.8964928825669; Fri, 30 Jul 2021 04:03:01 -0700 (PDT) Received: from localhost ([::1]:34982 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m9QI8-0003B2-G8 for importer@patchew.org; Fri, 30 Jul 2021 07:03:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42370) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m9QFA-0008Tn-6m for qemu-devel@nongnu.org; Fri, 30 Jul 2021 06:59:56 -0400 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:33598) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m9QF8-0002Wc-Hd for qemu-devel@nongnu.org; Fri, 30 Jul 2021 06:59:55 -0400 Received: by mail-wr1-x42b.google.com with SMTP id q3so10852859wrx.0 for ; Fri, 30 Jul 2021 03:59:54 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id p2sm1349697wrr.21.2021.07.30.03.59.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jul 2021 03:59:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=RsHqQzhMnNyF8S9+GK7laO6hiG/HlpjDGIbIoWLeMbg=; b=K0ObMVVOQq03E9p/YE2RRhfwHHxjOsf1Ug8jzdm4jKxPAJbB4kIEkPPUZ0pqLNBeAV gmZ1XBiPbo6zWnNh+ttMsie/lugtuhd9WwkU3OfJCJSzXVnmDN+SjOgJcKZKq6f7BHjK gqFPTyaVnWHiR7196osu1ZFHN4s2ym5ss+KQgZRcuX8pYTr8cxm46XhCS1PnDX3GFvhJ fzbtROtLHqES6Aa2/O9eJsdkjjntwhTZMBXZinU2T0USp7Nzs0cQI+513otxiSja9ier 97qPRsIvSWTNg1mTRY3qNqWEBuZBpe9o61uWbABJrf7YOe/plhr8L/1EtBITi3I/ld5A XS3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=RsHqQzhMnNyF8S9+GK7laO6hiG/HlpjDGIbIoWLeMbg=; b=U0Po7fHWhdAqORkPmz78lsBuE8tDRRGSPQcW434iXWWSNfTagDa+8bKEKOwHWoDh9x T9ox2uRbfWllt8TsptA9thFX/bWEsGJlwTpDCXbLLd1gecUSjlqZCd2CjLyRVUoHsm+I 2DUyUzil7NpD0uu19fn1b916ah4hIOSLnVkakzkwlNG6F0vm6XNmTaqZ4tTFFDHjf42w MQzI8y8HMxboczTvLbfIB0unTy2hs280NggWfgxG2bPJsLEEPbSXErzbL5VcE1zG5l8s FbROBnfqfSQcD/76DYKw0gfBybrDeBhJgzr3g0kCNQnuAEp+WlnnU7vCssHCnhtjGxnU Ns6Q== X-Gm-Message-State: AOAM5338kAjDGcScEMjL0+IPCg9uiMGw6P0RtaQhMTPdwtYKPtwXhgTt prOsDLRMm+6B7PCV/gK+sBiaGYcbrmUdfg== X-Google-Smtp-Source: ABdhPJyZ5jaGSfTR84omXADOkntoXSzdkxcRWacjkro1fHB0WrePbEkrJbQcTy6ZHEcgerJUHOiB8w== X-Received: by 2002:a05:6000:1625:: with SMTP id v5mr2395194wrb.80.1627642793254; Fri, 30 Jul 2021 03:59:53 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PATCH for-6.2 4/8] meson.build: Define QEMU_ARCH in config-target.h Date: Fri, 30 Jul 2021 11:59:43 +0100 Message-Id: <20210730105947.28215-5-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210730105947.28215-1-peter.maydell@linaro.org> References: <20210730105947.28215-1-peter.maydell@linaro.org> MIME-Version: 1.0 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 client-ip=2a00:1450:4864:20::42b; envelope-from=peter.maydell@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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paolo Bonzini , Markus Armbruster , Eduardo Habkost Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1627642982653100001 Content-Type: text/plain; charset="utf-8" Instead of using an ifdef ladder in arch_init.c (which we then have to manually update every time we add or remove a target architecture), have meson.build put "#define QEMU_ARCH QEMU_ARCH_FOO" in the config-target.h file. Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- meson.build | 2 ++ softmmu/arch_init.c | 41 ----------------------------------------- 2 files changed, 2 insertions(+), 41 deletions(-) diff --git a/meson.build b/meson.build index f2e148eaf98..861965c286b 100644 --- a/meson.build +++ b/meson.build @@ -1625,6 +1625,8 @@ foreach target : target_dirs config_target_data.set(k, v) endif endforeach + config_target_data.set('QEMU_ARCH', + 'QEMU_ARCH_' + config_target['TARGET_BASE_ARCH'].= to_upper()) config_target_h +=3D {target: configure_file(output: target + '-config-t= arget.h', configuration: config_targe= t_data)} =20 diff --git a/softmmu/arch_init.c b/softmmu/arch_init.c index 91cbf883e28..8919405c7b2 100644 --- a/softmmu/arch_init.c +++ b/softmmu/arch_init.c @@ -38,45 +38,4 @@ int graphic_height =3D 600; int graphic_depth =3D 32; #endif =20 - -#if defined(TARGET_ALPHA) -#define QEMU_ARCH QEMU_ARCH_ALPHA -#elif defined(TARGET_ARM) -#define QEMU_ARCH QEMU_ARCH_ARM -#elif defined(TARGET_CRIS) -#define QEMU_ARCH QEMU_ARCH_CRIS -#elif defined(TARGET_HPPA) -#define QEMU_ARCH QEMU_ARCH_HPPA -#elif defined(TARGET_I386) -#define QEMU_ARCH QEMU_ARCH_I386 -#elif defined(TARGET_M68K) -#define QEMU_ARCH QEMU_ARCH_M68K -#elif defined(TARGET_MICROBLAZE) -#define QEMU_ARCH QEMU_ARCH_MICROBLAZE -#elif defined(TARGET_MIPS) -#define QEMU_ARCH QEMU_ARCH_MIPS -#elif defined(TARGET_NIOS2) -#define QEMU_ARCH QEMU_ARCH_NIOS2 -#elif defined(TARGET_OPENRISC) -#define QEMU_ARCH QEMU_ARCH_OPENRISC -#elif defined(TARGET_PPC) -#define QEMU_ARCH QEMU_ARCH_PPC -#elif defined(TARGET_RISCV) -#define QEMU_ARCH QEMU_ARCH_RISCV -#elif defined(TARGET_RX) -#define QEMU_ARCH QEMU_ARCH_RX -#elif defined(TARGET_S390X) -#define QEMU_ARCH QEMU_ARCH_S390X -#elif defined(TARGET_SH4) -#define QEMU_ARCH QEMU_ARCH_SH4 -#elif defined(TARGET_SPARC) -#define QEMU_ARCH QEMU_ARCH_SPARC -#elif defined(TARGET_TRICORE) -#define QEMU_ARCH QEMU_ARCH_TRICORE -#elif defined(TARGET_XTENSA) -#define QEMU_ARCH QEMU_ARCH_XTENSA -#elif defined(TARGET_AVR) -#define QEMU_ARCH QEMU_ARCH_AVR -#endif - const uint32_t arch_type =3D QEMU_ARCH; --=20 2.20.1 From nobody Mon May 13 23:41:35 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; 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=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1627642978043445.9783162293867; Fri, 30 Jul 2021 04:02:58 -0700 (PDT) Received: from localhost ([::1]:34956 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m9QI4-0003A1-SS for importer@patchew.org; Fri, 30 Jul 2021 07:02:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42376) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m9QFA-0008UW-KO for qemu-devel@nongnu.org; Fri, 30 Jul 2021 06:59:56 -0400 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:41504) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m9QF9-0002Wn-7Z for qemu-devel@nongnu.org; Fri, 30 Jul 2021 06:59:56 -0400 Received: by mail-wm1-x332.google.com with SMTP id n28-20020a05600c3b9cb02902552e60df56so6097470wms.0 for ; Fri, 30 Jul 2021 03:59:54 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id p2sm1349697wrr.21.2021.07.30.03.59.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jul 2021 03:59:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=XsapCyUHRinZlDpvG4U0uaAG0gEMTFq+6AdmrnSbtBs=; b=Vnq4gE+H2pFgwQ/7o1fTKc0Rcz+6hQwJ9e2obba1FC6jmPb/QErZg4+gZ6RR/6lyCq eGaaWLw+lXhK55qIzhUaDQIY0Vy0KCenDyFhuBvPdbel0gZxk8WgVIVXC77oVusGgT+g KQvre1Shs4fDhk300aKQp39PWnusx9Uw65wzUPU/nu3xPyfb2osKODXZkV5gQU7KWPfJ OJKBICeLE/w5aNr8KSX5zeBcyn1YoTH7/SrqEAi/EdA0UplfZADQKijo1+jY5Fvr4cER qvRAlUQs/vNfIK77Sd0bJ6eVXnwwHUuNaQPrVzIzozQ3qGIW0p3sdeyJz+1OKs2WOiPY z/Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=XsapCyUHRinZlDpvG4U0uaAG0gEMTFq+6AdmrnSbtBs=; b=JcvqfI2SLbmCG0KpmKOMEWu2DDWpmsgg/i5QFnZNq1jVli6oUUYKNFA/M6dvSxGR8E exjpupt1b4eUvEqIq7pG3kq+DSIR7yPZ1GOD18noAhZCo6M8fF3a3N/Xv96qtG0QlJm1 8lFS5lyHoYL/j/Ru/JAK19xgvU2NG28wXqbTzPsc4HS2MvvXz8KeiMBIMPLO/z1tVSxW 6PuH482I9UF8lZ8/BmnJLOhi+crLot83a1rRlUsVB/1DyAvqHWsxloUbcVlwOHE16Jj8 CNoYgd+oIEUrLWRPvnumDyeNMJ9QWtyC9/xWTqCD+QQf3zrEE3n61/TYuD4mzKzbCPSM LkTg== X-Gm-Message-State: AOAM533G0u6I6EX933q3+as3onHBGiuyuLG5sydhF6Jg1g5grygKCrjU ERBHmlsCoSZWbZOI7FpVy3ONK5HHSlQetQ== X-Google-Smtp-Source: ABdhPJyaQLTl93fCOnY3Wii2pN+KWvc90U4rF1tnKpuS0EXMXS+g/MW4KTw3LGtKm9aj9uXssW0BZg== X-Received: by 2002:a7b:cb98:: with SMTP id m24mr2280819wmi.24.1627642793952; Fri, 30 Jul 2021 03:59:53 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PATCH for-6.2 5/8] arch_init.h: Add QEMU_ARCH_HEXAGON Date: Fri, 30 Jul 2021 11:59:44 +0100 Message-Id: <20210730105947.28215-6-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210730105947.28215-1-peter.maydell@linaro.org> References: <20210730105947.28215-1-peter.maydell@linaro.org> MIME-Version: 1.0 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 client-ip=2a00:1450:4864:20::332; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x332.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paolo Bonzini , Markus Armbruster , Eduardo Habkost Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1627642980343100001 Content-Type: text/plain; charset="utf-8" When Hexagon was added we forgot to add it to the QEMU_ARCH_* enumeration. This doesn't cause a visible effect because at the moment Hexagon is linux-user only and the QEMU_ARCH_* constants are only used in softmmu, but we might as well add it in, since it's the only architecture currently missing from the list. Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson Reviewed-by: Taylor Simpson --- include/sysemu/arch_init.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/sysemu/arch_init.h b/include/sysemu/arch_init.h index 57caad1c675..60270c5ad15 100644 --- a/include/sysemu/arch_init.h +++ b/include/sysemu/arch_init.h @@ -23,6 +23,7 @@ enum { QEMU_ARCH_RISCV =3D (1 << 19), QEMU_ARCH_RX =3D (1 << 20), QEMU_ARCH_AVR =3D (1 << 21), + QEMU_ARCH_HEXAGON =3D (1 << 22), =20 QEMU_ARCH_NONE =3D (1 << 31), }; --=20 2.20.1 From nobody Mon May 13 23:41:35 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; 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=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1627643124452810.0781766326079; Fri, 30 Jul 2021 04:05:24 -0700 (PDT) Received: from localhost ([::1]:43180 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m9QKR-0000MU-9l for importer@patchew.org; Fri, 30 Jul 2021 07:05:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42388) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m9QFB-000052-J3 for qemu-devel@nongnu.org; Fri, 30 Jul 2021 06:59:57 -0400 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:44760) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m9QFA-0002XO-0C for qemu-devel@nongnu.org; Fri, 30 Jul 2021 06:59:57 -0400 Received: by mail-wm1-x334.google.com with SMTP id d131-20020a1c1d890000b02902516717f562so6121778wmd.3 for ; Fri, 30 Jul 2021 03:59:55 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id p2sm1349697wrr.21.2021.07.30.03.59.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jul 2021 03:59:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=K0LsDdqG46LkMTzSmmUO14QKu3yyiy2ujafOymlz2zw=; b=Mv3wLyyo38nn6sGZcE5VnPxF+IxzHuyB8c6mYNk4VqmU3m3s1mGLRF0e7+ViFg/b1+ j9p0q/BTwUFkwEoiq7CwKyQHEdypX1hW5kAvXqyEx7W+P5CpCLl5u2Ec8W931AtyLl4x Lrvu1zGOdtsM6JZAPkWkouhdi9uRlteu/e9LiLdM5lCqvg1SI5zaEUH+VDdX1d7KdguI FlKFrPD79rkjlkE4t9l04jN4b417Ww14gU+Ama+LbnclrQlImCDdUORT6iZJw7GpTIzu t+/IXDGBFLTP9+Jdo1kjPGZyIuxbsDp1Pqb2X3j9drj+0WG3MszwvYkfyROwoUZuEL7+ RIdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=K0LsDdqG46LkMTzSmmUO14QKu3yyiy2ujafOymlz2zw=; b=A5KDCfq2KrodHMrJ9iwYUdY6ZY2+LUxV7UtmGivBK7Zeqe1srr+5J93G3cYws01SEo ThFK+iQYDDlwpgmdZVV1mOdixPOMVomOkBCvKtcXttgWVmZWVTyRXFaxpgqmVpuZk/Qt IPGMZwn/M/ZGJP7KYzfNnd1uCg/dibNfLERzOOoe4SkIyclU5MLUPUJwlqRr4qQ1SN1O 4xhcYdPJomY55wxlHIIqkaErL6bwF85rF87reKtN2+eu88bJoPojTlj41isyOwIKniJI uw+snuAUhlT6N3CxQhMAIZEq2Rq5gWjDLqcoT4QyYmqGyZvtQpN9ttovT/bhhquFBNRh dfGg== X-Gm-Message-State: AOAM532SmJu2LF2eRbDQ/DnV/Wg8/N94lTk0x5ausvmBOXnyi8u+qbVp 0f98wsoswRjt0IbwkM2aEiP2xwTvefWRhQ== X-Google-Smtp-Source: ABdhPJwCJD77kL+THcn/PyIqPusviJLGFdRleEVyYCMAtqXJk1FtGiphFQUKRHh0KfcZj5sT9Zv1oQ== X-Received: by 2002:a05:600c:1d11:: with SMTP id l17mr2315045wms.185.1627642794667; Fri, 30 Jul 2021 03:59:54 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PATCH for-6.2 6/8] arch_init.h: Move QEMU_ARCH_VIRTIO_* to qdev-monitor.c Date: Fri, 30 Jul 2021 11:59:45 +0100 Message-Id: <20210730105947.28215-7-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210730105947.28215-1-peter.maydell@linaro.org> References: <20210730105947.28215-1-peter.maydell@linaro.org> MIME-Version: 1.0 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 client-ip=2a00:1450:4864:20::334; envelope-from=peter.maydell@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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paolo Bonzini , Markus Armbruster , Eduardo Habkost Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1627643126037100001 Content-Type: text/plain; charset="utf-8" The QEMU_ARCH_VIRTIO_* defines are used only in one file, qdev-monitor.c. Move them to that file. Signed-off-by: Peter Maydell Reviewed-by: Markus Armbruster Reviewed-by: Richard Henderson --- include/sysemu/arch_init.h | 9 --------- softmmu/qdev-monitor.c | 9 +++++++++ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/include/sysemu/arch_init.h b/include/sysemu/arch_init.h index 60270c5ad15..e7789399508 100644 --- a/include/sysemu/arch_init.h +++ b/include/sysemu/arch_init.h @@ -30,13 +30,4 @@ enum { =20 extern const uint32_t arch_type; =20 -/* default virtio transport per architecture */ -#define QEMU_ARCH_VIRTIO_PCI (QEMU_ARCH_ALPHA | QEMU_ARCH_ARM | \ - QEMU_ARCH_HPPA | QEMU_ARCH_I386 | \ - QEMU_ARCH_MIPS | QEMU_ARCH_PPC | \ - QEMU_ARCH_RISCV | QEMU_ARCH_SH4 | \ - QEMU_ARCH_SPARC | QEMU_ARCH_XTENSA) -#define QEMU_ARCH_VIRTIO_CCW (QEMU_ARCH_S390X) -#define QEMU_ARCH_VIRTIO_MMIO (QEMU_ARCH_M68K) - #endif diff --git a/softmmu/qdev-monitor.c b/softmmu/qdev-monitor.c index 721dec2d820..a304754ab91 100644 --- a/softmmu/qdev-monitor.c +++ b/softmmu/qdev-monitor.c @@ -52,6 +52,15 @@ typedef struct QDevAlias uint32_t arch_mask; } QDevAlias; =20 +/* default virtio transport per architecture */ +#define QEMU_ARCH_VIRTIO_PCI (QEMU_ARCH_ALPHA | QEMU_ARCH_ARM | \ + QEMU_ARCH_HPPA | QEMU_ARCH_I386 | \ + QEMU_ARCH_MIPS | QEMU_ARCH_PPC | \ + QEMU_ARCH_RISCV | QEMU_ARCH_SH4 | \ + QEMU_ARCH_SPARC | QEMU_ARCH_XTENSA) +#define QEMU_ARCH_VIRTIO_CCW (QEMU_ARCH_S390X) +#define QEMU_ARCH_VIRTIO_MMIO (QEMU_ARCH_M68K) + /* Please keep this table sorted by typename. */ static const QDevAlias qdev_alias_table[] =3D { { "AC97", "ac97" }, /* -soundhw name */ --=20 2.20.1 From nobody Mon May 13 23:41:35 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; 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=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1627643126108133.040111093615; Fri, 30 Jul 2021 04:05:26 -0700 (PDT) Received: from localhost ([::1]:43326 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m9QKT-0000So-1x for importer@patchew.org; Fri, 30 Jul 2021 07:05:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42408) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m9QFC-00008V-Kr for qemu-devel@nongnu.org; Fri, 30 Jul 2021 06:59:58 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:35596) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m9QFA-0002YX-Nc for qemu-devel@nongnu.org; Fri, 30 Jul 2021 06:59:58 -0400 Received: by mail-wr1-x431.google.com with SMTP id n12so10808058wrr.2 for ; Fri, 30 Jul 2021 03:59:56 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id p2sm1349697wrr.21.2021.07.30.03.59.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jul 2021 03:59:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=LOFXsljOiEvL5KbQ1IGVlqLTkAfDLwXLvWhbRp0q2kQ=; b=UolB3GrBJVoWvyi3D/qfc88Hkav4Q4rouNVKn8TCCBjDK5dbQHnk9hoZYQy+Xn/8s0 BCngkK5Fq4vXeU4IX1KUYT5jXcE3u6n7kO6XkQrYG6zhiik2wGt+cfrXSCvv3vz19mkF 6izDdL6zeoKh+hiinYwi5kMde/96663hhOnqS0vjRu1B4H2y7xkkAgtqYVt2AX0gWq7f eEv3LnMfFKGZVhKMXksC5en+ZPPgFg3Gb2ocZd0yjjVs7n/u149BNlfrUZPpoMBFbBi0 ETEH0QXF/LYngpdEYMrbCK3vxl9wBYjuX+hjpRBr+KYZ9Jolb6Vba7ad0h5Sirk15Ipa io6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=LOFXsljOiEvL5KbQ1IGVlqLTkAfDLwXLvWhbRp0q2kQ=; b=tdRKfhb6bwQ54CYfVT9YkdQJcW3zGq6QUzEtSeaFHPgQnhnTC9ced121Iovvea3dMV 4KRghtq5wOTC8meWypySYJmsvhrouAFV+YVWZIMu2m/av6kKuq09OBvpoNv6lqPSF/V0 oX8hSw8AINRMSWyyrftSMEz2UWCXHcEmNV3Qb95bT2YDIInaqOJf1HGiH7/zKNNq9JIx HDUnOYZM6Knwf+9f8+6HLbHTtZfjBVdOopq+u6CKSgBINZzBtFjahuTwxaTTz+BtwfFH FCxPaQp5KjFEaMaccR7RrcDr1GT1rgFTL2nU0nvdij/vyKnqqCg08+AgH49sgD8F7DP/ evHQ== X-Gm-Message-State: AOAM532pUzVC7cW2ea6L0nVctWjwFg+JnD02do5Klxxqmn5lr7f07mfz wz/CaXFf+aTs9AjE8vARD48V4ZKjECNc0w== X-Google-Smtp-Source: ABdhPJyycQzFqOlMrsgEfmQKpCOxlvjOJu/AjysTl0n+/iHpZ9VnCJNx3bAQ3jtWy0SOlsQNUFbzMA== X-Received: by 2002:a5d:4521:: with SMTP id j1mr2322783wra.44.1627642795509; Fri, 30 Jul 2021 03:59:55 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PATCH for-6.2 7/8] arch_init.h: Don't include arch_init.h unnecessarily Date: Fri, 30 Jul 2021 11:59:46 +0100 Message-Id: <20210730105947.28215-8-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210730105947.28215-1-peter.maydell@linaro.org> References: <20210730105947.28215-1-peter.maydell@linaro.org> MIME-Version: 1.0 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 client-ip=2a00:1450:4864:20::431; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x431.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paolo Bonzini , Markus Armbruster , Eduardo Habkost Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1627643126388100003 Content-Type: text/plain; charset="utf-8" arch_init.h only defines the QEMU_ARCH_* enumeration and the arch_type global. Don't include it in files that don't use those. Signed-off-by: Peter Maydell Reviewed-by: Alistair Francis Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- blockdev.c | 1 - hw/i386/pc.c | 1 - hw/i386/pc_piix.c | 1 - hw/i386/pc_q35.c | 1 - hw/mips/jazz.c | 1 - hw/mips/malta.c | 1 - hw/ppc/prep.c | 1 - hw/riscv/sifive_e.c | 1 - hw/riscv/sifive_u.c | 1 - hw/riscv/spike.c | 1 - hw/riscv/virt.c | 1 - monitor/qmp-cmds.c | 1 - target/ppc/cpu_init.c | 1 - target/s390x/cpu-sysemu.c | 1 - 14 files changed, 14 deletions(-) diff --git a/blockdev.c b/blockdev.c index 3d8ac368a19..e79c5f3b5e8 100644 --- a/blockdev.c +++ b/blockdev.c @@ -56,7 +56,6 @@ #include "sysemu/iothread.h" #include "block/block_int.h" #include "block/trace.h" -#include "sysemu/arch_init.h" #include "sysemu/runstate.h" #include "sysemu/replay.h" #include "qemu/cutils.h" diff --git a/hw/i386/pc.c b/hw/i386/pc.c index c2b9d62a358..102b2239468 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c @@ -65,7 +65,6 @@ #include "hw/xen/start_info.h" #include "ui/qemu-spice.h" #include "exec/memory.h" -#include "sysemu/arch_init.h" #include "qemu/bitmap.h" #include "qemu/config-file.h" #include "qemu/error-report.h" diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index 30b8bd6ea92..1bc30167acc 100644 --- a/hw/i386/pc_piix.c +++ b/hw/i386/pc_piix.c @@ -43,7 +43,6 @@ #include "sysemu/kvm.h" #include "hw/kvm/clock.h" #include "hw/sysbus.h" -#include "sysemu/arch_init.h" #include "hw/i2c/smbus_eeprom.h" #include "hw/xen/xen-x86.h" #include "exec/memory.h" diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c index 04b4a4788d7..eeb0b185b11 100644 --- a/hw/i386/pc_q35.c +++ b/hw/i386/pc_q35.c @@ -31,7 +31,6 @@ #include "qemu/osdep.h" #include "qemu/units.h" #include "hw/loader.h" -#include "sysemu/arch_init.h" #include "hw/i2c/smbus_eeprom.h" #include "hw/rtc/mc146818rtc.h" #include "sysemu/kvm.h" diff --git a/hw/mips/jazz.c b/hw/mips/jazz.c index d6183e18821..f5a26e174d5 100644 --- a/hw/mips/jazz.c +++ b/hw/mips/jazz.c @@ -35,7 +35,6 @@ #include "hw/isa/isa.h" #include "hw/block/fdc.h" #include "sysemu/sysemu.h" -#include "sysemu/arch_init.h" #include "hw/boards.h" #include "net/net.h" #include "hw/scsi/esp.h" diff --git a/hw/mips/malta.c b/hw/mips/malta.c index 7dcf175d726..b770b8d3671 100644 --- a/hw/mips/malta.c +++ b/hw/mips/malta.c @@ -38,7 +38,6 @@ #include "hw/mips/mips.h" #include "hw/mips/cpudevs.h" #include "hw/pci/pci.h" -#include "sysemu/arch_init.h" #include "qemu/log.h" #include "hw/mips/bios.h" #include "hw/ide.h" diff --git a/hw/ppc/prep.c b/hw/ppc/prep.c index acfc2a91d8e..25a2e86b421 100644 --- a/hw/ppc/prep.c +++ b/hw/ppc/prep.c @@ -40,7 +40,6 @@ #include "hw/rtc/mc146818rtc.h" #include "hw/isa/pc87312.h" #include "hw/qdev-properties.h" -#include "sysemu/arch_init.h" #include "sysemu/kvm.h" #include "sysemu/reset.h" #include "trace.h" diff --git a/hw/riscv/sifive_e.c b/hw/riscv/sifive_e.c index ddc658c8d68..5b7b245e1f3 100644 --- a/hw/riscv/sifive_e.c +++ b/hw/riscv/sifive_e.c @@ -45,7 +45,6 @@ #include "hw/intc/sifive_plic.h" #include "hw/misc/sifive_e_prci.h" #include "chardev/char.h" -#include "sysemu/arch_init.h" #include "sysemu/sysemu.h" =20 static const MemMapEntry sifive_e_memmap[] =3D { diff --git a/hw/riscv/sifive_u.c b/hw/riscv/sifive_u.c index 87bbd10b211..6cc1a62b0f7 100644 --- a/hw/riscv/sifive_u.c +++ b/hw/riscv/sifive_u.c @@ -55,7 +55,6 @@ #include "hw/intc/sifive_plic.h" #include "chardev/char.h" #include "net/eth.h" -#include "sysemu/arch_init.h" #include "sysemu/device_tree.h" #include "sysemu/runstate.h" #include "sysemu/sysemu.h" diff --git a/hw/riscv/spike.c b/hw/riscv/spike.c index fead77f0c48..aae36f2cb4d 100644 --- a/hw/riscv/spike.c +++ b/hw/riscv/spike.c @@ -37,7 +37,6 @@ #include "hw/char/riscv_htif.h" #include "hw/intc/sifive_clint.h" #include "chardev/char.h" -#include "sysemu/arch_init.h" #include "sysemu/device_tree.h" #include "sysemu/sysemu.h" =20 diff --git a/hw/riscv/virt.c b/hw/riscv/virt.c index 4a3cd2599a5..0e55411045a 100644 --- a/hw/riscv/virt.c +++ b/hw/riscv/virt.c @@ -36,7 +36,6 @@ #include "hw/intc/sifive_plic.h" #include "hw/misc/sifive_test.h" #include "chardev/char.h" -#include "sysemu/arch_init.h" #include "sysemu/device_tree.h" #include "sysemu/sysemu.h" #include "hw/pci/pci.h" diff --git a/monitor/qmp-cmds.c b/monitor/qmp-cmds.c index 9ddb9352e65..5c0d5e116b9 100644 --- a/monitor/qmp-cmds.c +++ b/monitor/qmp-cmds.c @@ -27,7 +27,6 @@ #include "sysemu/kvm.h" #include "sysemu/runstate.h" #include "sysemu/runstate-action.h" -#include "sysemu/arch_init.h" #include "sysemu/blockdev.h" #include "sysemu/block-backend.h" #include "qapi/error.h" diff --git a/target/ppc/cpu_init.c b/target/ppc/cpu_init.c index 505a0ed6ac0..319a272d4c9 100644 --- a/target/ppc/cpu_init.c +++ b/target/ppc/cpu_init.c @@ -22,7 +22,6 @@ #include "disas/dis-asm.h" #include "exec/gdbstub.h" #include "kvm_ppc.h" -#include "sysemu/arch_init.h" #include "sysemu/cpus.h" #include "sysemu/hw_accel.h" #include "sysemu/tcg.h" diff --git a/target/s390x/cpu-sysemu.c b/target/s390x/cpu-sysemu.c index df2c6bf6941..5471e01ee82 100644 --- a/target/s390x/cpu-sysemu.c +++ b/target/s390x/cpu-sysemu.c @@ -34,7 +34,6 @@ =20 #include "hw/s390x/pv.h" #include "hw/boards.h" -#include "sysemu/arch_init.h" #include "sysemu/sysemu.h" #include "sysemu/tcg.h" #include "hw/core/sysemu-cpu-ops.h" --=20 2.20.1 From nobody Mon May 13 23:41:35 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; 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=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1627643312312793.9791802435551; Fri, 30 Jul 2021 04:08:32 -0700 (PDT) Received: from localhost ([::1]:52256 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m9QNT-00075W-82 for importer@patchew.org; Fri, 30 Jul 2021 07:08:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42410) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m9QFD-0000A4-7N for qemu-devel@nongnu.org; Fri, 30 Jul 2021 06:59:59 -0400 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]:43977) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m9QFB-0002ZI-HX for qemu-devel@nongnu.org; Fri, 30 Jul 2021 06:59:58 -0400 Received: by mail-wr1-x436.google.com with SMTP id h14so10755366wrx.10 for ; Fri, 30 Jul 2021 03:59:57 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id p2sm1349697wrr.21.2021.07.30.03.59.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jul 2021 03:59:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=DIUHnJ9StEoveZf4Nm4WQZNeoUt/hCk/vohXCdTI0co=; b=xQQK/+hjng0KWP4e3Pk92ItKftKnHAo1MgndzPazELYNPEw1+dCtpvevd0NCFcE3rd wWLBle+KSHeqwq1iiyiyht8bRE249j7+xr2/lS9VBosqHgIGD9Grz0N59Ud+a7ABhNB6 hF1VBSLpCiLnbIK2GwqOTStSGHGxK4/IjDgJEdJK4zP8hd26yEJBDn+3UAcxws/BG6bu /NG1RI6XEfvbvTXFwPi8m/UdgytwmPmvhrqAjGLUgb5OAF7FZVeUDtDUKCXLdrw+9I49 TaDpeBrXWLKUVPe0yUN4KdIlCaZBPhFvNZAxXlKp+CfB1NbNP0ZHCNgyWbG1qQHAdyRP j6tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=DIUHnJ9StEoveZf4Nm4WQZNeoUt/hCk/vohXCdTI0co=; b=VagZ0QtJqcFoTVkiVB4eYEuKMmiQta8fT6ELB60+3AD7ByDlP0KUHhhSL2NTYvyWif t2oYM1630roFIDVdTCjVr7sBwmKI4sF9x0UxI/bQoUijIK5m8vC5W9aGJ2nQ73mAigK4 sH9/2qHX5DoHDDRsdG8p+DO2CenH8B612gqBG5VvgwU+uF8ZjoR4JWbKraafgx3BOV5L m3aBKmR3h3hUrKvnCC71cLt+dOFPqdyyIWaKxZS5FmyEWGCyJnUqdDe9a0qCY5liZ64R vL9C+c3Rky5QcPPDV6qrQCXQB9cYunTfk3ciRHZhvY19A5QI2zpjvtUF+0wlryYSsIn9 vw0w== X-Gm-Message-State: AOAM5307OaWNg+dYNFMCMFed4pbRiWmEmii8S1Fc0GQZY/ARTC5yR3lI cYvVtB/fREgY0PGGvhqJ9nCMCVUPTlczYg== X-Google-Smtp-Source: ABdhPJzazPU943JLsUI1TRFL6hW+1RO6ZeXoB4MNdNJlfiomegZJev3lTgm3BVbPxrNRmgxaL7o6Ig== X-Received: by 2002:a05:6000:2c6:: with SMTP id o6mr2380312wry.241.1627642796229; Fri, 30 Jul 2021 03:59:56 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PATCH for-6.2 8/8] stubs: Remove unused arch_type.c stub Date: Fri, 30 Jul 2021 11:59:47 +0100 Message-Id: <20210730105947.28215-9-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210730105947.28215-1-peter.maydell@linaro.org> References: <20210730105947.28215-1-peter.maydell@linaro.org> MIME-Version: 1.0 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 client-ip=2a00:1450:4864:20::436; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x436.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paolo Bonzini , Markus Armbruster , Eduardo Habkost Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1627643313068100001 Content-Type: text/plain; charset="utf-8" We added a stub for the arch_type global in commit 5964ed56d9a1 so that we could compile blockdev.c into the tools. However, in commit 9db1d3a2be9bf we removed the only use of arch_type from blockdev.c. The stub is therefore no longer needed, and we can delete it again, together with the QEMU_ARCH_NONE value that only the stub was using. Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- include/sysemu/arch_init.h | 2 -- stubs/arch_type.c | 4 ---- stubs/meson.build | 1 - 3 files changed, 7 deletions(-) delete mode 100644 stubs/arch_type.c diff --git a/include/sysemu/arch_init.h b/include/sysemu/arch_init.h index e7789399508..70c579560ad 100644 --- a/include/sysemu/arch_init.h +++ b/include/sysemu/arch_init.h @@ -24,8 +24,6 @@ enum { QEMU_ARCH_RX =3D (1 << 20), QEMU_ARCH_AVR =3D (1 << 21), QEMU_ARCH_HEXAGON =3D (1 << 22), - - QEMU_ARCH_NONE =3D (1 << 31), }; =20 extern const uint32_t arch_type; diff --git a/stubs/arch_type.c b/stubs/arch_type.c deleted file mode 100644 index fc5423bc98a..00000000000 --- a/stubs/arch_type.c +++ /dev/null @@ -1,4 +0,0 @@ -#include "qemu/osdep.h" -#include "sysemu/arch_init.h" - -const uint32_t arch_type =3D QEMU_ARCH_NONE; diff --git a/stubs/meson.build b/stubs/meson.build index d3fa8646b38..717bfa9a999 100644 --- a/stubs/meson.build +++ b/stubs/meson.build @@ -1,4 +1,3 @@ -stub_ss.add(files('arch_type.c')) stub_ss.add(files('bdrv-next-monitor-owned.c')) stub_ss.add(files('blk-commit-all.c')) stub_ss.add(files('blk-exp-close-all.c')) --=20 2.20.1