Searched refs:sprn (Results 1 – 7 of 7) sorted by relevance
/linux-2.6.39/arch/powerpc/kvm/ |
D | book3s_emulate.c | 267 static struct kvmppc_bat *kvmppc_find_bat(struct kvm_vcpu *vcpu, int sprn) in kvmppc_find_bat() argument 272 switch (sprn) { in kvmppc_find_bat() 274 bat = &vcpu_book3s->ibat[(sprn - SPRN_IBAT0U) / 2]; in kvmppc_find_bat() 277 bat = &vcpu_book3s->ibat[4 + ((sprn - SPRN_IBAT4U) / 2)]; in kvmppc_find_bat() 280 bat = &vcpu_book3s->dbat[(sprn - SPRN_DBAT0U) / 2]; in kvmppc_find_bat() 283 bat = &vcpu_book3s->dbat[4 + ((sprn - SPRN_DBAT4U) / 2)]; in kvmppc_find_bat() 292 int kvmppc_core_emulate_mtspr(struct kvm_vcpu *vcpu, int sprn, int rs) in kvmppc_core_emulate_mtspr() argument 297 switch (sprn) { in kvmppc_core_emulate_mtspr() 315 struct kvmppc_bat *bat = kvmppc_find_bat(vcpu, sprn); in kvmppc_core_emulate_mtspr() 317 kvmppc_set_bat(vcpu, bat, !(sprn % 2), (u32)spr_val); in kvmppc_core_emulate_mtspr() [all …]
|
D | 44x_emulate.c | 144 int kvmppc_core_emulate_mtspr(struct kvm_vcpu *vcpu, int sprn, int rs) in kvmppc_core_emulate_mtspr() argument 148 switch (sprn) { in kvmppc_core_emulate_mtspr() 158 emulated = kvmppc_booke_emulate_mtspr(vcpu, sprn, rs); in kvmppc_core_emulate_mtspr() 165 int kvmppc_core_emulate_mfspr(struct kvm_vcpu *vcpu, int sprn, int rt) in kvmppc_core_emulate_mfspr() argument 169 switch (sprn) { in kvmppc_core_emulate_mfspr() 179 emulated = kvmppc_booke_emulate_mfspr(vcpu, sprn, rt); in kvmppc_core_emulate_mfspr()
|
D | e500_emulate.c | 73 int kvmppc_core_emulate_mtspr(struct kvm_vcpu *vcpu, int sprn, int rs) in kvmppc_core_emulate_mtspr() argument 79 switch (sprn) { in kvmppc_core_emulate_mtspr() 133 emulated = kvmppc_booke_emulate_mtspr(vcpu, sprn, rs); in kvmppc_core_emulate_mtspr() 139 int kvmppc_core_emulate_mfspr(struct kvm_vcpu *vcpu, int sprn, int rt) in kvmppc_core_emulate_mfspr() argument 144 switch (sprn) { in kvmppc_core_emulate_mfspr() 199 emulated = kvmppc_booke_emulate_mfspr(vcpu, sprn, rt); in kvmppc_core_emulate_mfspr()
|
D | emulate.c | 141 int sprn; in kvmppc_emulate_instruction() local 240 sprn = get_sprn(inst); in kvmppc_emulate_instruction() 243 switch (sprn) { in kvmppc_emulate_instruction() 290 emulated = kvmppc_core_emulate_mfspr(vcpu, sprn, rt); in kvmppc_emulate_instruction() 292 printk("mfspr: unknown spr %x\n", sprn); in kvmppc_emulate_instruction() 325 sprn = get_sprn(inst); in kvmppc_emulate_instruction() 327 switch (sprn) { in kvmppc_emulate_instruction() 361 emulated = kvmppc_core_emulate_mtspr(vcpu, sprn, rs); in kvmppc_emulate_instruction() 363 printk("mtspr: unknown spr %x\n", sprn); in kvmppc_emulate_instruction()
|
D | booke.h | 72 int kvmppc_booke_emulate_mfspr(struct kvm_vcpu *vcpu, int sprn, int rt); 73 int kvmppc_booke_emulate_mtspr(struct kvm_vcpu *vcpu, int sprn, int rs);
|
D | booke_emulate.c | 101 int kvmppc_booke_emulate_mtspr(struct kvm_vcpu *vcpu, int sprn, int rs) in kvmppc_booke_emulate_mtspr() argument 106 switch (sprn) { in kvmppc_booke_emulate_mtspr() 195 int kvmppc_booke_emulate_mfspr(struct kvm_vcpu *vcpu, int sprn, int rt) in kvmppc_booke_emulate_mfspr() argument 199 switch (sprn) { in kvmppc_booke_emulate_mfspr()
|
/linux-2.6.39/arch/powerpc/include/asm/ |
D | kvm_ppc.h | 103 extern int kvmppc_core_emulate_mtspr(struct kvm_vcpu *vcpu, int sprn, int rs); 104 extern int kvmppc_core_emulate_mfspr(struct kvm_vcpu *vcpu, int sprn, int rt);
|