Home
last modified time | relevance | path

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

/arch/powerpc/kvm/
Dbook3s_32_mmu.c326 static u32 kvmppc_mmu_book3s_32_mfsrin(struct kvm_vcpu *vcpu, u32 srnum) in kvmppc_mmu_book3s_32_mfsrin() argument
328 return kvmppc_get_sr(vcpu, srnum); in kvmppc_mmu_book3s_32_mfsrin()
331 static void kvmppc_mmu_book3s_32_mtsrin(struct kvm_vcpu *vcpu, u32 srnum, in kvmppc_mmu_book3s_32_mtsrin() argument
334 kvmppc_set_sr(vcpu, srnum, value); in kvmppc_mmu_book3s_32_mtsrin()
335 kvmppc_mmu_map_segment(vcpu, srnum << SID_SHIFT); in kvmppc_mmu_book3s_32_mtsrin()
Dbook3s_emulate.c318 int srnum; in kvmppc_core_emulate_op_pr() local
320 srnum = kvmppc_get_field(inst, 12 + 32, 15 + 32); in kvmppc_core_emulate_op_pr()
323 sr = vcpu->arch.mmu.mfsrin(vcpu, srnum); in kvmppc_core_emulate_op_pr()
330 int srnum; in kvmppc_core_emulate_op_pr() local
332 srnum = (kvmppc_get_gpr(vcpu, rb) >> 28) & 0xf; in kvmppc_core_emulate_op_pr()
335 sr = vcpu->arch.mmu.mfsrin(vcpu, srnum); in kvmppc_core_emulate_op_pr()
Dbook3s_64_mmu.c490 static void kvmppc_mmu_book3s_64_mtsrin(struct kvm_vcpu *vcpu, u32 srnum, in kvmppc_mmu_book3s_64_mtsrin() argument
513 dprintk("KVM MMU: mtsrin(0x%x, 0x%lx)\n", srnum, value); in kvmppc_mmu_book3s_64_mtsrin()
516 rb |= (srnum & 0xf) << 28; in kvmppc_mmu_book3s_64_mtsrin()
520 rb |= srnum; in kvmppc_mmu_book3s_64_mtsrin()
/arch/powerpc/include/asm/
Dkvm_host.h408 void (*mtsrin)(struct kvm_vcpu *vcpu, u32 srnum, ulong value);
409 u32 (*mfsrin)(struct kvm_vcpu *vcpu, u32 srnum);