target/ppc: add support for Hypervisor Facility Unavailable Exception
authorCédric Le Goater <clg@kaod.org>
Mon, 20 Jan 2020 10:49:35 +0000 (11:49 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Sun, 2 Feb 2020 03:07:57 +0000 (14:07 +1100)
commit493028d8d798f4ac7b933c91598605acd7e61c7e
tree515917071f32e8d0617530cae87a7869eda9492b
parent5ba7ba1da096de0b70f65c08df5584a4878012e7
target/ppc: add support for Hypervisor Facility Unavailable Exception

The privileged message send and clear instructions (msgsndp & msgclrp)
are privileged, but will generate a hypervisor facility unavailable
exception if not enabled in the HFSCR and executed in privileged
non-hypervisor state.

Add checks when accessing the DPDES register and when using the
msgsndp and msgclrp isntructions.

Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20200120104935.24449-3-clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/cpu.h
target/ppc/excp_helper.c
target/ppc/misc_helper.c