mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-27 21:40:49 +00:00
target/arm: Use bool for is64 and ns in add_cpreg_to_hashtable
Bool is a more appropriate type for these variables. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 20220501055028.646596-16-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
cc946d9669
commit
4c8c454115
@ -8507,8 +8507,8 @@ static void add_cpreg_to_hashtable(ARMCPU *cpu, const ARMCPRegInfo *r,
|
||||
*/
|
||||
uint32_t key;
|
||||
ARMCPRegInfo *r2;
|
||||
int is64 = (r->type & ARM_CP_64BIT) ? 1 : 0;
|
||||
int ns = (secstate & ARM_CP_SECSTATE_NS) ? 1 : 0;
|
||||
bool is64 = r->type & ARM_CP_64BIT;
|
||||
bool ns = secstate & ARM_CP_SECSTATE_NS;
|
||||
int cp = r->cp;
|
||||
size_t name_len;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user