Home
last modified time | relevance | path

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

/linux-6.1.9/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.c314 int srnum; in kvmppc_core_emulate_op_pr() local
316 srnum = kvmppc_get_field(inst, 12 + 32, 15 + 32); in kvmppc_core_emulate_op_pr()
319 sr = vcpu->arch.mmu.mfsrin(vcpu, srnum); in kvmppc_core_emulate_op_pr()
326 int srnum; in kvmppc_core_emulate_op_pr() local
328 srnum = (kvmppc_get_gpr(vcpu, rb) >> 28) & 0xf; in kvmppc_core_emulate_op_pr()
331 sr = vcpu->arch.mmu.mfsrin(vcpu, srnum); in kvmppc_core_emulate_op_pr()
Dbook3s_64_mmu.c489 static void kvmppc_mmu_book3s_64_mtsrin(struct kvm_vcpu *vcpu, u32 srnum, in kvmppc_mmu_book3s_64_mtsrin() argument
512 dprintk("KVM MMU: mtsrin(0x%x, 0x%lx)\n", srnum, value); in kvmppc_mmu_book3s_64_mtsrin()
515 rb |= (srnum & 0xf) << 28; in kvmppc_mmu_book3s_64_mtsrin()
519 rb |= srnum; in kvmppc_mmu_book3s_64_mtsrin()
/linux-6.1.9/arch/powerpc/include/asm/
Dkvm_host.h399 void (*mtsrin)(struct kvm_vcpu *vcpu, u32 srnum, ulong value);
400 u32 (*mfsrin)(struct kvm_vcpu *vcpu, u32 srnum);