aboutsummaryrefslogtreecommitdiff
path: root/hw/riscv
diff options
context:
space:
mode:
authorAsherah Connor <ashe@kivikakk.ee>2021-03-19 10:50:41 +1100
committerAlistair Francis <alistair.francis@wdc.com>2021-03-22 21:54:40 -0400
commitc346749ee9d75fcb11bb816d0665ce174425d667 (patch)
treed4d416826bc30e4c72525961aa35ed5dfdbec3c6 /hw/riscv
parent0489348d0d31f216e925855f3ac37a6fc666aaaf (diff)
downloadqemu-c346749ee9d75fcb11bb816d0665ce174425d667.zip
qemu-c346749ee9d75fcb11bb816d0665ce174425d667.tar.gz
qemu-c346749ee9d75fcb11bb816d0665ce174425d667.tar.bz2
hw/riscv: allow ramfb on virt
Allow ramfb on virt. This lets `-device ramfb' work. Signed-off-by: Asherah Connor <ashe@kivikakk.ee> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-id: 20210318235041.17175-3-ashe@kivikakk.ee Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'hw/riscv')
-rw-r--r--hw/riscv/virt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/riscv/virt.c b/hw/riscv/virt.c
index e96ec4c..c0dc69f 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"
static const MemMapEntry virt_memmap[] = {
[VIRT_DEBUG] = { 0x0, 0x100 },
@@ -781,6 +782,8 @@ static void virt_machine_class_init(ObjectClass *oc, void *data)
mc->cpu_index_to_instance_props = riscv_numa_cpu_index_to_props;
mc->get_default_cpu_node_id = riscv_numa_get_default_cpu_node_id;
mc->numa_mem_supported = true;
+
+ machine_class_allow_dynamic_sysbus_dev(mc, TYPE_RAMFB_DEVICE);
}
static const TypeInfo virt_machine_typeinfo = {