KVM: PPC: Add helpers for CR, XER
authorAlexander Graf <agraf@suse.de>
Fri, 8 Jan 2010 01:58:02 +0000 (02:58 +0100)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 1 Mar 2010 15:35:47 +0000 (12:35 -0300)
commit992b5b29b5ae254c416c62faf98d59a6cf970027
tree52b4e5a8226261cc936225636d58d9b7e8c46976
parent8e5b26b55a8b6aee2c789b1d20ec715f9e4bea5c
KVM: PPC: Add helpers for CR, XER

We now have helpers for the GPRs, so let's also add some for CR and XER.

Having them in the PACA simplifies code a lot, as we don't need to care
about where to store CC or not to overflow any integers.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/include/asm/kvm_ppc.h
arch/powerpc/kvm/44x_tlb.c
arch/powerpc/kvm/book3s.c
arch/powerpc/kvm/booke.c