Lines Matching refs:rt
77 static void __init kvm_patch_ins_ll(u32 *inst, long addr, u32 rt) in kvm_patch_ins_ll() argument
80 kvm_patch_ins(inst, KVM_INST_LD | rt | (addr & 0x0000fffc)); in kvm_patch_ins_ll()
82 kvm_patch_ins(inst, KVM_INST_LWZ | rt | (addr & 0x0000fffc)); in kvm_patch_ins_ll()
86 static void __init kvm_patch_ins_ld(u32 *inst, long addr, u32 rt) in kvm_patch_ins_ld() argument
89 kvm_patch_ins(inst, KVM_INST_LD | rt | (addr & 0x0000fffc)); in kvm_patch_ins_ld()
91 kvm_patch_ins(inst, KVM_INST_LWZ | rt | ((addr + 4) & 0x0000fffc)); in kvm_patch_ins_ld()
95 static void __init kvm_patch_ins_lwz(u32 *inst, long addr, u32 rt) in kvm_patch_ins_lwz() argument
97 kvm_patch_ins(inst, KVM_INST_LWZ | rt | (addr & 0x0000ffff)); in kvm_patch_ins_lwz()
100 static void __init kvm_patch_ins_std(u32 *inst, long addr, u32 rt) in kvm_patch_ins_std() argument
103 kvm_patch_ins(inst, KVM_INST_STD | rt | (addr & 0x0000fffc)); in kvm_patch_ins_std()
105 kvm_patch_ins(inst, KVM_INST_STW | rt | ((addr + 4) & 0x0000fffc)); in kvm_patch_ins_std()
109 static void __init kvm_patch_ins_stw(u32 *inst, long addr, u32 rt) in kvm_patch_ins_stw() argument
111 kvm_patch_ins(inst, KVM_INST_STW | rt | (addr & 0x0000fffc)); in kvm_patch_ins_stw()
155 static void __init kvm_patch_ins_mtmsrd(u32 *inst, u32 rt) in kvm_patch_ins_mtmsrd() argument
180 switch (get_rt(rt)) { in kvm_patch_ins_mtmsrd()
190 p[kvm_emulate_mtmsrd_reg_offs] |= rt; in kvm_patch_ins_mtmsrd()
208 static void __init kvm_patch_ins_mtmsr(u32 *inst, u32 rt) in kvm_patch_ins_mtmsr() argument
235 switch (get_rt(rt)) { in kvm_patch_ins_mtmsr()
249 p[kvm_emulate_mtmsr_reg1_offs] |= rt; in kvm_patch_ins_mtmsr()
250 p[kvm_emulate_mtmsr_reg2_offs] |= rt; in kvm_patch_ins_mtmsr()
269 static void __init kvm_patch_ins_wrtee(u32 *inst, u32 rt, int imm_one) in kvm_patch_ins_wrtee() argument
300 switch (get_rt(rt)) { in kvm_patch_ins_wrtee()
310 p[kvm_emulate_wrtee_reg_offs] |= rt; in kvm_patch_ins_wrtee()
367 static void __init kvm_patch_ins_mtsrin(u32 *inst, u32 rt, u32 rb) in kvm_patch_ins_mtsrin() argument
393 p[kvm_emulate_mtsrin_reg2_offs] |= rt; in kvm_patch_ins_mtsrin()