diff options
author | 2015-03-27 13:09:22 +0000 | |
---|---|---|
committer | 2015-03-30 11:03:43 +0100 | |
commit | fef7f2b2010381c795ae43743ad31931cc58f5ad (patch) | |
tree | b8f144d8646b22385f3e5ff603749cd26eb09703 /scripts/gdb/linux/modules.py | |
parent | arm64: insn: Add aarch64_insn_decode_immediate (diff) | |
download | wireguard-linux-fef7f2b2010381c795ae43743ad31931cc58f5ad.tar.xz wireguard-linux-fef7f2b2010381c795ae43743ad31931cc58f5ad.zip |
arm64: alternative: Allow immediate branch as alternative instruction
Since all immediate branches are PC-relative on Aarch64, these
instructions cannot be used as an alternative with the simplistic
approach we currently have (the immediate has been computed from
the .altinstr_replacement section, and end-up being completely off
if we insert it directly).
This patch handles the b and bl instructions in a different way,
using the insn framework to recompute the immediate, and generate
the right displacement.
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions