sifive_e: Fix crash when introspecting the device
commit54f3141a589caf872f148fdb12c59ad79083f268
authorAlistair Francis <alistair.francis@wdc.com>
Mon, 16 Jul 2018 22:29:01 +0000 (16 15:29 -0700)
committerAlistair Francis <alistair.francis@wdc.com>
Thu, 19 Jul 2018 16:05:48 +0000 (19 09:05 -0700)
treeb0a61f894a9e76d2b0d28a5767f0b84179fd7378
parente1ea55668ffe6ce558a063f3a9621b761738e1f2
sifive_e: Fix crash when introspecting the device

Use the new object_initialize_child() and sysbus_init_child_obj() to
fix the issue.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Suggested-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Michael Clark <mjc@sifive.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
hw/riscv/sifive_e.c