summaryrefslogtreecommitdiffstats
path: root/include/exec/exec-all.h
diff options
context:
space:
mode:
authorAlex Bennée2019-02-15 10:56:38 +0100
committerPeter Maydell2019-02-15 10:56:38 +0100
commit6c5c0fec29bbfe36c64eca1edfd8455be46b77c6 (patch)
treec4a444a50fe3ae3bd222b422c3bf9245ee07860d /include/exec/exec-all.h
parenttarget/arm: relax permission checks for HWCAP_CPUID registers (diff)
downloadqemu-6c5c0fec29bbfe36c64eca1edfd8455be46b77c6.tar.gz
qemu-6c5c0fec29bbfe36c64eca1edfd8455be46b77c6.tar.xz
qemu-6c5c0fec29bbfe36c64eca1edfd8455be46b77c6.zip
target/arm: expose CPUID registers to userspace
A number of CPUID registers are exposed to userspace by modern Linux kernels thanks to the "ARM64 CPU Feature Registers" ABI. For QEMU's user-mode emulation we don't need to emulate the kernels trap but just return the value the trap would have done. To avoid too much #ifdef hackery we process ARMCPRegInfo with a new helper (modify_arm_cp_regs) before defining the registers. The modify routine is driven by a simple data structure which describes which bits are exported and which are fixed. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-id: 20190205190224.2198-3-alex.bennee@linaro.org Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/exec/exec-all.h')
0 files changed, 0 insertions, 0 deletions