Skip to content

Commit 23deaa4

Browse files
committed
FIXME: why remove this unreachable?
Signed-off-by: Brian Cain <[email protected]>
1 parent 6616da7 commit 23deaa4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

target/hexagon/decode.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,6 @@ decode_insns(DisasContext *ctx, Insn *insn, uint32_t encoding)
489489
insn->iclass = iclass_bits(encoding);
490490
return 1;
491491
}
492-
g_assert_not_reached();
493492
} else {
494493
uint32_t iclass = get_duplex_iclass(encoding);
495494
unsigned int slot0_subinsn = get_slot0_subinsn(encoding);
@@ -512,6 +511,11 @@ decode_insns(DisasContext *ctx, Insn *insn, uint32_t encoding)
512511
}
513512
g_assert_not_reached();
514513
}
514+
/*
515+
* invalid/unrecognized opcode; return 1 and let gen_insn() raise an
516+
* exception when it sees this empty insn.
517+
*/
518+
return 1;
515519
}
516520

517521
static void decode_add_endloop_insn(Insn *insn, int loopnum)

0 commit comments

Comments
 (0)