diff options
author | Marc Zyngier <[email protected]> | 2015-03-27 13:09:22 +0000 |
---|---|---|
committer | Will Deacon <[email protected]> | 2015-03-30 11:03:43 +0100 |
commit | fef7f2b2010381c795ae43743ad31931cc58f5ad (patch) | |
tree | b8f144d8646b22385f3e5ff603749cd26eb09703 /lib/memory-notifier-error-inject.c | |
parent | 0978fb25f86b7595821cee6955679250d47c6438 (diff) |
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 <[email protected]>
Acked-by: Will Deacon <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions