hw/ppc/spapr: Implement h_set_dabr
commitaf08a58f0ca338eafee855921859a8c1ace0175b
authorThomas Huth <thuth@redhat.com>
Thu, 11 Feb 2016 12:47:19 +0000 (11 13:47 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 16 Feb 2016 22:59:30 +0000 (17 09:59 +1100)
tree58613bf2288bc07b84c1c527a564f20044b78537
parent423576f771db8c6dbb944ddb8dc15b472f62de4a
hw/ppc/spapr: Implement h_set_dabr

According to LoPAPR, h_set_dabr should simply set DABRX to 3
(if the register is available), and load the parameter into DABR.
If DABRX is not available, the hypervisor has to check the
"Breakpoint Translation" bit of the DABR register first.

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