sifive_u: Fix crash when introspecting the device
commit4eea9d7deb2332c9010ddea9dcd8680adad1bfed
authorAlistair Francis <alistair.francis@wdc.com>
Mon, 16 Jul 2018 22:30:32 +0000 (16 15:30 -0700)
committerAlistair Francis <alistair.francis@wdc.com>
Thu, 19 Jul 2018 16:05:48 +0000 (19 09:05 -0700)
treee3a103588d60f8cfcca12507bef8dd9eed51f548
parent54f3141a589caf872f148fdb12c59ad79083f268
sifive_u: 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_u.c