diff options
author | Julien Thierry <jthierry@redhat.com> | 2020-09-04 16:30:28 +0100 |
---|---|---|
committer | Josh Poimboeuf <jpoimboe@redhat.com> | 2020-09-10 10:43:13 -0500 |
commit | edea9e6bcbeaa41718b022a8b99ffddef2330bbc (patch) | |
tree | 750c5adeb0cf00da380faefea8cc4551bcc202ba /tools/objtool/arch.h | |
parent | ee819aedf34a8f35cd54ee3967c7beb4d1d4a635 (diff) |
objtool: Decode unwind hint register depending on architecture
The set of registers that can be included in an unwind hint and their
encoding will depend on the architecture. Have arch specific code to
decode that register.
Signed-off-by: Julien Thierry <jthierry@redhat.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Diffstat (limited to 'tools/objtool/arch.h')
-rw-r--r-- | tools/objtool/arch.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/objtool/arch.h b/tools/objtool/arch.h index b18c5f61d42d..4a84c3081b8e 100644 --- a/tools/objtool/arch.h +++ b/tools/objtool/arch.h @@ -88,4 +88,6 @@ unsigned long arch_dest_reloc_offset(int addend); const char *arch_nop_insn(int len); +int arch_decode_hint_reg(struct instruction *insn, u8 sp_reg); + #endif /* _ARCH_H */ |