[Patch, microblaze, gas, opcodes] Add support for mbar and sleep insns

David Holsgrove david.holsgrove@xilinx.com
Thu Nov 8 12:46:00 GMT 2012


This patch is based on a patch from Kishore <kkatna@xilinx.com>
to add mbar opcode.

mbar ensures outstanding memory access on memory interfaces are completed
before any subsequent instructions are executed.

Added mnemonic 'sleep' instruction for 'mbar 16'

Include mbar and sleep in allinsn.{s,d} for microblaze testsuite.



binutils/opcodes/Changelog

 2012-11-08  David Holsgrove  <david.holsgrove@xilinx.com>

          * microblaze-opc.h: Define new instruction type INST_TYPE_IMM5,
            update OPCODE_MASK_H13S,
            add OPCODE_MASK_HN, define MIN_IMM5 / MAX_IMM5,
            and increase MAX_OPCODES.
            (op_code_struct):  add mbar and sleep
          * microblaze-opcm.h (microblaze_instr): add mbar
            Define IMM_MBAR and IMM5_MBAR_MASK
          * microblaze-dis.c: Add get_field_imm5_mbar
            (print_insn_microblaze): Add support for INST_TYPE_IMM5 and
            INST_TYPE_NONE

binutils/gas/Changelog

 2012-11-08  David Holsgrove  <david.holsgrove@xilinx.com>

          * config/tc-microblaze.c (md_assemble): Add support for
            INST_TYPE_IMM5

binutils/gas/testsuite/Changelog

 2012-11-08  David Holsgrove  <david.holsgrove@xilinx.com>

          * gas/microblaze/allinsn.s: Add mbar and sleep
          * gas/microblaze/allinsn.d: Likewise

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-opcodes-config-tc-microblaze.c-Add-support-for-mbar-.patch
Type: text/x-patch
Size: 7618 bytes
Desc: 0004-opcodes-config-tc-microblaze.c-Add-support-for-mbar-.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20121108/214de9b9/attachment.bin>


More information about the Binutils mailing list