diff options
| author | Alex Bennée <alex.bennee@linaro.org> | 2019-02-15 09:56:38 +0000 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2019-02-15 09:56:38 +0000 |
| commit | 6c5c0fec29bbfe36c64eca1edfd8455be46b77c6 (patch) | |
| tree | c4a444a50fe3ae3bd222b422c3bf9245ee07860d /scripts/qapi/introspect.py | |
| parent | b5bd7440422bb66deaceb812bb9287a6a3cdf10c (diff) | |
| download | focaccia-qemu-6c5c0fec29bbfe36c64eca1edfd8455be46b77c6.tar.gz focaccia-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 'scripts/qapi/introspect.py')
0 files changed, 0 insertions, 0 deletions