Lines Matching refs:op_code

63 	int op_code;  in get_step_address()  local
65 if (get_kernel_nofault(op_code, (void *)pc)) in get_step_address()
67 if ((op_code & __INSN_LENGTH_MASK) != __INSN_LENGTH_GE_32) { in get_step_address()
68 if (is_c_jalr_insn(op_code) || is_c_jr_insn(op_code)) { in get_step_address()
69 rs1_num = decode_register_index(op_code, RVC_C2_RS1_OPOFF); in get_step_address()
71 } else if (is_c_j_insn(op_code) || is_c_jal_insn(op_code)) { in get_step_address()
72 *next_addr = EXTRACT_RVC_J_IMM(op_code) + pc; in get_step_address()
73 } else if (is_c_beqz_insn(op_code)) { in get_step_address()
74 rs1_num = decode_register_index_short(op_code, in get_step_address()
77 *next_addr = EXTRACT_RVC_B_IMM(op_code) + pc; in get_step_address()
80 } else if (is_c_bnez_insn(op_code)) { in get_step_address()
82 decode_register_index_short(op_code, RVC_C1_RS1_OPOFF); in get_step_address()
84 *next_addr = EXTRACT_RVC_B_IMM(op_code) + pc; in get_step_address()
91 if ((op_code & __INSN_OPCODE_MASK) == __INSN_BRANCH_OPCODE) { in get_step_address()
93 long imm = EXTRACT_BTYPE_IMM(op_code); in get_step_address()
96 rs1_num = decode_register_index(op_code, RVG_RS1_OPOFF); in get_step_address()
97 rs2_num = decode_register_index(op_code, RVG_RS2_OPOFF); in get_step_address()
103 if (is_beq_insn(op_code)) in get_step_address()
105 else if (is_bne_insn(op_code)) in get_step_address()
107 else if (is_blt_insn(op_code)) in get_step_address()
111 else if (is_bge_insn(op_code)) in get_step_address()
115 else if (is_bltu_insn(op_code)) in get_step_address()
117 else if (is_bgeu_insn(op_code)) in get_step_address()
123 } else if (is_jal_insn(op_code)) { in get_step_address()
124 *next_addr = EXTRACT_JTYPE_IMM(op_code) + pc; in get_step_address()
125 } else if (is_jalr_insn(op_code)) { in get_step_address()
126 rs1_num = decode_register_index(op_code, RVG_RS1_OPOFF); in get_step_address()
129 *next_addr += EXTRACT_ITYPE_IMM(op_code); in get_step_address()
130 } else if (is_sret_insn(op_code)) { in get_step_address()