aboutsummaryrefslogtreecommitdiff
path: root/bfd/reloc.c
diff options
context:
space:
mode:
authorNeal Frager <neal.frager@amd.com>2023-10-05 13:51:03 +0100
committerMichael J. Eager <eager@eagercon.com>2023-10-06 10:53:45 -0700
commit6bbf249557ba17cfebe01c67370df4da9e6a56f9 (patch)
treeb1242471838ab0e7131aec8879013c258ef8a992 /bfd/reloc.c
parent9a896be33224654760c46d3698218241d0a1f354 (diff)
downloadgdb-6bbf249557ba17cfebe01c67370df4da9e6a56f9.zip
gdb-6bbf249557ba17cfebe01c67370df4da9e6a56f9.tar.gz
gdb-6bbf249557ba17cfebe01c67370df4da9e6a56f9.tar.bz2
opcodes: microblaze: Add new bit-field instructions
This patches adds new bsefi and bsifi instructions. BSEFI- The instruction shall extract a bit field from a register and place it right-adjusted in the destination register. The other bits in the destination register shall be set to zero. BSIFI- The instruction shall insert a right-adjusted bit field from a register at another position in the destination register. The rest of the bits in the destination register shall be unchanged. Further documentation of these instructions can be found here: https://docs.xilinx.com/v/u/en-US/ug984-vivado-microblaze-ref This patch has been tested for years of AMD Xilinx Yocto releases as part of the following patch set: https://github.com/Xilinx/meta-xilinx/tree/master/meta-microblaze/recipes-devtools/binutils/binutils Signed-off-by: nagaraju <nagaraju.mekala@amd.com> Signed-off-by: Ibai Erkiaga <ibai.erkiaga-elorza@amd.com> Signed-off-by: Neal Frager <neal.frager@amd.com> Signed-off-by: Michael J. Eager <eager@eagercon.com>
Diffstat (limited to 'bfd/reloc.c')
-rw-r--r--bfd/reloc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/bfd/reloc.c b/bfd/reloc.c
index 2ac883d..3ea2afc 100644
--- a/bfd/reloc.c
+++ b/bfd/reloc.c
@@ -6695,6 +6695,12 @@ ENUMDOC
This is a 32 bit reloc for the microblaze to handle
expressions of the form "Symbol Op Symbol"
ENUM
+ BFD_RELOC_MICROBLAZE_32_NONE
+ENUMDOC
+ This is a 32 bit reloc that stores the 32 bit pc relative
+ value in two words (with an imm instruction). No relocation is
+ done here - only used for relaxing
+ENUM
BFD_RELOC_MICROBLAZE_64_NONE
ENUMDOC
This is a 64 bit reloc that stores the 32 bit pc relative