objtool,x86: Simplify register decode
authorPeter Zijlstra <peterz@infradead.org>
Tue, 9 Feb 2021 18:59:43 +0000 (19:59 +0100)
committerIngo Molnar <mingo@kernel.org>
Sat, 6 Mar 2021 11:44:23 +0000 (12:44 +0100)
commit16ef7f159c503c7befec7018ee0e82fdc311721e
tree49eeb69ef79daa2ea78c329e7f7422cada3ae1ac
parentffc7e74f36a2c7424da262a32a0bbe59669677ef
objtool,x86: Simplify register decode

Since the CFI_reg number now matches the instruction encoding order do
away with the op_to_cfi_reg[] and use direct assignment.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Tested-by: Nick Desaulniers <ndesaulniers@google.com>
Link: https://lkml.kernel.org/r/20210211173627.362004522@infradead.org
tools/objtool/arch/x86/decode.c