diff options
Diffstat (limited to 'arch/arm64/include/asm/kvm_emulate.h')
| -rw-r--r-- | arch/arm64/include/asm/kvm_emulate.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/arch/arm64/include/asm/kvm_emulate.h b/arch/arm64/include/asm/kvm_emulate.h index 5a182afab43b..25a40213bd9b 100644 --- a/arch/arm64/include/asm/kvm_emulate.h +++ b/arch/arm64/include/asm/kvm_emulate.h | |||
| @@ -100,15 +100,10 @@ static inline void vcpu_set_thumb(struct kvm_vcpu *vcpu) | |||
| 100 | } | 100 | } |
| 101 | 101 | ||
| 102 | /* | 102 | /* |
| 103 | * vcpu_reg should always be passed a register number coming from a | 103 | * vcpu_get_reg and vcpu_set_reg should always be passed a register number |
| 104 | * read of ESR_EL2. Otherwise, it may give the wrong result on AArch32 | 104 | * coming from a read of ESR_EL2. Otherwise, it may give the wrong result on |
| 105 | * with banked registers. | 105 | * AArch32 with banked registers. |
| 106 | */ | 106 | */ |
| 107 | static inline unsigned long *vcpu_reg(const struct kvm_vcpu *vcpu, u8 reg_num) | ||
| 108 | { | ||
| 109 | return (unsigned long *)&vcpu_gp_regs(vcpu)->regs.regs[reg_num]; | ||
| 110 | } | ||
| 111 | |||
| 112 | static inline unsigned long vcpu_get_reg(const struct kvm_vcpu *vcpu, | 107 | static inline unsigned long vcpu_get_reg(const struct kvm_vcpu *vcpu, |
| 113 | u8 reg_num) | 108 | u8 reg_num) |
| 114 | { | 109 | { |
