summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Henderson2019-10-23 17:00:56 +0200
committerPeter Maydell2019-10-24 18:16:28 +0200
commit37bf16c645e530b2a4434fd5976afbe885137298 (patch)
treee17635f3f41072688a22a588743e84b96ea2271e
parentlinux-user/aarch64: Rebuild hflags for TARGET_WORDS_BIGENDIAN (diff)
downloadqemu-37bf16c645e530b2a4434fd5976afbe885137298.tar.gz
qemu-37bf16c645e530b2a4434fd5976afbe885137298.tar.xz
qemu-37bf16c645e530b2a4434fd5976afbe885137298.zip
linux-user/arm: Rebuild hflags for TARGET_WORDS_BIGENDIAN
Continue setting, but not relying upon, env->hflags. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20191023150057.25731-24-richard.henderson@linaro.org Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--linux-user/arm/cpu_loop.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux-user/arm/cpu_loop.c b/linux-user/arm/cpu_loop.c
index e28c45cd4a..7be4071751 100644
--- a/linux-user/arm/cpu_loop.c
+++ b/linux-user/arm/cpu_loop.c
@@ -440,6 +440,7 @@ void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs)
} else {
env->cp15.sctlr_el[1] |= SCTLR_B;
}
+ arm_rebuild_hflags(env);
#endif
ts->stack_base = info->start_stack;