Hi, This expands on the previous version by adding the additional CPUID registers as exposed by the HWCAP_CPUID kernel feature. Most of the work involves judicious use of macros. There is a easily extensible test case that uses the shiny new check-tcg infrastructure ;-)
Alex Bennée (5): target/arm: support reading of CNT[VCT|FRQ]_EL0 from user-space target/arm: relax permission checks for HWCAP_CPUID registers target/arm: expose CPUID registers to userspace linux-user/elfload: enable HWCAP_CPUID for AArch64 tests/tcg/aarch64: userspace system register test linux-user/elfload.c | 1 + target/arm/cpu.h | 7 +++ target/arm/helper.c | 80 +++++++++++++++++++------ tests/tcg/aarch64/Makefile.target | 2 +- tests/tcg/aarch64/sysregs.c | 99 +++++++++++++++++++++++++++++++ 5 files changed, 170 insertions(+), 19 deletions(-) create mode 100644 tests/tcg/aarch64/sysregs.c -- 2.17.1