target/arm: Use bool for unmasked in arm_excp_unmasked

The value computed is fully boolean; using int8_t is odd.

Backports commit 16e07f78df002067bc4bfb115ba1ee0ce278e9e5 from qemu
This commit is contained in:
Richard Henderson 2020-03-21 16:40:32 -04:00 committed by Lioncash
parent 975f0a9bc5
commit d00e5ec47d

View file

@ -408,7 +408,7 @@ static inline bool arm_excp_unmasked(CPUState *cs, unsigned int excp_idx,
{
CPUARMState *env = cs->env_ptr;
bool pstate_unmasked;
int8_t unmasked = 0;
bool unmasked = false;
/*
* Don't take exceptions if they target a lower EL.
@ -459,7 +459,7 @@ static inline bool arm_excp_unmasked(CPUState *cs, unsigned int excp_idx,
* don't affect the masking logic, only the interrupt routing.
*/
if (target_el == 3 || !secure) {
unmasked = 1;
unmasked = true;
}
} else {
/*
@ -505,7 +505,7 @@ static inline bool arm_excp_unmasked(CPUState *cs, unsigned int excp_idx,
}
if ((scr || hcr) && !secure) {
unmasked = 1;
unmasked = true;
}
}
}