diff options
author | Liu Yu <yu.liu@freescale.com> | 2009-06-05 14:54:30 +0800 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-09-10 08:32:47 +0300 |
commit | 5b7c1a2c17e77cd5416755bb9ac63278996f6c51 (patch) | |
tree | 5cfb03ceab87b877d7434092839a41bea61bfef1 /arch/powerpc/kvm | |
parent | 0cfb50e50dd27539fed9ba3cb33b0f22c0cddef0 (diff) | |
download | kernel_samsung_crespo-5b7c1a2c17e77cd5416755bb9ac63278996f6c51.zip kernel_samsung_crespo-5b7c1a2c17e77cd5416755bb9ac63278996f6c51.tar.gz kernel_samsung_crespo-5b7c1a2c17e77cd5416755bb9ac63278996f6c51.tar.bz2 |
KVM: ppc: e500: Directly pass pvr to guest
Signed-off-by: Liu Yu <yu.liu@freescale.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/powerpc/kvm')
-rw-r--r-- | arch/powerpc/kvm/e500.c | 3 | ||||
-rw-r--r-- | arch/powerpc/kvm/emulate.c | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/arch/powerpc/kvm/e500.c b/arch/powerpc/kvm/e500.c index 674e796..64949ee 100644 --- a/arch/powerpc/kvm/e500.c +++ b/arch/powerpc/kvm/e500.c @@ -60,9 +60,6 @@ int kvmppc_core_vcpu_setup(struct kvm_vcpu *vcpu) kvmppc_e500_tlb_setup(vcpu_e500); - /* Use the same core vertion as host's */ - vcpu->arch.pvr = mfspr(SPRN_PVR); - return 0; } diff --git a/arch/powerpc/kvm/emulate.c b/arch/powerpc/kvm/emulate.c index a561d6e..f8b8248 100644 --- a/arch/powerpc/kvm/emulate.c +++ b/arch/powerpc/kvm/emulate.c @@ -187,7 +187,7 @@ int kvmppc_emulate_instruction(struct kvm_run *run, struct kvm_vcpu *vcpu) case SPRN_SRR1: vcpu->arch.gpr[rt] = vcpu->arch.srr1; break; case SPRN_PVR: - vcpu->arch.gpr[rt] = vcpu->arch.pvr; break; + vcpu->arch.gpr[rt] = mfspr(SPRN_PVR); break; /* Note: mftb and TBRL/TBWL are user-accessible, so * the guest can always access the real TB anyways. |