From 7fc6ffb18e9845a7ee09cea829e4b2ba4475c0f0 Mon Sep 17 00:00:00 2001 From: Alice Carlotti Date: Wed, 5 Nov 2025 13:21:02 +0000 Subject: [PATCH] aarch64: Improve comment for aarch64_opnd_info.sysreg.flags 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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/opcode/aarch64.h b/include/opcode/aarch64.h index e65b61c3f9c..68a181c531f 100644 --- a/include/opcode/aarch64.h +++ b/include/opcode/aarch64.h @@ -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; -- 2.47.3