aboutsummaryrefslogtreecommitdiff
path: root/hw/loongarch
diff options
context:
space:
mode:
authorXiaojuan Yang <yangxiaojuan@loongson.cn>2022-08-10 16:41:52 +0800
committerSong Gao <gaosong@loongson.cn>2022-09-20 15:44:25 +0800
commitf8ab9aa2883c91fb14eb583febf6a301373c8f62 (patch)
tree737db2defa2a4cc73fd073fdfee5fa0905d8e7cb /hw/loongarch
parente27e535768129834cf6debed4575a161f7013dda (diff)
downloadqemu-f8ab9aa2883c91fb14eb583febf6a301373c8f62.zip
qemu-f8ab9aa2883c91fb14eb583febf6a301373c8f62.tar.gz
qemu-f8ab9aa2883c91fb14eb583febf6a301373c8f62.tar.bz2
hw/loongarch: Add RAMFB to dynamic_sysbus_devices list
Add RAMFB device to dynamic_sysbus_devices list so that it can be hotpluged to the machine. Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn> Acked-by: Song Gao <gaosong@loongson.cn> Message-Id: <20220908094623.73051-7-yangxiaojuan@loongson.cn> Signed-off-by: Song Gao <gaosong@loongson.cn>
Diffstat (limited to 'hw/loongarch')
-rw-r--r--hw/loongarch/virt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/loongarch/virt.c b/hw/loongarch/virt.c
index eedff10..0dd5793 100644
--- a/hw/loongarch/virt.c
+++ b/hw/loongarch/virt.c
@@ -39,6 +39,7 @@
#include <libfdt.h>
#include "hw/core/sysbus-fdt.h"
#include "hw/platform-bus.h"
+#include "hw/display/ramfb.h"
static void create_fdt(LoongArchMachineState *lams)
{
@@ -852,6 +853,7 @@ static void loongarch_class_init(ObjectClass *oc, void *data)
NULL, NULL);
object_class_property_set_description(oc, "acpi",
"Enable ACPI");
+ machine_class_allow_dynamic_sysbus_dev(mc, TYPE_RAMFB_DEVICE);
}
static const TypeInfo loongarch_machine_types[] = {