diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2015-03-27 16:09:22 +0300 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2015-03-30 13:03:43 +0300 |
commit | fef7f2b2010381c795ae43743ad31931cc58f5ad (patch) | |
tree | b8f144d8646b22385f3e5ff603749cd26eb09703 /arch/arm64/include/asm/cpufeature.h | |
parent | 0978fb25f86b7595821cee6955679250d47c6438 (diff) | |
download | linux-fef7f2b2010381c795ae43743ad31931cc58f5ad.tar.xz |
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 'arch/arm64/include/asm/cpufeature.h')
0 files changed, 0 insertions, 0 deletions