]> Git Repo - qemu.git/commit - target/ppc/translate_init.inc.c
ppc: Better figure out if processor has HV mode
authorBenjamin Herrenschmidt <[email protected]>
Fri, 3 Jun 2016 12:11:19 +0000 (14:11 +0200)
committerDavid Gibson <[email protected]>
Tue, 7 Jun 2016 00:17:45 +0000 (10:17 +1000)
commit932ccbdd48cea5b86f895bdc7d6b409d24aa81cd
tree78404bda8cf2ff2b6f5ab1886751791af30676b4
parent1ea1eefcbbcbea91ab295bd5c8c5330d1f458174
ppc: Better figure out if processor has HV mode

We use an env. flag which is set to the initial value of MSR_HVB in
the msr_mask. We also adjust the POWER8 mask to set SHV.

Also use this to adjust ctx.hv so that it is *set* when the processor
doesn't have an HV mode (970 with Apple mode for example), thus enabling
hypervisor instructions/SPRs.

Signed-off-by: Benjamin Herrenschmidt <[email protected]>
Reviewed-by: David Gibson <[email protected]>
[clg: ctx.hv used to be defined only for the hypervisor kernel
      (HV=1|PR=0). It is now defined also when PR=1 and conditions are
      fixed accordingly.
      stripped unwanted tabs.]
Signed-off-by: Cédric Le Goater <[email protected]>
Signed-off-by: David Gibson <[email protected]>
target-ppc/cpu.h
target-ppc/translate.c
target-ppc/translate_init.c
This page took 0.024828 seconds and 4 git commands to generate.