]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
aarch64: Add QLF_ERR to aarch64_opnd_qualifiers
authorAlice Carlotti <alice.carlotti@arm.com>
Thu, 29 Jan 2026 12:14:33 +0000 (12:14 +0000)
committerAlice Carlotti <alice.carlotti@arm.com>
Fri, 15 May 2026 14:07:19 +0000 (15:07 +0100)
Add an entry to aarch64_opnd_qualifiers for AARCH64_OPND_QLF_ERR.  This
should never be used (otherwise we would previously have had
out-of-bounds memory accesses), but it makes the array length match the
enum length, and might be slightly more robust.

opcodes/aarch64-opc.c

index 589e6a4939576e90185e617790eb1b4b72b4bf7f..b464bad548af9b3220732b85ff52b2f89521ef2f 100644 (file)
@@ -793,6 +793,9 @@ static const struct operand_qualifier_data aarch64_opnd_qualifiers[] =
   {0, 0, 0, "msl", 0},
 
   {0, 0, 0, "retrieving", 0},
+
+  /* This shouldn't ever be used.  */
+  {0, 0, 0, "ERR", OQK_NIL},
 };
 
 static inline bool