]> git.karo-electronics.de Git - linux-beck.git/commitdiff
KVM: PPC: Add QPR registers
authorAlexander Graf <agraf@suse.de>
Fri, 19 Feb 2010 10:00:27 +0000 (11:00 +0100)
committerAvi Kivity <avi@redhat.com>
Sun, 25 Apr 2010 09:34:35 +0000 (12:34 +0300)
The Gekko has GPRs, SPRs and FPRs like normal PowerPC codes, but
it also has QPRs which are basically single precision only FPU registers
that get used when in paired single mode.

The following patches depend on them being around, so let's add the
definitions early.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/include/asm/kvm_host.h

index 5e5bae7e152fe4a084eef9f61cf72abfe728e399..4b14dcd4874b05092a430ea8004817fb68c6d9d7 100644 (file)
@@ -186,6 +186,11 @@ struct kvm_vcpu_arch {
        u64 vsr[32];
 #endif
 
+#ifdef CONFIG_PPC_BOOK3S
+       /* For Gekko paired singles */
+       u32 qpr[32];
+#endif
+
        ulong pc;
        ulong ctr;
        ulong lr;