Message ID | cbd0085a1b503deeb3bebe56d5d10ce14c8113ee.1602965621.git.balaton@eik.bme.hu |
---|---|
State | New |
Headers | show |
Series | m48t59: remove legacy init functions | expand |
On 10/17/20 10:13 PM, BALATON Zoltan via wrote: > Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu> > --- > hw/ppc/ppc405_boards.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> > > 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, 0xF0300000); > /* Register NVRAM */ > - m48t59_init(NULL, 0xF0000000, 0, 8192, 1968, 8); > + sysbus_create_simple("sysbus-m48t08", 0xF0000000, NULL); > /* Load kernel */ > linux_boot = (kernel_filename != NULL); > if (linux_boot) { >
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, 0xF0300000); /* Register NVRAM */ - m48t59_init(NULL, 0xF0000000, 0, 8192, 1968, 8); + sysbus_create_simple("sysbus-m48t08", 0xF0000000, NULL); /* Load kernel */ linux_boot = (kernel_filename != NULL); if (linux_boot) {
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu> --- hw/ppc/ppc405_boards.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)