KVM: PPC: Fix error in BAT assignment
authorAlexander Graf <agraf@suse.de>
Fri, 19 Feb 2010 10:00:41 +0000 (11:00 +0100)
committerAvi Kivity <avi@redhat.com>
Sun, 25 Apr 2010 09:35:18 +0000 (12:35 +0300)
commitdba2e123e7502870c965e4b445554bc8e56f78b2
treea6a82c6906d4804d8c88f6e903469bbd6faaa16d
parent963cf3dc6342fe60bb78c615884537621abca0bc
KVM: PPC: Fix error in BAT assignment

BATs didn't work. Well, they did, but only up to BAT3. As soon as we
came to BAT4 the offset calculation was screwed up and we ended up
overwriting BAT0-3.

Fortunately, Linux hasn't been using BAT4+. It's still a good
idea to write correct code though.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/kvm/book3s_64_emulate.c