From patchwork Tue Dec 20 14:56:25 2022 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: 635476 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp2961856pvb; Tue, 20 Dec 2022 06:58:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf6cIl261dGNBDEg7VUUnaRLx6xg3WDBIgH5aHuM73ZSGarSlTVn37cM0mpfXgn7eVs1KrbZ X-Received: by 2002:a05:6214:184c:b0:4c7:1d69:5521 with SMTP id d12-20020a056214184c00b004c71d695521mr53428868qvy.36.1671548335838; Tue, 20 Dec 2022 06:58:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671548335; cv=none; d=google.com; s=arc-20160816; b=d0BgIQBfPsBdzXOEKF8xnENqwFOvUaGxC3zeQs9KFzGqEbiCNvPY3BJviahoFlI5GR H9EFXsXfc2R9zioqzl41l8Z+JDIMgWz6InhL+vzmIaXHRM7bLTH+qPt7AOuZPN+4zFZD x3VbI1AixWDHgTNiWEcb/zxJcM+r7t4g+2NiI879hQJvhcccC1E7atytCgtm4/Y48Ya8 QL0n8mrC6MbSwduqPy/FMzlE4Y8+OvpeGMSmeRgaYfF1p+1lB+Nok1CGH0CULjdzSn8/ 48HFAog5I+VUfIPeyJ88WZgic9xaPcYl/anTvFl4gMjL5Tgn/cyAtzLzLSIpOJxVbxZy YsLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=/3O/TmPP9Jg8STxRQ7xCVDl3tcpFcYurVNtfZxqpXk4=; b=qYvXx0ipliR8/PDL07dArwympQ+tMmj+SB1DijF3plQCuAF3PhupOyytYhC1n5vWEy Tq5U74OE0dQHAldyFhyRK0KW0l060BfgT1HGbB35U0ubD74xywZX+n/mkSzFAD3o40Pq RTnWdYj9+M+SLyBiQKddk7L9zjZWoaVXT5579AiCFbEJrup4wkH/VFS/rcNFI0jwYDY9 p1e1EB0V5NYruzLZrIQ9zrtCUpq74VrSupWJmAXGULgSNBp2Q+N4mZEkcC7j4F8GTnX1 cUun3yZpHAcrcrd/wgP8c8UkM2vLO1DL08C6yR6SGfdCctctiF73/9La54MQRNlx1HNf JYFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KVZ7UZkl; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 11-20020a0562140dcb00b004b4519eadc3si5051871qvt.52.2022.12.20.06.58.55 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 20 Dec 2022 06:58:55 -0800 (PST) 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=KVZ7UZkl; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p7e3C-000720-A3; Tue, 20 Dec 2022 09:57:02 -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 1p7e3B-0006yw-4q for qemu-devel@nongnu.org; Tue, 20 Dec 2022 09:57:01 -0500 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p7e39-0004kv-Lh for qemu-devel@nongnu.org; Tue, 20 Dec 2022 09:57:00 -0500 Received: by mail-wm1-x32a.google.com with SMTP id 131-20020a1c0289000000b003d35acb0f9fso1244593wmc.2 for ; Tue, 20 Dec 2022 06:56:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=/3O/TmPP9Jg8STxRQ7xCVDl3tcpFcYurVNtfZxqpXk4=; b=KVZ7UZklCQdPZdBie5057P3rlP+0MEXxziNTCa4FkiV0BWFDd3cN322tzrR4+m3Rmu sTEPQvWml9zQqNfa6cJoo8HQmtse3s0Q0DbbWTvuAfJISwwoXRh/aNSb8TPNumtpthDp YRM2rKhjOlOqJbdUirS6sTEeMAJP+t1VP3F+xRStNcyWOHqjEjIShJcqc353kTVHN/VX OUK0sI6RyW2I34DcgbcoTvaRxpkbWlRTxmnirBN/tITaDi9B4NG9c33mvEMm2GAw0UiQ 2yUK8URIhPLUEkWimITTEejH0kHoLCWF/KlxwGiwRqXVZH/DGr2zaR7Q+E9TGAfygJAK YZAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=/3O/TmPP9Jg8STxRQ7xCVDl3tcpFcYurVNtfZxqpXk4=; b=v8mDoh2iEoKAcAHPsMVQtOgfVcbY2ONsS2V5p2JOHFX6ht0sBmV7D4ZcVLjcZhHPRn H0er/teNxwdytwFbYSw1B03YRiHZpo09xcewOGa2+QtwTSukXvJOHqP/BIE8TZ2AZnPu yIp+9Ws4u+6Os0hpsJBMkcAbo08UAuZqkpUoFKML6L/INTY7mdnTS8fHGrE5ajXmLUTy uyi3mNx0DqR0bL3ulf6p1uY+dGeHtrYJsuXhrxyHC/1DQdiA8fBGxN7v40sv8AkIKndb AVwHqODx8WbMpsrP/zfasxAZ50CGgc9SVAXfy0jnOEzuto3RwASqjTo0wagA0m2k/djY OX+w== X-Gm-Message-State: AFqh2kpm6NAfAQJAKMZS0SrnlCuEnWBzSvI4izyw/LRhr2hU7Y77MUoP Ceol+8+mv7MQezvCOEyPuMMjgdQ9ntaaf6uGDbE= X-Received: by 2002:a05:600c:1e84:b0:3d3:5cd6:760 with SMTP id be4-20020a05600c1e8400b003d35cd60760mr4702308wmb.20.1671548217991; Tue, 20 Dec 2022 06:56:57 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id i12-20020a05600c354c00b003cfd64b6be1sm30842762wmq.27.2022.12.20.06.56.56 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 20 Dec 2022 06:56:57 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Peter Maydell , Ilya Leoshkevich , Eduardo Habkost , qemu-s390x@nongnu.org, Song Gao , Richard Henderson , David Hildenbrand , Xiaojuan Yang , Thomas Huth , Paolo Bonzini , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 5/5] hw/core: Only build CPU reset handlers with system emulation Date: Tue, 20 Dec 2022 15:56:25 +0100 Message-Id: <20221220145625.26392-6-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221220145625.26392-1-philmd@linaro.org> References: <20221220145625.26392-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=philmd@linaro.org; helo=mail-wm1-x32a.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=unavailable 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 In user emulation, threads -- implemented as CPU -- are created/destroyed, but never reset. There is no point in providing the sysemu/reset handlers there. Signed-off-by: Philippe Mathieu-Daudé --- hw/core/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/core/meson.build b/hw/core/meson.build index 7a4d02b6c0..ce6fdb0064 100644 --- a/hw/core/meson.build +++ b/hw/core/meson.build @@ -3,7 +3,6 @@ hwcore_ss.add(files( 'bus.c', 'qdev-properties.c', 'qdev.c', - 'reset.c', 'resettable.c', 'vmstate-if.c', # irq.c needed for qdev GPIO handling: @@ -15,6 +14,7 @@ if have_system hwcore_ss.add(files( 'hotplug.c', 'qdev-hotplug.c', + 'reset.c', )) else hwcore_ss.add(files(