[binutils-gdb] aarch64: Add QLF_ERR to aarch64_opnd_qualifiers
Alice Carlotti via Binutils-cvs <[email protected]>
| Newsgroups | gmane.comp.gnu.binutils.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=916226638dca425cf59608c947aea21e14717675 commit 916226638dca425cf59608c947aea21e14717675 Author: Alice Carlotti <[email protected]> Date: Thu Jan 29 12:14:33 2026 +0000 aarch64: Add QLF_ERR to aarch64_opnd_qualifiers 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. Diff: --- opcodes/aarch64-opc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/opcodes/aarch64-opc.c b/opcodes/aarch64-opc.c index 589e6a49395..b464bad548a 100644 --- a/opcodes/aarch64-opc.c +++ b/opcodes/aarch64-opc.c @@ -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