aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBharat Bhushan <Bharat.Bhushan@freescale.com>2014-07-30 05:33:56 -0400
committerAlexander Graf <agraf@suse.de>2014-07-30 05:39:52 -0400
commit5a484c7c1efd2c45f8cc726e4d21283a5324e361 (patch)
tree41b3767201731ae14718e1d7aaac1ee888be55c7
parentce91ddc471b77ec75e5b2a43c803efac605f37b3 (diff)
KVM: PPC: BOOKEHV: rename e500hv_spr to bookehv_spr
This are not specific to e500hv but applicable for bookehv (As per comment from Scott Wood on my patch "kvm: ppc: bookehv: Added wrapper macros for shadow registers") Signed-off-by: Bharat Bhushan <Bharat.Bhushan@freescale.com> Signed-off-by: Alexander Graf <agraf@suse.de>
-rw-r--r--arch/powerpc/include/asm/kvm_ppc.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/arch/powerpc/include/asm/kvm_ppc.h b/arch/powerpc/include/asm/kvm_ppc.h
index 8e36c1e2c631..fb86a2299d8a 100644
--- a/arch/powerpc/include/asm/kvm_ppc.h
+++ b/arch/powerpc/include/asm/kvm_ppc.h
@@ -539,16 +539,16 @@ static inline bool kvmppc_shared_big_endian(struct kvm_vcpu *vcpu)
539#endif 539#endif
540} 540}
541 541
542#define SPRNG_WRAPPER_GET(reg, e500hv_spr) \ 542#define SPRNG_WRAPPER_GET(reg, bookehv_spr) \
543static inline ulong kvmppc_get_##reg(struct kvm_vcpu *vcpu) \ 543static inline ulong kvmppc_get_##reg(struct kvm_vcpu *vcpu) \
544{ \ 544{ \
545 return mfspr(e500hv_spr); \ 545 return mfspr(bookehv_spr); \
546} \ 546} \
547 547
548#define SPRNG_WRAPPER_SET(reg, e500hv_spr) \ 548#define SPRNG_WRAPPER_SET(reg, bookehv_spr) \
549static inline void kvmppc_set_##reg(struct kvm_vcpu *vcpu, ulong val) \ 549static inline void kvmppc_set_##reg(struct kvm_vcpu *vcpu, ulong val) \
550{ \ 550{ \
551 mtspr(e500hv_spr, val); \ 551 mtspr(bookehv_spr, val); \
552} \ 552} \
553 553
554#define SHARED_WRAPPER_GET(reg, size) \ 554#define SHARED_WRAPPER_GET(reg, size) \
@@ -573,18 +573,18 @@ static inline void kvmppc_set_##reg(struct kvm_vcpu *vcpu, u##size val) \
573 SHARED_WRAPPER_GET(reg, size) \ 573 SHARED_WRAPPER_GET(reg, size) \
574 SHARED_WRAPPER_SET(reg, size) \ 574 SHARED_WRAPPER_SET(reg, size) \
575 575
576#define SPRNG_WRAPPER(reg, e500hv_spr) \ 576#define SPRNG_WRAPPER(reg, bookehv_spr) \
577 SPRNG_WRAPPER_GET(reg, e500hv_spr) \ 577 SPRNG_WRAPPER_GET(reg, bookehv_spr) \
578 SPRNG_WRAPPER_SET(reg, e500hv_spr) \ 578 SPRNG_WRAPPER_SET(reg, bookehv_spr) \
579 579
580#ifdef CONFIG_KVM_BOOKE_HV 580#ifdef CONFIG_KVM_BOOKE_HV
581 581
582#define SHARED_SPRNG_WRAPPER(reg, size, e500hv_spr) \ 582#define SHARED_SPRNG_WRAPPER(reg, size, bookehv_spr) \
583 SPRNG_WRAPPER(reg, e500hv_spr) \ 583 SPRNG_WRAPPER(reg, bookehv_spr) \
584 584
585#else 585#else
586 586
587#define SHARED_SPRNG_WRAPPER(reg, size, e500hv_spr) \ 587#define SHARED_SPRNG_WRAPPER(reg, size, bookehv_spr) \
588 SHARED_WRAPPER(reg, size) \ 588 SHARED_WRAPPER(reg, size) \
589 589
590#endif 590#endif