From: Alice Carlotti Date: Thu, 17 Apr 2025 19:37:25 +0000 (+0100) Subject: aarch64: Fix dgh disassembly X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f1c037989a00afc9c38b3db7cfe029066a1be439;p=thirdparty%2Fbinutils-gdb.git aarch64: Fix dgh disassembly --- diff --git a/gas/testsuite/gas/aarch64/dgh.d b/gas/testsuite/gas/aarch64/dgh.d index 9d11bec9712..e9eebbca202 100644 --- a/gas/testsuite/gas/aarch64/dgh.d +++ b/gas/testsuite/gas/aarch64/dgh.d @@ -7,5 +7,5 @@ Disassembly of section \.text: 0+ <\.text>: - *[0-9a-f]*: d50320df hint #0x6 - *[0-9a-f]*: d50320df hint #0x6 + *[0-9a-f]*: d50320df dgh + *[0-9a-f]*: d50320df dgh diff --git a/gas/testsuite/gas/aarch64/system.d b/gas/testsuite/gas/aarch64/system.d index 254b1ae8f1c..263581403b5 100644 --- a/gas/testsuite/gas/aarch64/system.d +++ b/gas/testsuite/gas/aarch64/system.d @@ -23,7 +23,7 @@ Disassembly of section \.text: .*: d503207f wfi .*: d503209f sev .*: d50320bf sevl -.*: d50320df hint #0x6 +.*: d50320df dgh .*: d50320ff (hint #0x7|xpaclri) .*: d503211f (hint #0x8|pacia1716) .*: d503213f hint #0x9 diff --git a/opcodes/aarch64-asm-2.c b/opcodes/aarch64-asm-2.c index 5b922055fc5..5cb12cc5323 100644 --- a/opcodes/aarch64-asm-2.c +++ b/opcodes/aarch64-asm-2.c @@ -445,6 +445,7 @@ aarch64_find_real_opcode (const aarch64_opcode *opcode) case 1245: /* pacib1716 */ case 1244: /* pacia1716 */ case 1243: /* xpaclri */ + case 1242: /* dgh */ case 1241: /* sevl */ case 1240: /* sev */ case 1239: /* wfi */ diff --git a/opcodes/aarch64-dis-2.c b/opcodes/aarch64-dis-2.c index e8768499592..9de93e99c01 100644 --- a/opcodes/aarch64-dis-2.c +++ b/opcodes/aarch64-dis-2.c @@ -34641,8 +34641,7 @@ aarch64_find_next_opcode (const aarch64_opcode *opcode) case 1230: value = 1231; break; /* smstop --> chkfeat. */ case 1231: value = 1232; break; /* chkfeat --> msr. */ case 1232: value = 1233; break; /* msr --> hint. */ - case 1233: value = 1242; break; /* hint --> dgh. */ - case 1242: value = 1252; break; /* dgh --> clrex. */ + case 1233: value = 1252; break; /* hint --> clrex. */ case 1252: value = 1253; break; /* clrex --> dsb. */ case 1253: value = 1254; break; /* dsb --> dsb. */ case 1254: value = 1258; break; /* dsb --> dmb. */ @@ -35152,7 +35151,8 @@ aarch64_find_next_alias_opcode (const aarch64_opcode *opcode) case 1246: value = 1245; break; /* autia1716 --> pacib1716. */ case 1245: value = 1244; break; /* pacib1716 --> pacia1716. */ case 1244: value = 1243; break; /* pacia1716 --> xpaclri. */ - case 1243: value = 1241; break; /* xpaclri --> sevl. */ + case 1243: value = 1242; break; /* xpaclri --> dgh. */ + case 1242: value = 1241; break; /* dgh --> sevl. */ case 1241: value = 1240; break; /* sevl --> sev. */ case 1240: value = 1239; break; /* sev --> wfi. */ case 1239: value = 1238; break; /* wfi --> wfe. */ diff --git a/opcodes/aarch64-tbl.h b/opcodes/aarch64-tbl.h index f7358990289..28230aa08f2 100644 --- a/opcodes/aarch64-tbl.h +++ b/opcodes/aarch64-tbl.h @@ -4598,7 +4598,7 @@ const struct aarch64_opcode aarch64_opcode_table[] = CORE_INSN ("wfi", 0xd503207f, 0xffffffff, ic_system, 0, OP0 (), {}, F_ALIAS), CORE_INSN ("sev", 0xd503209f, 0xffffffff, ic_system, 0, OP0 (), {}, F_ALIAS), CORE_INSN ("sevl",0xd50320bf, 0xffffffff, ic_system, 0, OP0 (), {}, F_ALIAS), - CORE_INSN ("dgh", 0xd50320df, 0xffffffff, ic_system, 0, OP0 (), {}, 0), + CORE_INSN ("dgh", 0xd50320df, 0xffffffff, ic_system, 0, OP0 (), {}, F_ALIAS), CORE_INSN ("xpaclri", 0xd50320ff, 0xffffffff, ic_system, 0, OP0 (), {}, F_ALIAS), CORE_INSN ("pacia1716", 0xd503211f, 0xffffffff, ic_system, 0, OP0 (), {}, F_ALIAS), CORE_INSN ("pacib1716", 0xd503215f, 0xffffffff, ic_system, 0, OP0 (), {}, F_ALIAS),