aboutsummaryrefslogtreecommitdiff
path: root/opcodes/aarch64-dis-2.c
diff options
context:
space:
mode:
authorMatthew Wahab <matthew.wahab@arm.com>2015-12-10 14:05:01 +0000
committerMatthew Wahab <matthew.wahab@arm.com>2015-12-10 14:10:15 +0000
commitc8a6db6fa0b06b978e5b63593a6b0cb3300ad259 (patch)
treef20dce99ea7b13923aa1e8b7f143aaef27d70126 /opcodes/aarch64-dis-2.c
parentaf117b3cf1877da805d081b93f606f3dd8153502 (diff)
downloadgdb-c8a6db6fa0b06b978e5b63593a6b0cb3300ad259.zip
gdb-c8a6db6fa0b06b978e5b63593a6b0cb3300ad259.tar.gz
gdb-c8a6db6fa0b06b978e5b63593a6b0cb3300ad259.tar.bz2
[AArch64][PATCH 1/2] Add support for RAS instruction ESB.
The ARMv8.2 RAS extension adds a new barrier instruction ESB as an alias and the preferred form of HINT 16. This patch adds an architectural feature flag for the RAS extension and includes it in the features selected enabled by -march=armv8.2-a. It also adds the ESB instruction, making it available whenever the RAS feature is enabled. Because ESB is the preferred form and because the target architecture isn't available to the disassembler, HINT 16 will be disassembled as ESB even when the target has no support for the RAS extension. gas/testsuite/ 2015-12-10 Matthew Wahab <matthew.wahab@arm.com> * gas/aarch64/system-2.d: New. * gas/aarch64/system-2.s: New. * gas/aarch64/system.d: Adjust expected output for HINT 16. include/opcode/ 2015-12-10 Matthew Wahab <matthew.wahab@arm.com> * aarch64.h (AARCH64_FEATURE_RAS): New. (AARCH64_ARCH_V8_2): Add AARCH64_FEATURE_RAS. opcodes/ 2015-12-10 Matthew Wahab <matthew.wahab@arm.com> * aarch64-asm-2.c: Regenerate. * aarch64-dis-2.c: Regenerate. * aarch64-tbl.h (aarch64_feature_ras): New. (RAS): New. (aarch64_opcode_table): Add "esb". Change-Id: Id4713917da15cca3b977284f43febd1c9b3d9faf
Diffstat (limited to 'opcodes/aarch64-dis-2.c')
-rw-r--r--opcodes/aarch64-dis-2.c37
1 files changed, 19 insertions, 18 deletions
diff --git a/opcodes/aarch64-dis-2.c b/opcodes/aarch64-dis-2.c
index 9dfa7e4..6139af3 100644
--- a/opcodes/aarch64-dis-2.c
+++ b/opcodes/aarch64-dis-2.c
@@ -3319,7 +3319,7 @@ aarch64_opcode_lookup_1 (uint32_t word)
10987654321098765432109876543210
xxxxxxxxxxxxxxxxxxxxx1xx1x10x01x
sysl. */
- return 1027;
+ return 1028;
}
}
}
@@ -3342,7 +3342,7 @@ aarch64_opcode_lookup_1 (uint32_t word)
10987654321098765432109876543210
xxxxxxxxxxxxxxxxxxxxxxxx0110x1xx
tbz. */
- return 1029;
+ return 1030;
}
}
else
@@ -3361,7 +3361,7 @@ aarch64_opcode_lookup_1 (uint32_t word)
10987654321098765432109876543210
xxxxxxxxxxxxxxxxxxxxxxxx1110x1xx
tbnz. */
- return 1030;
+ return 1031;
}
}
}
@@ -8857,15 +8857,15 @@ aarch64_find_next_opcode (const aarch64_opcode *opcode)
case 794: value = 798; break; /* ldnp --> ldp. */
case 798: return NULL; /* ldp --> NULL. */
case 1009: value = 1010; break; /* msr --> hint. */
- case 1010: value = 1017; break; /* hint --> clrex. */
- case 1017: value = 1018; break; /* clrex --> dsb. */
- case 1018: value = 1019; break; /* dsb --> dmb. */
- case 1019: value = 1020; break; /* dmb --> isb. */
- case 1020: value = 1021; break; /* isb --> sys. */
- case 1021: value = 1026; break; /* sys --> msr. */
- case 1026: return NULL; /* msr --> NULL. */
- case 1027: value = 1028; break; /* sysl --> mrs. */
- case 1028: return NULL; /* mrs --> NULL. */
+ case 1010: value = 1018; break; /* hint --> clrex. */
+ case 1018: value = 1019; break; /* clrex --> dsb. */
+ case 1019: value = 1020; break; /* dsb --> dmb. */
+ case 1020: value = 1021; break; /* dmb --> isb. */
+ case 1021: value = 1022; break; /* isb --> sys. */
+ case 1022: value = 1027; break; /* sys --> msr. */
+ case 1027: return NULL; /* msr --> NULL. */
+ case 1028: value = 1029; break; /* sysl --> mrs. */
+ case 1029: return NULL; /* mrs --> NULL. */
case 361: value = 362; break; /* st4 --> st1. */
case 362: value = 363; break; /* st1 --> st2. */
case 363: value = 364; break; /* st2 --> st3. */
@@ -9145,8 +9145,8 @@ aarch64_find_alias_opcode (const aarch64_opcode *opcode)
case 952: value = 1001; break; /* lduminl --> stuminl. */
case 1002: value = 1003; break; /* movn --> mov. */
case 1004: value = 1005; break; /* movz --> mov. */
- case 1010: value = 1016; break; /* hint --> sevl. */
- case 1021: value = 1025; break; /* sys --> tlbi. */
+ case 1010: value = 1017; break; /* hint --> esb. */
+ case 1022: value = 1026; break; /* sys --> tlbi. */
default: return NULL;
}
@@ -9271,16 +9271,17 @@ aarch64_find_next_alias_opcode (const aarch64_opcode *opcode)
case 1001: value = 952; break; /* stuminl --> lduminl. */
case 1003: value = 1002; break; /* mov --> movn. */
case 1005: value = 1004; break; /* mov --> movz. */
+ case 1017: value = 1016; break; /* esb --> sevl. */
case 1016: value = 1015; break; /* sevl --> sev. */
case 1015: value = 1014; break; /* sev --> wfi. */
case 1014: value = 1013; break; /* wfi --> wfe. */
case 1013: value = 1012; break; /* wfe --> yield. */
case 1012: value = 1011; break; /* yield --> nop. */
case 1011: value = 1010; break; /* nop --> hint. */
- case 1025: value = 1024; break; /* tlbi --> ic. */
- case 1024: value = 1023; break; /* ic --> dc. */
- case 1023: value = 1022; break; /* dc --> at. */
- case 1022: value = 1021; break; /* at --> sys. */
+ case 1026: value = 1025; break; /* tlbi --> ic. */
+ case 1025: value = 1024; break; /* ic --> dc. */
+ case 1024: value = 1023; break; /* dc --> at. */
+ case 1023: value = 1022; break; /* at --> sys. */
default: return NULL;
}