Skip to content

Commit

Permalink
Reduce log level for invalid duplex classes.
Browse files Browse the repository at this point in the history
Those get often hit by disassembling invalid instructions.
  • Loading branch information
Rot127 committed Nov 29, 2023
1 parent 8a3a96c commit ea90518
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions handwritten/hexagon_disas_c/functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
static const HexInsnTemplate *get_sub_template_table(const ut8 duplex_iclass, bool high) {
switch(duplex_iclass) {
default:
RZ_LOG_WARN("IClasses > 0xe are reserved.\n");
RZ_LOG_INFO("IClasses > 0xe are reserved.\n");
return NULL;
case 0:
return high ? templates_sub_L1 : templates_sub_L1;
Expand Down Expand Up @@ -331,7 +331,7 @@ int hexagon_disasm_instruction(HexState *state, const ut32 hi_u32, RZ_INOUT HexI

ut32 iclass = (((hi_u32 >> 29) & 0xF) << 1) | ((hi_u32 >> 13) & 1);
if (iclass == 0xf) {
RZ_LOG_WARN("Reserved duplex instruction class used at: 0x%" PFMT32x ".\n", addr);
RZ_LOG_INFO("Reserved duplex instruction class used at: 0x%" PFMT32x ".\n", addr);
}

const HexInsnTemplate *tmp_high = get_sub_template_table(iclass, true);
Expand Down

0 comments on commit ea90518

Please sign in to comment.