From nobody Tue Feb 10 07:57:46 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; 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 ARC-Seal: i=1; a=rsa-sha256; t=1614511295; cv=none; d=zohomail.com; s=zohoarc; b=W/1U8byMn4HnX/yU++RGdLSI0HSe5SUfhPXO6l0ayPBQyk2fky7XOkpV5JMlWBrUMUWpOZbQRWxc0TOX1MWRqtf1h6eoyVpc/4DdCIM8mgEBU1UeQVZ9A/j+5QA1OWk/Jw0eMDSpsEkufSltUEu4cM3Pg1grCmatxlUbW1MOq1g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1614511295; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=vgaqb+DYeGGMHRBgK96eRzJA9+5hGlbzZeIyl8s+Dho=; b=bwWk9uJ1FvWXFgM8a21pCdemqUGE4PdC+Fa2GBpoxZ1G0YWvfkOwRaSzIo3UfmxyQID7UNr9D+M3j8XTl3XE3E1u6yHj+U9ehZtN4B2GrFfZUni9mbqGVcj9r5HL1xpYDO7Lm84ZKBKZgO9t9h7KGYoAa2u4e+wuSJuuIAyRK8s= ARC-Authentication-Results: i=1; mx.zohomail.com; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1614511295199481.4915268377731; Sun, 28 Feb 2021 03:21:35 -0800 (PST) Received: from localhost ([::1]:59646 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lGK8j-0006D5-RO for importer@patchew.org; Sun, 28 Feb 2021 06:21:34 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33638) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGK4f-0003Vt-EM; Sun, 28 Feb 2021 06:17:21 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:42135) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGK4a-0000ZD-4h; Sun, 28 Feb 2021 06:17:21 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 69BC45C0048; Sun, 28 Feb 2021 06:17:15 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sun, 28 Feb 2021 06:17:15 -0500 Received: from ravenlin.tomodachi (119-18-31-135.77121f.mel.static.aussiebb.net [119.18.31.135]) by mail.messagingengine.com (Postfix) with ESMTPA id CC9471080054; Sun, 28 Feb 2021 06:17:12 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kivikakk.ee; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm1; bh=vgaqb+DYeGGMH RBgK96eRzJA9+5hGlbzZeIyl8s+Dho=; b=MnzulEBxDSJQZXcvxyq6hLXJ71nxx uPWFfgrzOBto828uzJQNAi/Z31TSSioTWvy3xRJjAd++ler3SZfFDr+3LM/RlzXT KQuLX3WW15PZmqlTUIHyfkdWV2wOG8CVXnqoaEX339MzJwxcze0Qq89dd8J3+A3E ENH6NUPEqzg70Av8CRZy6LPX3x2mBH/IzMsQpNez5Cgy9r/QDQGeVpcxXHqaln8D VewTxi2ojIvmpzwFshPxCLU95Afnifv9mpuAfKjgedPt9wPLO3zzu1WYPC0DRjbE YQhlF6u765dgQK1flhsOUT5DfEO++DZgt6tgT0r+2MAw5cGDdbpkZUo6A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=vgaqb+DYeGGMHRBgK96eRzJA9+5hGlbzZeIyl8s+Dho=; b=I88oPINH 9D1RcANL9SYdYmPhc30Roz0tDcTvTfafhfL+kEjc2raNQ72EpC3YszLdLkLixFXH 6gQI8R6qXJbctD13zBtBAlwwESsjGWRjAzttxQoZFClVDnrdKbZV+t88hoWXXX+s Q96WpyI+U/pmZYVS+7JEMp3t56xTk3nAgoB8eF7oFZr0I5huXEHjucXl/Rss1UzT YirLzKsCEEP73zvPI1P1euowl2RY265c43OhV6Ud8hP9zQQRiEnfvOaIDwIAm9z6 yur//WC4ArlbWk6x+Bdkr6Ork7GRWJLdbHZloo/9fUYVyYrhTx398Dz1G9nNyy6d H/vl4W50aHLMuA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrleeigddvjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomheptehshhgvrhgr hhcuvehonhhnohhruceorghshhgvsehkihhvihhkrghkkhdrvggvqeenucggtffrrghtth gvrhhnpeduffekffefveetfeefjeegudeghffgteeiteeltddtkedvgeffudeifeegkeet feenucfkphepudduledrudekrdefuddrudefheenucevlhhushhtvghrufhiiigvpedune curfgrrhgrmhepmhgrihhlfhhrohhmpegrshhhvgeskhhivhhikhgrkhhkrdgvvg X-ME-Proxy: From: Asherah Connor To: qemu-devel@nongnu.org Subject: [PATCH v3 2/2] hw/riscv: allow ramfb on virt Date: Sun, 28 Feb 2021 22:16:57 +1100 Message-Id: <20210228111657.23240-3-ashe@kivikakk.ee> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210228111657.23240-1-ashe@kivikakk.ee> References: <20210228111657.23240-1-ashe@kivikakk.ee> 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=66.111.4.27; envelope-from=ashe@kivikakk.ee; helo=out3-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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: qemu-riscv@nongnu.org, Sagar Karandikar , Bastian Koppelmann , Asherah Connor , Alistair Francis , Palmer Dabbelt , Bin Meng Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Allow ramfb on virt. This lets `-device ramfb' work. Signed-off-by: Asherah Connor Reviewed-by: Bin Meng Reviewed-by: Alistair Francis --- (no changes since v2) Changes in v2: * Add ramfb as allowed on riscv virt machine class. hw/riscv/virt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/riscv/virt.c b/hw/riscv/virt.c index 82eff42c37..700b481fa2 100644 --- a/hw/riscv/virt.c +++ b/hw/riscv/virt.c @@ -42,6 +42,7 @@ #include "sysemu/sysemu.h" #include "hw/pci/pci.h" #include "hw/pci-host/gpex.h" +#include "hw/display/ramfb.h" =20 static const struct MemmapEntry { hwaddr base; @@ -743,6 +744,8 @@ static void virt_machine_class_init(ObjectClass *oc, vo= id *data) mc->cpu_index_to_instance_props =3D riscv_numa_cpu_index_to_props; mc->get_default_cpu_node_id =3D riscv_numa_get_default_cpu_node_id; mc->numa_mem_supported =3D true; + + machine_class_allow_dynamic_sysbus_dev(mc, TYPE_RAMFB_DEVICE); } =20 static const TypeInfo virt_machine_typeinfo =3D { --=20 2.20.1