From patchwork Tue Jan 28 14:21:48 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: 860406 Delivered-To: patch@linaro.org Received: by 2002:a5d:6b8c:0:b0:385:e875:8a9e with SMTP id n12csp375832wrx; Tue, 28 Jan 2025 06:23:13 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXuGILM/f8ylGAH9i2WXaGArvTLExiYUVvJBQSQlVEAZm0KjlCmqZ50ZVpRc8+OuP1ZMe7R2A==@linaro.org X-Google-Smtp-Source: AGHT+IGGzgFoy70agFCZnfvZwnaD6Pg6s0FmXY7v+9rpAyPKutXFeS2iap+31t+/pDUivIJz8WLY X-Received: by 2002:a05:6214:2aa2:b0:6d8:b733:47c with SMTP id 6a1803df08f44-6e236734864mr49883946d6.22.1738074193220; Tue, 28 Jan 2025 06:23:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1738074193; cv=none; d=google.com; s=arc-20240605; b=QNsslU39aO9LVgorEnsXowO/zrQ4IO6oc1TM7u/hh8STdlba1ecULBhEE6MB3MrsJe uULVQ0V/6BilePq9CHpAN6Zr4VlbrP+Cc+6f1yNtnfZ6MH+lPZSYv+Cw9px41TIqFH8P kjRM0bzUnSBgW3swnWThPWFJL9U4U/h4KB+ov95Wp5dW/LmqbHOlQrYsaBk8OngII4+Y g3E8ohHtWBxI2l8w395WTg637A2Tf+R7Cn1W3I/6pxs73pEHKrlUPZSeSEYhtWoXDpJW LNkkdgv5ZznYv+yjUuL4hWyQJlYvjdrd0uHuwLNK7rJW456VW9ONdles9BpQqkVKYSp0 BJPg== 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=mCOhYMyVhf/9MTlWJYC1Pyb8EOr+qnDpIx/K4OIle8U=; fh=U6T2d4RqSCGJNf6LOIblgdoe4xaHu2Qwae+meUOhpik=; b=GZ3esfn660+UHmHHpAbcKEsS8fV/UDQMzThJAgxv1NKSVwb7pzArNwxMMiVjsls40l Tvbe2jqbnFHJ3w5Eki/R1hAGDZmzF0VX3NOiX+EUjV4LesywLZwh63SYGbQ9i/eYqoW0 mY8b9NHh8HybWwT0u5vmufha8nfi38cRLy8tP1kZGFtKn8YOCNYgatJyBT04bjJPZbrv BPHpIbef89uI2khHNqi/fpWExBFvkQMk1dm5x1oVaOH7q0Mlvs89jYoq7JdXA3ypW5dJ Y70NyQVN38eCtRyIJzqc8ecEiNdmTHgUQAp55hWY+IviGDBTnJAKfcTrMdRp6r4fnGA5 RDmQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HIXX8jpf; 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 6a1803df08f44-6e206011752si131378066d6.371.2025.01.28.06.23.13 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Jan 2025 06:23:13 -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=HIXX8jpf; 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 1tcmU9-00085u-VE; Tue, 28 Jan 2025 09:22:38 -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 1tcmTx-0007xt-Bd for qemu-devel@nongnu.org; Tue, 28 Jan 2025 09:22:25 -0500 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tcmTv-0002Lk-1v for qemu-devel@nongnu.org; Tue, 28 Jan 2025 09:22:24 -0500 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-4363dc916ceso42395915e9.0 for ; Tue, 28 Jan 2025 06:22:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1738074140; x=1738678940; 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=mCOhYMyVhf/9MTlWJYC1Pyb8EOr+qnDpIx/K4OIle8U=; b=HIXX8jpfYmx3orluh9tJuCSgZoXZhUMxVWmCNBwLqs+lQ2cOELDtbNhEi8FIn7KMTG D9GZrP3o5Rilow385pzHojPZYWXLFSKONzg9KyyLCpoD9iQj8oPEWZIK6c/Mq0GJ9C9N OfBXsSUVdQUSOh8+a844BI9ZyO9bz7JHyy/GxfQYn15nEjaOPfgOINdvVNMnSwWq8Qgk FrerrPoV+7O9Wvr7VnaFC37p4AZzSMme2QfEe0PkLnpa4EfdrlNKBi3wfLMwwrudZr1a 72xjRdu1LEKn5qOx7UCwVbs5iGuYEHahyvqBz+oUIVf27wiMgISfZ/viswW+0f7Eo2Zh D1Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738074140; x=1738678940; 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=mCOhYMyVhf/9MTlWJYC1Pyb8EOr+qnDpIx/K4OIle8U=; b=Y69Nu9Tnx/7snDTbOEyFzhP4RlHM+RrQqvuO/fcAKJov8X3kcvykYll/WdL8LrwXFz KkWbYWULLLUy3UPvylJUliedgLa0S69TyFMLXEwMFJXfNUIfVrNCIdb+RF0/fPXPDurC vBWK4/epo6DophsrXfvr3w4rHmaBU6qE0+iCSC1kGx/VXbxCC5agJ1dOuW9G7Qr7YqjB lVEQbXoT/KZXKCiOHpVkHKSZzAmoZ0cSQu30EqM3arGhHuwuERJo1AcH4w+cEM0i3YiY smZR3xcR4wKXGQ0ULIzgecJjWLT6DMo21FfLvcRRVdVCckLvLz7acEaTubgqc3Jj7jL4 K/Wg== X-Gm-Message-State: AOJu0YyOUSpTrPb/fkuv3BfAAHqVIjriASwsgH9IffBBrC+WydGtFkDd eEGBDO4zU2W1YTwSNxe0zyiewFU7zDMMP92dd4K+K0F/cTbEY4tAzT6Om6ZhUeqfYLjhltMWR88 +EYg= X-Gm-Gg: ASbGncuovb0nUC05K6IyTE2cdeCvJo5U1ys9YZp/uI4Gwm399GRlYhWRb5l0LCn7/ri 9+yGeGSTMN3uG+7uosHxx7CVUCEgS6eNTIrJ0netkMg+0LBwE5ypnXQaF5JNnWee3CwgX3hlfLH Wm+aOd40Ppd1bJM9uYRcblXwTIIaY+khv8ora5TNkyADOHyTigxBH4jVxyrYdJtgRzHOUXLHFIw 5AXGv1aC7M4oIik4PfGyunBIOoZVj6OnS+FDwuWgl0Fwm4pDUlqpuJvYls9ZCb4F8HDuwLBW0Ub d8Tji/uUVlnZhKYaEhUsE/EJxomilk9qD/YZErQ/gR96dyCvkIzlPr+IsZCV8OvrAA== X-Received: by 2002:a05:600c:6c92:b0:437:c453:ff19 with SMTP id 5b1f17b1804b1-438d59b566dmr30503145e9.14.1738074139917; Tue, 28 Jan 2025 06:22:19 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-438bd57325csm172106435e9.34.2025.01.28.06.22.18 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 28 Jan 2025 06:22:19 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Peter Maydell , Yanan Wang , Eduardo Habkost , Harsh Prateek Bora , kvm@vger.kernel.org, Zhao Liu , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Markus Armbruster , Igor Mammedov , Marcel Apfelbaum , Peter Xu , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Paolo Bonzini , Richard Henderson Subject: [PATCH 5/9] cpus: Add DeviceClass::[un]wire() stubs Date: Tue, 28 Jan 2025 15:21:48 +0100 Message-ID: <20250128142152.9889-6-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250128142152.9889-1-philmd@linaro.org> References: <20250128142152.9889-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=philmd@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, T_SCC_BODY_TEXT_LINE=-0.01 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é Reviewed-by: Richard Henderson --- hw/core/cpu-common.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hw/core/cpu-common.c b/hw/core/cpu-common.c index cb79566cc51..9ee44a00277 100644 --- a/hw/core/cpu-common.c +++ b/hw/core/cpu-common.c @@ -219,6 +219,14 @@ static void cpu_common_realizefn(DeviceState *dev, Error **errp) /* NOTE: latest generic point where the cpu is fully realized */ } +static void cpu_common_wire(DeviceState *dev) +{ +} + +static void cpu_common_unwire(DeviceState *dev) +{ +} + static void cpu_common_unrealizefn(DeviceState *dev) { CPUState *cpu = CPU(dev); @@ -311,6 +319,8 @@ static void cpu_common_class_init(ObjectClass *klass, void *data) k->gdb_write_register = cpu_common_gdb_write_register; set_bit(DEVICE_CATEGORY_CPU, dc->categories); dc->realize = cpu_common_realizefn; + dc->wire = cpu_common_wire; + dc->unwire = cpu_common_unwire; dc->unrealize = cpu_common_unrealizefn; rc->phases.hold = cpu_common_reset_hold; cpu_class_init_props(dc);