target/arm: Change CPUArchState.thumb to bool

Bool is a more appropriate type for this value.
Adjust the assignments to use true/false.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
Richard Henderson 2022-04-17 10:43:35 -07:00 committed by Peter Maydell
parent 2ab370873f
commit 063bbd8061
4 changed files with 6 additions and 6 deletions

View file

@ -51,7 +51,7 @@ static void arm_cpu_set_pc(CPUState *cs, vaddr value)
if (is_a64(env)) {
env->pc = value;
env->thumb = 0;
env->thumb = false;
} else {
env->regs[15] = value & ~1;
env->thumb = value & 1;