@samitouri / QOSamiQemu / commits / 96743ce567

Hexagon (target/hexagon) Remove snprint_a_pkt_debug

Function is not used Signed-off-by: Taylor Simpson <ltaylorsimpson@gmail.com> Reviewed-by: Anton Johansson <anjo@rev.ng> Signed-off-by: Brian Cain <brian.cain@oss.qualcomm.com>

Taylor Simpson committed Feb 17, 2026 at 14:22 UTC 96743ce56755fac85b6f732d047e2821c928f032
2 files changed -32
target/hexagon/printinsn.c
-31
@@ -118,34 +118,3 @@ void snprint_a_pkt_disas(GString *buf, Packet *pkt, uint32_t *words,
118 g_string_append(buf, " :endloop01");
119 }
120 }
121 -
122 -void snprint_a_pkt_debug(GString *buf, Packet *pkt)
123 -{
124 - int slot, opcode;
125 -
126 - if (pkt->num_insns > 1) {
127 - g_string_append(buf, "\n{\n");
128 - }
129 -
130 - for (int i = 0; i < pkt->num_insns; i++) {
131 - if (pkt->insn[i].part1) {
132 - continue;
133 - }
134 - g_string_append(buf, "\t");
135 - snprintinsn(buf, &(pkt->insn[i]));
136 -
137 - if (GET_ATTRIB(pkt->insn[i].opcode, A_SUBINSN)) {
138 - g_string_append(buf, " //subinsn");
139 - }
140 - if (pkt->insn[i].extension_valid) {
141 - g_string_append(buf, " //constant extended");
142 - }
143 - slot = pkt->insn[i].slot;
144 - opcode = pkt->insn[i].opcode;
145 - g_string_append_printf(buf, " //slot=%d:tag=%s\n",
146 - slot, opcode_names[opcode]);
147 - }
148 - if (pkt->num_insns > 1) {
149 - g_string_append(buf, "}\n");
150 - }
151 -}
target/hexagon/printinsn.h
-1
@@ -23,6 +23,5 @@
23
24 void snprint_a_pkt_disas(GString *buf, Packet *pkt, uint32_t *words,
25 target_ulong pc, const HexagonCPUDef *hex_def);
26 -void snprint_a_pkt_debug(GString *buf, Packet *pkt);
26
27 #endif