From nobody Fri Nov 29 19:44:36 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1632331918; cv=none; d=zohomail.com; s=zohoarc; b=ZEByXTbnm2aiPK9yHDQ4XNTbXpIdD60S7GZJ1DylokKn4sk4DJLk6ECObwG33IaQukMPHCYonqeNPRxa8c1tDEp4q8Mj1qk2IuGXUztAXeWW1w/tJKP54JLDoG4TojrBaX5CxNbGZAYjbVYu0KIop19DvqUpH1QKiEHwcRL43Vs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1632331918; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=20eMulj3Qy/DZxWmekzYSt42bv07Z1NJC97opChMppc=; b=Ax24ZBqsVIl0EzFGvndcC1ksubz911t3dXU819ViMlAH422oeDryr6AuzcwN+UvXyovnIImBGxZZN0m5toJQveHce1mjMoX45D74jGjIfs5LQ/2Xy8SWomc4eJjumhS7/atdUba9DzFax/QFaQUtG2GYrxa9xgnqWs9Y07NptcM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1632331918708328.1476233801949; Wed, 22 Sep 2021 10:31:58 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.192961.343709 (Exim 4.92) (envelope-from ) id 1mT65q-0003pG-ND; Wed, 22 Sep 2021 17:31:38 +0000 Received: by outflank-mailman (output) from mailman id 192961.343709; Wed, 22 Sep 2021 17:31:38 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mT65q-0003p9-Jh; Wed, 22 Sep 2021 17:31:38 +0000 Received: by outflank-mailman (input) for mailman id 192961; Wed, 22 Sep 2021 17:31:38 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mT65p-0003p3-Uf for xen-devel@lists.xenproject.org; Wed, 22 Sep 2021 17:31:37 +0000 Received: from beetle.greensocs.com (unknown [5.135.226.135]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id efd3b8be-1bca-11ec-b9c0-12813bfff9fa; Wed, 22 Sep 2021 17:31:36 +0000 (UTC) Received: from crumble.bar.greensocs.com (unknown [172.17.10.6]) by beetle.greensocs.com (Postfix) with ESMTPS id 98B7F21ED8; Wed, 22 Sep 2021 16:16:02 +0000 (UTC) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: efd3b8be-1bca-11ec-b9c0-12813bfff9fa DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=greensocs.com; s=mail; t=1632327363; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=20eMulj3Qy/DZxWmekzYSt42bv07Z1NJC97opChMppc=; b=0GTRQNrK+8eC4nSIBI1SyRdVgk/yz3AcWIgo1jZc+3/ixKzyuHi/rbXlOmb7SF5gwUT4je Kafcyz3ZizvLJ94FKvPqVu6mxe7wLyPq9T2y/XORwkJswxh9nvcCQaC5xGv/EED3DiFvN+ S0CxATzuTlW34AF4O/BZxkpylFrb5Mg= From: Damien Hedde To: qemu-devel@nongnu.org Cc: Damien Hedde , Alistair Francis , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Paolo Bonzini , Eduardo Habkost , Marcel Apfelbaum , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , "Michael S. Tsirkin" , Igor Mammedov , Ani Sinha , Gerd Hoffmann , Eric Auger , Stefano Stabellini , Anthony Perard , Paul Durrant , Peter Xu , David Hildenbrand , "Dr. David Alan Gilbert" , Markus Armbruster , Eric Blake , qemu-riscv@nongnu.org, xen-devel@lists.xenproject.org, mark.burton@greensocs.com, mirela.grujic@greensocs.com, edgari@xilinx.com, Peter Maydell Subject: [RFC PATCH v2 16/16] hw/intc/ibex_plic: set user_creatable Date: Wed, 22 Sep 2021 18:14:05 +0200 Message-Id: <20210922161405.140018-17-damien.hedde@greensocs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210922161405.140018-1-damien.hedde@greensocs.com> References: <20210922161405.140018-1-damien.hedde@greensocs.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Spam: Yes X-ZohoMail-DKIM: pass (identity @greensocs.com) X-ZM-MESSAGEID: 1632331921262100001 Content-Type: text/plain; charset="utf-8" This patch allows to create the device using device_add using -preconfig mode. This sysbus device still needs to be allowed by a machine to be created after preconfig is done. Signed-off-by: Damien Hedde --- Depending on chosen condition for a device to be added, this commit may change. --- hw/intc/ibex_plic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/intc/ibex_plic.c b/hw/intc/ibex_plic.c index edf76e4f61..8abd5ee613 100644 --- a/hw/intc/ibex_plic.c +++ b/hw/intc/ibex_plic.c @@ -291,6 +291,7 @@ static void ibex_plic_class_init(ObjectClass *klass, vo= id *data) { DeviceClass *dc =3D DEVICE_CLASS(klass); =20 + dc->user_creatable =3D true; dc->reset =3D ibex_plic_reset; device_class_set_props(dc, ibex_plic_properties); dc->realize =3D ibex_plic_realize; --=20 2.33.0