This is a backport of the patch series by Peter Maydell, as found at http://thread.gmane.org/gmane.comp.emulators.qemu/196629 , to 1.4.y stable tree, very similar to what's been done for 1.1 tree. The difference is in context and because some code were moved between exec.c and translate-all.c, but basically it is still the same series.
Peter Maydell (4): tcg: Document tcg_qemu_tb_exec() and provide constants for low bit uses cpu-exec: wrap tcg_qemu_tb_exec() in a fn to restore the PC Handle CPU interrupts by inline checking of a flag translate-all.c: Remove cpu_unlink_tb() cpu-exec.c | 58 ++++++++++++++++++++++++++--------- exec.c | 2 +- include/exec/cpu-defs.h | 1 + include/exec/gen-icount.h | 13 +++++++- tcg/tcg.h | 49 +++++++++++++++++++++++++++++- translate-all.c | 73 ++------------------------------------------- 6 files changed, 108 insertions(+), 88 deletions(-) -- 1.7.10.4