]> git.proxmox.com Git - qemu.git/blobdiff - hw/ppc/spapr_hcall.c
cpu: Move halted and interrupt_request fields to CPUState
[qemu.git] / hw / ppc / spapr_hcall.c
index 77c052fcb1d055b9e4df1446e3847be977fbd594..dd72743b5209177b3da29232c24fb11cf56269b1 100644 (file)
@@ -543,7 +543,7 @@ static target_ulong h_cede(PowerPCCPU *cpu, sPAPREnvironment *spapr,
     env->msr |= (1ULL << MSR_EE);
     hreg_compute_hflags(env);
     if (!cpu_has_work(cs)) {
-        env->halted = 1;
+        cs->halted = 1;
         env->exception_index = EXCP_HLT;
         cs->exit_request = 1;
     }