summaryrefslogtreecommitdiffstats
path: root/linux-user/arm/cpu_loop.c
diff options
context:
space:
mode:
authorRichard Henderson2022-04-17 19:43:35 +0200
committerPeter Maydell2022-04-22 15:44:54 +0200
commit063bbd8061bc01b5aee6a9a15db92619bae5418c (patch)
tree12b0b7a1a6df9f69eeae32038d28b2c225c93969 /linux-user/arm/cpu_loop.c
parenttarget/arm: Change DisasContext.thumb to bool (diff)
downloadqemu-063bbd8061bc01b5aee6a9a15db92619bae5418c.tar.gz
qemu-063bbd8061bc01b5aee6a9a15db92619bae5418c.tar.xz
qemu-063bbd8061bc01b5aee6a9a15db92619bae5418c.zip
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>
Diffstat (limited to 'linux-user/arm/cpu_loop.c')
-rw-r--r--linux-user/arm/cpu_loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/arm/cpu_loop.c b/linux-user/arm/cpu_loop.c
index 3268e5f1f1..d950409d5b 100644
--- a/linux-user/arm/cpu_loop.c
+++ b/linux-user/arm/cpu_loop.c
@@ -230,7 +230,7 @@ do_kernel_trap(CPUARMState *env)
/* Jump back to the caller. */
addr = env->regs[14];
if (addr & 1) {
- env->thumb = 1;
+ env->thumb = true;
addr &= ~1;
}
env->regs[15] = addr;