v5: add disassembler support for PKTDATACOPY_OPCODE
Test: TH
Change-Id: I6910e0a9633a9e7773e94a77c036405861f42f91
diff --git a/disassembler.c b/disassembler.c
index b3668a1..3b9f105 100644
--- a/disassembler.c
+++ b/disassembler.c
@@ -327,12 +327,10 @@
} else {
print_opcode("dcopy");
}
- if (len_field > 0) {
- uint32_t src_offs = imm;
- uint32_t copy_len = 0;
- DECODE_IMM(copy_len, 1);
- bprintf("%d, %d", src_offs, copy_len);
- }
+ uint32_t src_offs = imm;
+ uint32_t copy_len = 0;
+ DECODE_IMM(copy_len, 1);
+ bprintf("%d, %d", src_offs, copy_len);
break;
}
// Unknown opcode