Introduce a python script that generates ID register definitions from the Registers.json file included in "AARCHMRS containing the JSON files for Arm A-profile (2025-09)". It generates the content of target/arm/cpu-sysregs.h.inc.
Since [PATCH v8 00/14] arm: rework id register storage (https://lore.kernel.org/all/[email protected]/) ID regs are generically stored in an array. Auto generation brings the capability to enhance the list of IDregs stored in that array. Registers.json can be downloaded at: Arm Developer A-Profile Architecture Exploration Tools page: https://developer.arm.com/Architectures/A-Profile%20Architecture#Downloads Open Source 2025-09 item. This patch is a rework of: [PATCH v8 12/14] arm/cpu: Add sysreg generation scripts using a python script instead of bash/awk and using a different entry: Registers.json instead of linux sysreg file. Soon we will offer the end-user the capability to overwrite some of them through the KVM API. Eric Auger (3): scripts: introduce scripts/update-aarch64-sysreg-code.py target/arm/cpu-sysregs.h.inc: Sort by name alphabetical order target/arm/cpu-sysregs.h.inc: Update with automatic generation scripts/update-aarch64-sysreg-code.py | 133 ++++++++++++++++++++++++++ target/arm/cpu-sysregs.h.inc | 56 +++++++---- 2 files changed, 168 insertions(+), 21 deletions(-) create mode 100755 scripts/update-aarch64-sysreg-code.py -- 2.52.0
