Lines Matching full:packet
91 void decode_send_insn_to(Packet *packet, int start, int newloc) in decode_send_insn_to() argument
107 tmpinsn = packet->insn[i]; in decode_send_insn_to()
108 packet->insn[i] = packet->insn[i + direction]; in decode_send_insn_to()
109 packet->insn[i + direction] = tmpinsn; in decode_send_insn_to()
115 decode_fill_newvalue_regno(Packet *packet) in decode_fill_newvalue_regno() argument
119 for (i = 1; i < packet->num_insns; i++) { in decode_fill_newvalue_regno()
120 if (GET_ATTRIB(packet->insn[i].opcode, A_DOTNEWVALUE) && in decode_fill_newvalue_regno()
121 !GET_ATTRIB(packet->insn[i].opcode, A_EXTENSION)) { in decode_fill_newvalue_regno()
123 g_assert(packet->insn[i].new_read_idx != -1); in decode_fill_newvalue_regno()
124 use_regidx = packet->insn[i].new_read_idx; in decode_fill_newvalue_regno()
131 offset = packet->insn[i].regno[use_regidx] >> 1; in decode_fill_newvalue_regno()
134 if (GET_ATTRIB(packet->insn[i - j - 1].opcode, A_IT_EXTENDER)) { in decode_fill_newvalue_regno()
143 g_assert(!((def_idx < 0) || (def_idx > (packet->num_insns - 1)))); in decode_fill_newvalue_regno()
146 g_assert(packet->insn[def_idx].dest_idx != -1); in decode_fill_newvalue_regno()
147 dst_idx = packet->insn[def_idx].dest_idx; in decode_fill_newvalue_regno()
148 packet->insn[i].regno[use_regidx] = in decode_fill_newvalue_regno()
149 packet->insn[def_idx].regno[dst_idx]; in decode_fill_newvalue_regno()
154 packet->insn[i].new_value_producer_slot = in decode_fill_newvalue_regno()
155 packet->insn[def_idx].slot; in decode_fill_newvalue_regno()
161 static void decode_split_cmpjump(Packet *pkt) in decode_split_cmpjump()
214 static void decode_set_insn_attr_fields(Packet *pkt) in decode_set_insn_attr_fields()
271 static void decode_shuffle_for_execution(Packet *packet) in decode_shuffle_for_execution() argument
277 int last_insn = packet->num_insns - 1; in decode_shuffle_for_execution()
283 if (decode_opcode_ends_loop(packet->insn[last_insn].opcode)) { in decode_shuffle_for_execution()
297 int opcode = packet->insn[i].opcode; in decode_shuffle_for_execution()
300 decode_send_insn_to(packet, i, last_insn - n_mems); in decode_shuffle_for_execution()
326 int opcode = packet->insn[i].opcode; in decode_shuffle_for_execution()
328 if (packet->insn[i].has_pred_dest && in decode_shuffle_for_execution()
332 decode_send_insn_to(packet, i, 0); in decode_shuffle_for_execution()
337 !decode_opcode_ends_loop(packet->insn[i].opcode)) { in decode_shuffle_for_execution()
344 decode_send_insn_to(packet, i, 0); in decode_shuffle_for_execution()
351 decode_send_insn_to(packet, i, 0); in decode_shuffle_for_execution()
369 if (GET_ATTRIB(packet->insn[i].opcode, A_DOTNEWVALUE)) { in decode_shuffle_for_execution()
370 decode_send_insn_to(packet, i, last_insn); in decode_shuffle_for_execution()
377 apply_extender(Packet *pkt, int i, uint32_t extender) in apply_extender()
388 static void decode_apply_extenders(Packet *packet) in decode_apply_extenders() argument
391 for (i = 0; i < packet->num_insns; i++) { in decode_apply_extenders()
392 if (GET_ATTRIB(packet->insn[i].opcode, A_IT_EXTENDER)) { in decode_apply_extenders()
393 packet->insn[i + 1].extension_valid = true; in decode_apply_extenders()
394 apply_extender(packet, i + 1, packet->insn[i].immed[0]); in decode_apply_extenders()
399 static void decode_remove_extenders(Packet *packet) in decode_remove_extenders() argument
402 for (i = 0; i < packet->num_insns; i++) { in decode_remove_extenders()
403 if (GET_ATTRIB(packet->insn[i].opcode, A_IT_EXTENDER)) { in decode_remove_extenders()
406 (j < packet->num_insns - 1) && (j < INSTRUCTIONS_MAX - 1); in decode_remove_extenders()
408 packet->insn[j] = packet->insn[j + 1]; in decode_remove_extenders()
410 packet->num_insns--; in decode_remove_extenders()
415 static SlotMask get_valid_slots(const Packet *pkt, unsigned int slot) in get_valid_slots()
502 /* The slot1 subinsn needs to be in the packet first */ in decode_insns()
539 static bool has_valid_slot_assignment(Packet *pkt) in has_valid_slot_assignment()
559 decode_set_slot_number(Packet *pkt) in decode_set_slot_number()
653 * Decodes packet with given words
659 Packet *pkt, bool disas_only) in decode_packet()
670 /* Try to build packet */ in decode_packet()
727 /* Invalid packet */ in decode_packet()
751 Packet pkt; in disassemble_hexagon()