Stefano Stabellini 58803318e5 fix WFI/WFE length in syndrome register
WFI/E are often, but not always, 4 bytes long. When they are, we need to
set ARM_EL_IL_SHIFT in the syndrome register.

Pass the instruction length to HELPER(wfi), use it to decrement pc
appropriately and to pass an is_16bit flag to syn_wfx, which sets
ARM_EL_IL_SHIFT if needed.

Set dc->insn in both arm_tr_translate_insn and thumb_tr_translate_insn.

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
Message-id: alpine.DEB.2.10.1710241055160.574@sstabellini-ThinkPad-X260
[PMM: move setting of dc->insn for Thumb so it is correct for 32 bit insns]
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2017-10-31 11:50:50 +00:00
..
2017-10-30 10:11:22 +00:00
2017-10-30 10:11:22 +00:00
2017-10-27 08:04:51 +01:00
2017-10-27 08:04:51 +01:00
2017-10-30 10:11:22 +00:00
2017-10-30 10:11:22 +00:00
2017-10-27 08:04:51 +01:00
2017-10-30 10:11:22 +00:00
2017-10-27 08:04:51 +01:00
2017-10-30 10:11:22 +00:00
2017-10-27 08:04:51 +01:00
2017-10-30 10:11:22 +00:00
2017-10-30 10:11:22 +00:00
2017-10-30 10:11:22 +00:00
2017-10-30 10:11:22 +00:00
2017-10-30 10:11:22 +00:00