]> git.proxmox.com Git - mirror_qemu.git/commit - target/ppc/translate_init.c.inc
target/ppc: Don't bother with MSR_EP in cpu_ppc_set_papr()
authorDavid Gibson <david@gibson.dropbear.id.au>
Fri, 13 Apr 2018 04:54:34 +0000 (14:54 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 27 Apr 2018 08:05:23 +0000 (18:05 +1000)
commit4550f6a5da691fa45e801f391e947ff4236d1fa6
treebce92f00bf9932145ab69360bc27aad4ca698a68
parenta324d6f166970f8f6a82c61ffd2356fbda81c8f4
target/ppc: Don't bother with MSR_EP in cpu_ppc_set_papr()

cpu_ppc_set_papr() removes the EP and HV bits from the MSR mask.  While
removing the HV bit makes sense (a cpu in PAPR mode should never be
emulated in hypervisor mode), the EP bit is just bizarre.  Although it's
true that a papr mode guest shouldn't be able to change the exception
prefix, the MSR[EP] bit doesn't even exist on the cpus supported for PAPR
mode, so it's pointless to do anything with it here.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Thomas Huth <thuth@redhat.com>
target/ppc/translate_init.c