Skip to content

Commit

Permalink
KVM: PPC: BOOKEHV: rename e500hv_spr to bookehv_spr
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bharat Bhushan authored and Alexander Graf committed Jul 30, 2014
1 parent ce91ddc commit 5a484c7
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions arch/powerpc/include/asm/kvm_ppc.h
Original file line number Diff line number Diff line change
Expand Up @@ -539,16 +539,16 @@ static inline bool kvmppc_shared_big_endian(struct kvm_vcpu *vcpu)
#endif
}

#define SPRNG_WRAPPER_GET(reg, e500hv_spr) \
#define SPRNG_WRAPPER_GET(reg, bookehv_spr) \
static inline ulong kvmppc_get_##reg(struct kvm_vcpu *vcpu) \
{ \
return mfspr(e500hv_spr); \
return mfspr(bookehv_spr); \
} \

#define SPRNG_WRAPPER_SET(reg, e500hv_spr) \
#define SPRNG_WRAPPER_SET(reg, bookehv_spr) \
static inline void kvmppc_set_##reg(struct kvm_vcpu *vcpu, ulong val) \
{ \
mtspr(e500hv_spr, val); \
mtspr(bookehv_spr, val); \
} \

#define SHARED_WRAPPER_GET(reg, size) \
Expand All @@ -573,18 +573,18 @@ static inline void kvmppc_set_##reg(struct kvm_vcpu *vcpu, u##size val) \
SHARED_WRAPPER_GET(reg, size) \
SHARED_WRAPPER_SET(reg, size) \

#define SPRNG_WRAPPER(reg, e500hv_spr) \
SPRNG_WRAPPER_GET(reg, e500hv_spr) \
SPRNG_WRAPPER_SET(reg, e500hv_spr) \
#define SPRNG_WRAPPER(reg, bookehv_spr) \
SPRNG_WRAPPER_GET(reg, bookehv_spr) \
SPRNG_WRAPPER_SET(reg, bookehv_spr) \

#ifdef CONFIG_KVM_BOOKE_HV

#define SHARED_SPRNG_WRAPPER(reg, size, e500hv_spr) \
SPRNG_WRAPPER(reg, e500hv_spr) \
#define SHARED_SPRNG_WRAPPER(reg, size, bookehv_spr) \
SPRNG_WRAPPER(reg, bookehv_spr) \

#else

#define SHARED_SPRNG_WRAPPER(reg, size, e500hv_spr) \
#define SHARED_SPRNG_WRAPPER(reg, size, bookehv_spr) \
SHARED_WRAPPER(reg, size) \

#endif
Expand Down

0 comments on commit 5a484c7

Please sign in to comment.