]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
aarch64: Improve comment for aarch64_opnd_info.sysreg.flags
authorAlice Carlotti <alice.carlotti@arm.com>
Wed, 5 Nov 2025 13:21:02 +0000 (13:21 +0000)
committerAlice Carlotti <alice.carlotti@arm.com>
Thu, 4 Dec 2025 16:21:55 +0000 (16:21 +0000)
This field is used differently during assembly and disassembly.  It
would be nice if we could make this more consistent, but for now just
extend the comment to explain what is going on.

include/opcode/aarch64.h

index e65b61c3f9c2a82043248e75807f5e3326ca2f26..68a181c531f7ca87b60da1728c2c208fa6ff793e 100644 (file)
@@ -1785,7 +1785,9 @@ struct aarch64_opnd_info
          /* The encoding of the system register.  */
          aarch64_insn value;
 
-         /* The system register flags.  */
+         /* The system register flags.  During assembly this contains the
+            flags from aarch64-sys-regs.def.  During disassembly this stores
+            either F_REG_READ or F_REG_WRITE, depending upon the opcode.  */
          uint32_t flags;
        } sysreg;