Lines Matching refs:op_code

42 	int op_code;  in get_step_address()  local
44 if (get_kernel_nofault(op_code, (void *)pc)) in get_step_address()
46 if ((op_code & __INSN_LENGTH_MASK) != __INSN_LENGTH_GE_32) { in get_step_address()
47 if (riscv_insn_is_c_jalr(op_code) || in get_step_address()
48 riscv_insn_is_c_jr(op_code)) { in get_step_address()
49 rs1_num = decode_register_index(op_code, RVC_C2_RS1_OPOFF); in get_step_address()
51 } else if (riscv_insn_is_c_j(op_code) || in get_step_address()
52 riscv_insn_is_c_jal(op_code)) { in get_step_address()
53 *next_addr = RVC_EXTRACT_JTYPE_IMM(op_code) + pc; in get_step_address()
54 } else if (riscv_insn_is_c_beqz(op_code)) { in get_step_address()
55 rs1_num = decode_register_index_short(op_code, in get_step_address()
58 *next_addr = RVC_EXTRACT_BTYPE_IMM(op_code) + pc; in get_step_address()
61 } else if (riscv_insn_is_c_bnez(op_code)) { in get_step_address()
63 decode_register_index_short(op_code, RVC_C1_RS1_OPOFF); in get_step_address()
65 *next_addr = RVC_EXTRACT_BTYPE_IMM(op_code) + pc; in get_step_address()
72 if ((op_code & __INSN_OPCODE_MASK) == __INSN_BRANCH_OPCODE) { in get_step_address()
74 long imm = RV_EXTRACT_BTYPE_IMM(op_code); in get_step_address()
77 rs1_num = decode_register_index(op_code, RVG_RS1_OPOFF); in get_step_address()
78 rs2_num = decode_register_index(op_code, RVG_RS2_OPOFF); in get_step_address()
84 if (riscv_insn_is_beq(op_code)) in get_step_address()
86 else if (riscv_insn_is_bne(op_code)) in get_step_address()
88 else if (riscv_insn_is_blt(op_code)) in get_step_address()
92 else if (riscv_insn_is_bge(op_code)) in get_step_address()
96 else if (riscv_insn_is_bltu(op_code)) in get_step_address()
98 else if (riscv_insn_is_bgeu(op_code)) in get_step_address()
104 } else if (riscv_insn_is_jal(op_code)) { in get_step_address()
105 *next_addr = RV_EXTRACT_JTYPE_IMM(op_code) + pc; in get_step_address()
106 } else if (riscv_insn_is_jalr(op_code)) { in get_step_address()
107 rs1_num = decode_register_index(op_code, RVG_RS1_OPOFF); in get_step_address()
110 *next_addr += RV_EXTRACT_ITYPE_IMM(op_code); in get_step_address()
111 } else if (riscv_insn_is_sret(op_code)) { in get_step_address()