qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 5/6] ppc405_boards: use qdev instead of legacy m48t59_init()


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH 5/6] ppc405_boards: use qdev instead of legacy m48t59_init() function
Date: Sun, 18 Oct 2020 09:13:18 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.3.1

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) {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]