]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S: PR: Fix hsrr code
authorAlexander Graf <agraf@suse.de>
Thu, 10 May 2012 01:58:50 +0000 (03:58 +0200)
committerAlexander Graf <agraf@suse.de>
Wed, 16 May 2012 13:02:11 +0000 (15:02 +0200)
commit8e5c290a3bd9d5bc9a63e1cb8a259b92aae01b10
tree6b64efd4aed00c5954db0e7fdfef90eb67753a98
parent53106253f63c907b87ae2a399d1419a32f549908
KVM: PPC: Book3S: PR: Fix hsrr code

When jumping back into the kernel to code that knows that it would be
using HSRR registers instead of SRR registers, we need to make sure we
pass it all information on where to jump to in HSRR registers.

Unfortunately, we used r10 to store the information to distinguish between
the HSRR and SRR case. That register got clobbered in between though,
rendering the later comparison invalid.

Instead, let's use cr1 to store this information. That way we don't
need yet another register and everyone's happy.

This fixes PR KVM on POWER7 bare metal for me.

Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/kvm/book3s_segment.S