We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7eb4ee6 commit 3fc3c0dCopy full SHA for 3fc3c0d
tools/testing/selftests/arm64/abi/hwcap.c
@@ -34,6 +34,12 @@
34
*/
35
typedef void (*sig_fn)(void);
36
37
+static void aes_sigill(void)
38
+{
39
+ /* AESE V0.16B, V0.16B */
40
+ asm volatile(".inst 0x4e284800" : : : );
41
+}
42
+
43
static void atomics_sigill(void)
44
{
45
/* STADD W0, [SP] */
@@ -273,6 +279,13 @@ static const struct hwcap_data {
273
279
sig_fn sigbus_fn;
274
280
bool sigbus_reliable;
275
281
} hwcaps[] = {
282
+ {
283
+ .name = "AES",
284
+ .at_hwcap = AT_HWCAP,
285
+ .hwcap_bit = HWCAP_AES,
286
+ .cpuinfo = "aes",
287
+ .sigill_fn = aes_sigill,
288
+ },
276
289
277
290
.name = "CRC32",
278
291
.at_hwcap = AT_HWCAP,
0 commit comments