Re: [PATCH 5/6] ppc405_boards: use qdev instead of legacy m48t59_init() function
On 10/17/20 10:13 PM, BALATON Zoltan via wrote: Signed-off-by: BALATON Zoltan --- hw/ppc/ppc405_boards.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) Reviewed-by: Philippe Mathieu-Daudé diff --git a/hw/ppc/ppc405_boards.c b/hw/ppc/ppc405_boards.c index 6198ec1035..7a11a38831 100644 --- a/hw/ppc/ppc405_boards.c +++ b/hw/ppc/ppc405_boards.c @@ -28,6 +28,7 @@ #include "qemu-common.h" #include "cpu.h" #include "hw/ppc/ppc.h" +#include "hw/sysbus.h" #include "ppc405.h" #include "hw/rtc/m48t59.h" #include "hw/block/flash.h" @@ -227,7 +228,7 @@ static void ref405ep_init(MachineState *machine) /* Register FPGA */ ref405ep_fpga_init(sysmem, 0xF030); /* Register NVRAM */ -m48t59_init(NULL, 0xF000, 0, 8192, 1968, 8); +sysbus_create_simple("sysbus-m48t08", 0xF000, NULL); /* Load kernel */ linux_boot = (kernel_filename != NULL); if (linux_boot) {
[PATCH 5/6] ppc405_boards: use qdev instead of legacy m48t59_init() function
Signed-off-by: BALATON Zoltan --- hw/ppc/ppc405_boards.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/ppc/ppc405_boards.c b/hw/ppc/ppc405_boards.c index 6198ec1035..7a11a38831 100644 --- a/hw/ppc/ppc405_boards.c +++ b/hw/ppc/ppc405_boards.c @@ -28,6 +28,7 @@ #include "qemu-common.h" #include "cpu.h" #include "hw/ppc/ppc.h" +#include "hw/sysbus.h" #include "ppc405.h" #include "hw/rtc/m48t59.h" #include "hw/block/flash.h" @@ -227,7 +228,7 @@ static void ref405ep_init(MachineState *machine) /* Register FPGA */ ref405ep_fpga_init(sysmem, 0xF030); /* Register NVRAM */ -m48t59_init(NULL, 0xF000, 0, 8192, 1968, 8); +sysbus_create_simple("sysbus-m48t08", 0xF000, NULL); /* Load kernel */ linux_boot = (kernel_filename != NULL); if (linux_boot) { -- 2.21.3