Home
last modified time | relevance | path

Searched refs:spr_val (Results 1 – 8 of 8) sorted by relevance

/arch/powerpc/kvm/
Dbooke_emulate.c120 int kvmppc_booke_emulate_mtspr(struct kvm_vcpu *vcpu, int sprn, ulong spr_val) in kvmppc_booke_emulate_mtspr() argument
127 vcpu->arch.shared->dar = spr_val; in kvmppc_booke_emulate_mtspr()
130 vcpu->arch.shared->esr = spr_val; in kvmppc_booke_emulate_mtspr()
133 vcpu->arch.csrr0 = spr_val; in kvmppc_booke_emulate_mtspr()
136 vcpu->arch.csrr1 = spr_val; in kvmppc_booke_emulate_mtspr()
139 vcpu->arch.dsrr0 = spr_val; in kvmppc_booke_emulate_mtspr()
142 vcpu->arch.dsrr1 = spr_val; in kvmppc_booke_emulate_mtspr()
153 vcpu->arch.dbg_reg.iac1 = spr_val; in kvmppc_booke_emulate_mtspr()
164 vcpu->arch.dbg_reg.iac2 = spr_val; in kvmppc_booke_emulate_mtspr()
176 vcpu->arch.dbg_reg.iac3 = spr_val; in kvmppc_booke_emulate_mtspr()
[all …]
De500_emulate.c205 int kvmppc_core_emulate_mtspr_e500(struct kvm_vcpu *vcpu, int sprn, ulong spr_val) in kvmppc_core_emulate_mtspr_e500() argument
213 kvmppc_set_pid(vcpu, spr_val); in kvmppc_core_emulate_mtspr_e500()
216 if (spr_val != 0) in kvmppc_core_emulate_mtspr_e500()
218 vcpu_e500->pid[1] = spr_val; in kvmppc_core_emulate_mtspr_e500()
221 if (spr_val != 0) in kvmppc_core_emulate_mtspr_e500()
223 vcpu_e500->pid[2] = spr_val; in kvmppc_core_emulate_mtspr_e500()
226 vcpu->arch.shared->mas0 = spr_val; in kvmppc_core_emulate_mtspr_e500()
229 vcpu->arch.shared->mas1 = spr_val; in kvmppc_core_emulate_mtspr_e500()
232 vcpu->arch.shared->mas2 = spr_val; in kvmppc_core_emulate_mtspr_e500()
236 vcpu->arch.shared->mas7_3 |= spr_val; in kvmppc_core_emulate_mtspr_e500()
[all …]
Demulate.c78 ulong spr_val = kvmppc_get_gpr(vcpu, rs); in kvmppc_emulate_mtspr() local
82 kvmppc_set_srr0(vcpu, spr_val); in kvmppc_emulate_mtspr()
85 kvmppc_set_srr1(vcpu, spr_val); in kvmppc_emulate_mtspr()
94 vcpu->arch.dec = (u32) spr_val; in kvmppc_emulate_mtspr()
99 kvmppc_set_sprg0(vcpu, spr_val); in kvmppc_emulate_mtspr()
102 kvmppc_set_sprg1(vcpu, spr_val); in kvmppc_emulate_mtspr()
105 kvmppc_set_sprg2(vcpu, spr_val); in kvmppc_emulate_mtspr()
108 kvmppc_set_sprg3(vcpu, spr_val); in kvmppc_emulate_mtspr()
116 spr_val); in kvmppc_emulate_mtspr()
131 ulong spr_val = 0; in kvmppc_emulate_mfspr() local
[all …]
Dbook3s_emulate.c682 int kvmppc_core_emulate_mtspr_pr(struct kvm_vcpu *vcpu, int sprn, ulong spr_val) in kvmppc_core_emulate_mtspr_pr() argument
690 to_book3s(vcpu)->sdr1 = spr_val; in kvmppc_core_emulate_mtspr_pr()
693 kvmppc_set_dsisr(vcpu, spr_val); in kvmppc_core_emulate_mtspr_pr()
696 kvmppc_set_dar(vcpu, spr_val); in kvmppc_core_emulate_mtspr_pr()
699 to_book3s(vcpu)->hior = spr_val; in kvmppc_core_emulate_mtspr_pr()
708 kvmppc_set_bat(vcpu, bat, !(sprn % 2), (u32)spr_val); in kvmppc_core_emulate_mtspr_pr()
716 to_book3s(vcpu)->hid[0] = spr_val; in kvmppc_core_emulate_mtspr_pr()
719 to_book3s(vcpu)->hid[1] = spr_val; in kvmppc_core_emulate_mtspr_pr()
722 to_book3s(vcpu)->hid[2] = spr_val; in kvmppc_core_emulate_mtspr_pr()
725 to_book3s(vcpu)->hid[2] = spr_val; in kvmppc_core_emulate_mtspr_pr()
[all …]
Dbooke.h75 int kvmppc_booke_emulate_mfspr(struct kvm_vcpu *vcpu, int sprn, ulong *spr_val);
76 int kvmppc_booke_emulate_mtspr(struct kvm_vcpu *vcpu, int sprn, ulong spr_val);
102 ulong spr_val);
104 ulong *spr_val);
110 ulong spr_val);
112 ulong *spr_val);
Dbook3s.h23 int sprn, ulong spr_val);
25 int sprn, ulong *spr_val);
Dbook3s_hv.c5000 ulong spr_val) in kvmppc_core_emulate_mtspr_hv() argument
5006 ulong *spr_val) in kvmppc_core_emulate_mfspr_hv() argument
/arch/powerpc/include/asm/
Dkvm_ppc.h304 int (*emulate_mtspr)(struct kvm_vcpu *vcpu, int sprn, ulong spr_val);
305 int (*emulate_mfspr)(struct kvm_vcpu *vcpu, int sprn, ulong *spr_val);