diff options
author | Alexandre Chartre <alexandre.chartre@oracle.com> | 2020-04-14 12:36:11 +0200 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2020-04-30 20:14:31 +0200 |
commit | 13fab06d9a3ad3afdfd51c7f8f87f2ae28444648 (patch) | |
tree | ec89f682c874c7bdda02ac118adad22ea4a1caee /tools/objtool/check.h | |
parent | 9e98d62aa7ea1375052895650f3e6d362336c5c9 (diff) |
objtool: Uniquely identify alternative instruction groups
Assign a unique identifier to every alternative instruction group in
order to be able to tell which instructions belong to what
alternative.
[peterz: extracted from a larger patch]
Signed-off-by: Alexandre Chartre <alexandre.chartre@oracle.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Diffstat (limited to 'tools/objtool/check.h')
-rw-r--r-- | tools/objtool/check.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/objtool/check.h b/tools/objtool/check.h index 12a9660c960b..24280227ef21 100644 --- a/tools/objtool/check.h +++ b/tools/objtool/check.h @@ -30,12 +30,13 @@ struct instruction { unsigned int len; enum insn_type type; unsigned long immediate; - bool alt_group, dead_end, ignore, ignore_alts; + bool dead_end, ignore, ignore_alts; bool hint; bool retpoline_safe; s8 instr; u8 visited; u8 ret_offset; + int alt_group; struct symbol *call_dest; struct instruction *jump_dest; struct instruction *first_jump_src; |