Home
last modified time | relevance | path

Searched refs:srnum (Results 1 – 4 of 4) sorted by relevance

/arch/powerpc/kvm/
Dbook3s_32_mmu.c342 static u32 kvmppc_mmu_book3s_32_mfsrin(struct kvm_vcpu *vcpu, u32 srnum) in kvmppc_mmu_book3s_32_mfsrin() argument
344 return kvmppc_get_sr(vcpu, srnum); in kvmppc_mmu_book3s_32_mfsrin()
347 static void kvmppc_mmu_book3s_32_mtsrin(struct kvm_vcpu *vcpu, u32 srnum, in kvmppc_mmu_book3s_32_mtsrin() argument
350 kvmppc_set_sr(vcpu, srnum, value); in kvmppc_mmu_book3s_32_mtsrin()
351 kvmppc_mmu_map_segment(vcpu, srnum << SID_SHIFT); in kvmppc_mmu_book3s_32_mtsrin()
Dbook3s_emulate.c153 int srnum; in kvmppc_core_emulate_op_pr() local
155 srnum = kvmppc_get_field(inst, 12 + 32, 15 + 32); in kvmppc_core_emulate_op_pr()
158 sr = vcpu->arch.mmu.mfsrin(vcpu, srnum); in kvmppc_core_emulate_op_pr()
165 int srnum; in kvmppc_core_emulate_op_pr() local
167 srnum = (kvmppc_get_gpr(vcpu, rb) >> 28) & 0xf; in kvmppc_core_emulate_op_pr()
170 sr = vcpu->arch.mmu.mfsrin(vcpu, srnum); in kvmppc_core_emulate_op_pr()
Dbook3s_64_mmu.c494 static void kvmppc_mmu_book3s_64_mtsrin(struct kvm_vcpu *vcpu, u32 srnum, in kvmppc_mmu_book3s_64_mtsrin() argument
517 dprintk("KVM MMU: mtsrin(0x%x, 0x%lx)\n", srnum, value); in kvmppc_mmu_book3s_64_mtsrin()
520 rb |= (srnum & 0xf) << 28; in kvmppc_mmu_book3s_64_mtsrin()
524 rb |= srnum; in kvmppc_mmu_book3s_64_mtsrin()
/arch/powerpc/include/asm/
Dkvm_host.h372 void (*mtsrin)(struct kvm_vcpu *vcpu, u32 srnum, ulong value);
373 u32 (*mfsrin)(struct kvm_vcpu *vcpu, u32 srnum);