Generate target/arm/cpu-sysregs.h.inc from AARCHMRS Registers.json
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 6 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | scripts: introduce scripts/update-aarch64-sysreg-code.pyscripts/ | +133 | 5 replies | |
| 2/3 | target/arm/cpu-sysregs.h.inc: Sort by name alphabetical ordertarget/ | +20 | 0 replies | |
| 3/3 | target/arm/cpu-sysregs.h.inc: Update with automatic generationtarget/ | +15 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] Generate target/arm/cpu-sysregs.h.inc from AARCHMRS Registers.json
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
Signature · 1 line
2.52.0