diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2022-04-30 22:49:50 -0700 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2022-05-05 09:35:51 +0100 |
commit | d95101d6026641e9116225b5a22bbe6c4621828d (patch) | |
tree | 9b976ecb3277b53c2f998ade3682d52f8de85a04 /target/arm/cpregs.h | |
parent | 39107337181e0cfcbd92e67d10dce3acd5a13f0a (diff) | |
download | qemu-d95101d6026641e9116225b5a22bbe6c4621828d.zip qemu-d95101d6026641e9116225b5a22bbe6c4621828d.tar.gz qemu-d95101d6026641e9116225b5a22bbe6c4621828d.tar.bz2 |
target/arm: Name CPState type
Give this enum a name and use in ARMCPRegInfo,
add_cpreg_to_hashtable and define_one_arm_cp_reg_with_opaque.
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220501055028.646596-9-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target/arm/cpregs.h')
-rw-r--r-- | target/arm/cpregs.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target/arm/cpregs.h b/target/arm/cpregs.h index 858c5da..4179a8c 100644 --- a/target/arm/cpregs.h +++ b/target/arm/cpregs.h @@ -114,11 +114,11 @@ enum { * Note that we rely on the values of these enums as we iterate through * the various states in some places. */ -enum { +typedef enum { ARM_CP_STATE_AA32 = 0, ARM_CP_STATE_AA64 = 1, ARM_CP_STATE_BOTH = 2, -}; +} CPState; /* * ARM CP register secure state flags. These flags identify security state @@ -260,7 +260,7 @@ struct ARMCPRegInfo { uint8_t opc1; uint8_t opc2; /* Execution state in which this register is visible: ARM_CP_STATE_* */ - int state; + CPState state; /* Register type: ARM_CP_* bits/values */ int type; /* Access rights: PL*_[RW] */ |