]> xenbits.xensource.com Git - qemu-xen-unstable.git/commit
riscv/virt: Manually define the machine
authorAlistair Francis <alistair.francis@wdc.com>
Tue, 8 Oct 2019 23:32:22 +0000 (16:32 -0700)
committerPalmer Dabbelt <palmer@sifive.com>
Mon, 28 Oct 2019 14:47:28 +0000 (07:47 -0700)
commitcdfc19e456c7bb6dc7c308a7bc0bb22f3969843f
treeaef88e10b865c997bb3eecddd49d759c21a9f508
parentfc41ae230e73df1822558a08a790a39c934e142d
riscv/virt: Manually define the machine

Instead of using the DEFINE_MACHINE() macro to define the machine let's
do it manually. This allows us to use the machine object to create
RISCVVirtState. This is required to add children and aliases to the
machine.

This patch is no functional change.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
hw/riscv/virt.c
include/hw/riscv/virt.h