mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-24 22:15:07 +00:00
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:
parent
975f0a9bc5
commit
d00e5ec47d
|
@ -408,7 +408,7 @@ static inline bool arm_excp_unmasked(CPUState *cs, unsigned int excp_idx,
|
||||||
{
|
{
|
||||||
CPUARMState *env = cs->env_ptr;
|
CPUARMState *env = cs->env_ptr;
|
||||||
bool pstate_unmasked;
|
bool pstate_unmasked;
|
||||||
int8_t unmasked = 0;
|
bool unmasked = false;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Don't take exceptions if they target a lower EL.
|
* 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.
|
* don't affect the masking logic, only the interrupt routing.
|
||||||
*/
|
*/
|
||||||
if (target_el == 3 || !secure) {
|
if (target_el == 3 || !secure) {
|
||||||
unmasked = 1;
|
unmasked = true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/*
|
/*
|
||||||
|
@ -505,7 +505,7 @@ static inline bool arm_excp_unmasked(CPUState *cs, unsigned int excp_idx,
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((scr || hcr) && !secure) {
|
if ((scr || hcr) && !secure) {
|
||||||
unmasked = 1;
|
unmasked = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue