qemu/target-arm
Peter Maydell 98eac7cab4 target-arm: Translate with condexec bits from TB flags, not CPUState
When translating, the condexec bits for the TB are in the TB flags;
the CPUState condexec bits may be different.

This patch fixes https://bugs.launchpad.net/bugs/604872 where we might
segfault if we took an exception in the middle of a TB with an IT
block, because when we came to retranslate in cpu_restore_state()
the CPUState condexec bits would have advanced compared to the start
of the TB and we would generate different (wrong) code.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2011-01-14 20:39:19 +01:00
..
cpu.h target-arm: Add symbolic constants for bitfields in TB flags 2011-01-14 20:39:18 +01:00
exec.h move cpu_pc_from_tb to target-*/exec.h 2010-07-03 09:48:12 +03:00
helper.c target-arm: Don't generate code specific to current CPU mode for SRS 2011-01-14 20:39:18 +01:00
helpers.h ARM: add neon helpers for VQSHLU 2011-01-12 00:06:06 +01:00
iwmmxt_helper.c Update to a hopefully more future proof FSF address 2009-07-16 20:47:01 +00:00
machine.c Save/restore ARMv6 MMU state 2009-07-31 13:19:39 +01:00
neon_helper.c ARM: add neon helpers for VQSHLU 2011-01-12 00:06:06 +01:00
op_addsub.h target-arm: fix addsub/subadd implementation 2010-07-01 23:45:29 +02:00
op_helper.c [PATCH] target-arm: remove unused functions cpu_lock(), cpu_unlock() 2010-12-03 15:09:38 +02:00
translate.c target-arm: Translate with condexec bits from TB flags, not CPUState 2011-01-14 20:39:19 +01:00