]> Git Repo - qemu.git/commitdiff
hw/ppc/pnv_core: Update hflags after setting msr
authorRichard Henderson <[email protected]>
Mon, 15 Mar 2021 18:46:12 +0000 (12:46 -0600)
committerDavid Gibson <[email protected]>
Tue, 4 May 2021 01:41:24 +0000 (11:41 +1000)
Signed-off-by: Richard Henderson <[email protected]>
Message-Id: <20210315184615.1985590[email protected]>
Signed-off-by: David Gibson <[email protected]>
hw/ppc/pnv_core.c

index bd2bf2e044725f1675138d926d373f7a59bf8485..8c2a15a0fb2f4cbd99d91c9d2b90c303ce9c762c 100644 (file)
@@ -29,6 +29,7 @@
 #include "hw/ppc/pnv_xscom.h"
 #include "hw/ppc/xics.h"
 #include "hw/qdev-properties.h"
+#include "helper_regs.h"
 
 static const char *pnv_core_cpu_typename(PnvCore *pc)
 {
@@ -55,8 +56,8 @@ static void pnv_core_cpu_reset(PnvCore *pc, PowerPCCPU *cpu)
     env->gpr[3] = PNV_FDT_ADDR;
     env->nip = 0x10;
     env->msr |= MSR_HVB; /* Hypervisor mode */
-
     env->spr[SPR_HRMOR] = pc->hrmor;
+    hreg_compute_hflags(env);
 
     pcc->intc_reset(pc->chip, cpu);
 }
This page took 0.027982 seconds and 4 git commands to generate.