Commit c5df4e1a authored by Peter Zijlstra's avatar Peter Zijlstra
Browse files

objtool/x86: Remove 0xea hack



Was properly fixed in the decoder with commit 4b626015 ("x86/insn:
Stop decoding i64 instructions in x86-64 mode at opcode")

Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: default avatarAlexandre Chartre <alexandre.chartre@oracle.com>
parent 3a866087
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -189,15 +189,6 @@ int arch_decode_instruction(struct objtool_file *file, const struct section *sec
	op2 = ins.opcode.bytes[1];
	op3 = ins.opcode.bytes[2];

	/*
	 * XXX hack, decoder is buggered and thinks 0xea is 7 bytes long.
	 */
	if (op1 == 0xea) {
		insn->len = 1;
		insn->type = INSN_BUG;
		return 0;
	}

	if (ins.rex_prefix.nbytes) {
		rex = ins.rex_prefix.bytes[0];
		rex_w = X86_REX_W(rex) >> 3;