]> Git Repo - qemu.git/blobdiff - hw/ppc/mpc8544_guts.c
Merge remote-tracking branch 'remotes/stsquad/tags/pull-ci-updates-210617-2' into...
[qemu.git] / hw / ppc / mpc8544_guts.c
index 2e2f2eb91f19371f62f70c359e4c07c93fd84edf..ce1254b5d471362c8a872e30a6c49b3de395a9c7 100644 (file)
@@ -17,6 +17,9 @@
  *
  */
 
+#include "qemu/osdep.h"
+#include "qemu-common.h"
+#include "cpu.h"
 #include "hw/hw.h"
 #include "sysemu/sysemu.h"
 #include "hw/sysbus.h"
@@ -68,7 +71,8 @@ static uint64_t mpc8544_guts_read(void *opaque, hwaddr addr,
                                   unsigned size)
 {
     uint32_t value = 0;
-    CPUPPCState *env = cpu_single_env;
+    PowerPCCPU *cpu = POWERPC_CPU(current_cpu);
+    CPUPPCState *env = &cpu->env;
 
     addr &= MPC8544_GUTS_MMIO_SIZE - 1;
     switch (addr) {
@@ -94,7 +98,7 @@ static void mpc8544_guts_write(void *opaque, hwaddr addr,
     switch (addr) {
     case MPC8544_GUTS_ADDR_RSTCR:
         if (value & MPC8544_GUTS_RSTCR_RESET) {
-            qemu_system_reset_request();
+            qemu_system_reset_request(SHUTDOWN_CAUSE_GUEST_RESET);
         }
         break;
     default:
This page took 0.024675 seconds and 4 git commands to generate.