diff options
author | Eugeniy Paltsev <[email protected]> | 2019-11-08 19:20:22 +0300 |
---|---|---|
committer | Vineet Gupta <[email protected]> | 2019-11-08 16:14:32 -0800 |
commit | f091d5a426447cc427680bdd3adc7773aa2867df (patch) | |
tree | e255dd3806463334c58d03aff06dee6e3b3268c3 /lib/memory-notifier-error-inject.c | |
parent | 2f4ecf68a048de44d72157d637bf9cbbbdb357b0 (diff) |
ARC: ARCv2: jump label: implement jump label patching
Implement jump label patching for ARC. Jump labels provide
an interface to generate dynamic branches using
self-modifying code.
This allows us to implement conditional branches where
changing branch direction is expensive but branch selection
is basically 'free'
This implementation uses 32-bit NOP and BRANCH instructions
which forced to be aligned by 4 to guarantee that they don't
cross L1 cache line boundary and can be update atomically.
Signed-off-by: Eugeniy Paltsev <[email protected]>
Signed-off-by: Vineet Gupta <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions