kvm: ppc: booke: Add shared struct helpers of SPRN_ESR
authorBharat Bhushan <Bharat.Bhushan@freescale.com>
Thu, 17 Jul 2014 11:31:38 +0000 (17:01 +0530)
committerAlexander Graf <agraf@suse.de>
Mon, 28 Jul 2014 13:23:12 +0000 (15:23 +0200)
commitdc168549d9a0fb55d3021ee408adf25786cfda23
tree969012dd07af9532d8f8c576b636e5450090b554
parenta5414d4b5ed8a2b10a1c8fe84f30ed4f19d0a35e
kvm: ppc: booke: Add shared struct helpers of SPRN_ESR

Add and use kvmppc_set_esr() and kvmppc_get_esr() helper functions

Signed-off-by: Bharat Bhushan <Bharat.Bhushan@freescale.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/include/asm/kvm_ppc.h
arch/powerpc/kvm/booke.c