mirror of https://github.com/xemu-project/xemu.git
hw/ppc/pnv_core: Update hflags after setting msr
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20210315184615.1985590-15-richard.henderson@linaro.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
56ced49760
commit
bd4160bc6a
|
@ -29,6 +29,7 @@
|
||||||
#include "hw/ppc/pnv_xscom.h"
|
#include "hw/ppc/pnv_xscom.h"
|
||||||
#include "hw/ppc/xics.h"
|
#include "hw/ppc/xics.h"
|
||||||
#include "hw/qdev-properties.h"
|
#include "hw/qdev-properties.h"
|
||||||
|
#include "helper_regs.h"
|
||||||
|
|
||||||
static const char *pnv_core_cpu_typename(PnvCore *pc)
|
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->gpr[3] = PNV_FDT_ADDR;
|
||||||
env->nip = 0x10;
|
env->nip = 0x10;
|
||||||
env->msr |= MSR_HVB; /* Hypervisor mode */
|
env->msr |= MSR_HVB; /* Hypervisor mode */
|
||||||
|
|
||||||
env->spr[SPR_HRMOR] = pc->hrmor;
|
env->spr[SPR_HRMOR] = pc->hrmor;
|
||||||
|
hreg_compute_hflags(env);
|
||||||
|
|
||||||
pcc->intc_reset(pc->chip, cpu);
|
pcc->intc_reset(pc->chip, cpu);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue