]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
MIPS/opcodes: Add MIPS Allegrex DBREAK instruction
authorDavid Guillen Fandos <david@davidgf.net>
Tue, 11 Jun 2024 08:36:11 +0000 (09:36 +0100)
committerMaciej W. Rozycki <macro@redhat.com>
Tue, 11 Jun 2024 08:36:11 +0000 (09:36 +0100)
This complements the debug instruction set and uses the same encoding as
the VR5400/VR5500 devices.

gas/testsuite/gas/mips/allegrex.d
gas/testsuite/gas/mips/allegrex.s
opcodes/mips-opc.c

index d0f79671de49828457a010b976299ffd9d2af845..b535c6dbdcec49bf4a37905c58ec3e998064e06a 100644 (file)
@@ -46,5 +46,6 @@ Disassembly of section .text:
 0x00000094 7002003d    mfdr    \$2,\$0
 0x00000098 7002083d    mfdr    \$2,\$1
 0x0000009c 7083083d    mtdr    \$3,\$1
-0x000000a0 7000003e    dret
+0x000000a0 7000003f    dbreak
+0x000000a4 7000003e    dret
        \.\.\.
index c36745882df7350badf2464cf096e35e10acd853..df05f97ee47becac201c203859101e1e12f691a2 100644 (file)
@@ -40,6 +40,7 @@
        mfdr    $v0, $0
        mfdr    $v0, $1
        mtdr    $v1, $1
+       dbreak
        dret
 
 # Force some (non-delay-slot) zero bytes, to make 'objdump' print ...
index a31a17d4b9a3008578b0990187f333ca645dbf9e..c6cbb66178cbe4770f94c0e862bdc52ff4dcf036 100644 (file)
@@ -1030,7 +1030,7 @@ const struct mips_opcode mips_builtin_opcodes[] =
 {"daddu",              "d,v,t",        0x0000002d, 0xfc0007ff, WR_1|RD_2|RD_3,         0,              I3,             0,      0 },
 {"daddu",              "t,r,I",        0,    (int) M_DADDU_I,  INSN_MACRO,             0,              I3,             0,      0 },
 {"daddwc",             "d,s,t",        0x70000038, 0xfc0007ff, WR_1|RD_2|RD_3|WR_C0|RD_C0, 0,          XLR,            0,      0 },
-{"dbreak",             "",             0x7000003f, 0xffffffff, 0,                      0,              N5,             0,      0 },
+{"dbreak",             "",             0x7000003f, 0xffffffff, 0,                      0,              N5|AL,          0,      0 },
 {"dclo",               "d,s",          0x00000053, 0xfc1f07ff, WR_1|RD_2,              0,              I69,            0,      0 },
 {"dclo",               "U,s",          0x70000025, 0xfc0007ff, WR_1|RD_2,      0,              I64|N55,        0,      I69 },
 {"dclz",               "d,s",          0x00000052, 0xfc1f07ff, WR_1|RD_2,              0,              I69,            0,      0 },