Marc Zyngier 7616fc8bcd arm64: alternative: Allow immediate branch as alternative instruction
Since all 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 the target is outside of the replacement sequence).

This patch handles the branch instructions in a different way,
using the insn framework to recompute the immediate, and generate
the right displacement in the above case.

Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2015-06-05 10:38:53 +01:00
..
2012-09-17 13:42:21 +01:00
2014-05-29 09:08:08 +01:00
2015-04-16 13:58:29 -05:00
2014-12-09 13:12:47 -08:00
2015-06-02 17:44:51 +01:00
2014-07-10 12:36:40 +01:00
2014-09-25 15:35:41 +01:00
2015-04-24 08:23:45 -07:00
2014-11-28 10:24:59 +00:00
2015-04-13 20:40:10 +02:00
2015-01-27 09:38:08 +00:00