]> git.proxmox.com Git - mirror_qemu.git/commit
ppc: Fix writing to AMR/UAMOR
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 21 Mar 2016 12:52:37 +0000 (13:52 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 24 Mar 2016 00:17:34 +0000 (11:17 +1100)
commit97eaf30ec68eab6efdedf32ad210581d074bcb03
tree0d483872cf2509b6423cc252e64cd9b9aa0eb367
parent6a9c4ef452c98060e919aa49db49c09ed8c37745
ppc: Fix writing to AMR/UAMOR

The masks weren't chosen nor applied properly. The architecture specifies
that writes to AMR are masked by UAMOR for PR=1, otherwise AMOR for HV=0.

The writes to UAMOR are masked by AMOR for HV=0

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
[clg: moved gen_spr_amr() prototype change to next patch ]
Signed-off-by: Cédric Le Goater <clg@fr.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target-ppc/translate_init.c