mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
target/arm: Change cpreg access permissions to enum
Create a typedef as well, and use it in ARMCPRegInfo. This won't be perfect for debugging, but it'll nicely display the most common cases. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20220501055028.646596-8-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
d385a60571
commit
3910733718
2 changed files with 24 additions and 22 deletions
|
@ -8711,7 +8711,7 @@ void define_one_arm_cp_reg_with_opaque(ARMCPU *cpu,
|
|||
* to encompass the generic architectural permission check.
|
||||
*/
|
||||
if (r->state != ARM_CP_STATE_AA32) {
|
||||
int mask = 0;
|
||||
CPAccessRights mask;
|
||||
switch (r->opc1) {
|
||||
case 0:
|
||||
/* min_EL EL1, but some accessible to EL0 via kernel ABI */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue