]> git.hungrycats.org Git - linux/commitdiff
KVM: PPC: Book3S PR: Emulate TIR register
authorAlexander Graf <agraf@suse.de>
Fri, 25 Apr 2014 14:07:21 +0000 (16:07 +0200)
committerJiri Slaby <jslaby@suse.cz>
Mon, 17 Oct 2016 07:35:09 +0000 (09:35 +0200)
commit a5948fa092a04dfd6b9ee31c99eb6896c158eb08 upstream.

In parallel to the Processor ID Register (PIR) threaded POWER8 also adds a
Thread ID Register (TIR). Since PR KVM doesn't emulate more than one thread
per core, we can just always expose 0 here.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
arch/powerpc/kvm/book3s_emulate.c

index 57913b199919d261e9596081e6ba9dd02a518709..cda2cba56915676d77b2e3ec448593d6ec29e0a2 100644 (file)
@@ -570,6 +570,7 @@ int kvmppc_core_emulate_mfspr(struct kvm_vcpu *vcpu, int sprn, ulong *spr_val)
        case SPRN_MMCR0:
        case SPRN_MMCR1:
        case SPRN_MMCR2:
+       case SPRN_TIR:
 #endif
                *spr_val = 0;
                break;