aarch64: Add support for ccontidr_el1 system register
Adds support for the read-only aarch64 ccontidr_el1 system register.
This patch adds support for the ccontidr_el1 system register to the aarch64 assembler and disassembler. The register is read-only. The changes include adding the register definition and a new test case to verify its correct reading, as well as extending an existing diagnostic test to confirm that attempts to write to this read-only register are flagged.
- proposer
Submitted a patch to add support for the `ccontidr_el1` system register on aarch64, including a new test case for reading it and an extension to a diagnostic test for writing attempts.
- reviewer
LGTMs the patch, indicating approval and thanking the proposer.
“LGTM, thanks.”
Technical Tradeoffs
- Adds new definitions for `ccontidr_el1` in `opcodes/aarch64-sys-regs.def`.
- Introduces new test cases (`sysreg-13.s` and `sysreg-13.d`) for basic read operations.
- Modifies `sysreg-diagnostic.s` and `sysreg-diagnostic.d` to test write attempts to the read-only register.
In Details
This patch adds a new system register, ccontidr_el1, to the binutils assembler (gas) and disassembler (objdump) for the AArch64 architecture. This register is part of the AArch64 architecture's control and identification registers, specifically related to context identification. The changes involve updating opcodes/aarch64-sys-regs.def to recognize the new register and adding new test cases in gas/testsuite/gas/aarch64/sysreg/ to ensure it can be correctly assembled/disassembled and that write attempts to this read-only register are diagnosed.
- aarch64
- The 64-bit ARM architecture.
- system register
- Special-purpose registers in ARM architectures used for controlling system behavior, memory management, and processor state.
- ccontidr_el1
- A specific read-only AArch64 system register that provides identification information related to the execution context.
- gas
- The GNU Assembler, part of the GNU Binutils package.
- objdump
- A utility in GNU Binutils that displays information from object files, including disassembly.
- sysreg
- Abbreviation for system register.