Function is not used
Signed-off-by: Taylor Simpson <[email protected]>
---
target/hexagon/printinsn.h | 1 -
target/hexagon/printinsn.c | 31 -------------------------------
2 files changed, 32 deletions(-)
diff --git a/target/hexagon/printinsn.h b/target/hexagon/printinsn.h
index 6f84ef93c3..de962b5f2e 100644
--- a/target/hexagon/printinsn.h
+++ b/target/hexagon/printinsn.h
@@ -23,6 +23,5 @@
void snprint_a_pkt_disas(GString *buf, Packet *pkt, uint32_t *words,
target_ulong pc, const HexagonCPUDef *hex_def);
-void snprint_a_pkt_debug(GString *buf, Packet *pkt);
#endif
diff --git a/target/hexagon/printinsn.c b/target/hexagon/printinsn.c
index 22b305f018..a7e46f4bcd 100644
--- a/target/hexagon/printinsn.c
+++ b/target/hexagon/printinsn.c
@@ -118,34 +118,3 @@ void snprint_a_pkt_disas(GString *buf, Packet *pkt,
uint32_t *words,
g_string_append(buf, " :endloop01");
}
}
-
-void snprint_a_pkt_debug(GString *buf, Packet *pkt)
-{
- int slot, opcode;
-
- if (pkt->num_insns > 1) {
- g_string_append(buf, "\n{\n");
- }
-
- for (int i = 0; i < pkt->num_insns; i++) {
- if (pkt->insn[i].part1) {
- continue;
- }
- g_string_append(buf, "\t");
- snprintinsn(buf, &(pkt->insn[i]));
-
- if (GET_ATTRIB(pkt->insn[i].opcode, A_SUBINSN)) {
- g_string_append(buf, " //subinsn");
- }
- if (pkt->insn[i].extension_valid) {
- g_string_append(buf, " //constant extended");
- }
- slot = pkt->insn[i].slot;
- opcode = pkt->insn[i].opcode;
- g_string_append_printf(buf, " //slot=%d:tag=%s\n",
- slot, opcode_names[opcode]);
- }
- if (pkt->num_insns > 1) {
- g_string_append(buf, "}\n");
- }
-}
--
2.43.0