summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAnju T <anju@linux.vnet.ibm.com>2017-02-08 11:57:30 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2017-02-10 05:28:03 +0300
commitebfa50df435eed18e1389a43e0596246228e7298 (patch)
treea901e3284d4bd0e26e541f39f873c6292f7862ba /tools/perf/scripts/python
parentc233f5979b3dbb39a5b2473b5fcaf58baec8f1bd (diff)
downloadlinux-ebfa50df435eed18e1389a43e0596246228e7298.tar.xz
powerpc: Add helper to check if offset is within relative branch range
To permit the use of relative branch instruction in powerpc, the target address has to be relatively nearby, since the address is specified in an immediate field (24 bit filed) in the instruction opcode itself. Here nearby refers to 32MB on either side of the current instruction. This patch verifies whether the target address is within +/- 32MB range or not. Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com> Signed-off-by: Anju T Sudhakar <anju@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions