Add safety net against potential infinite loop
authormalc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 4 Nov 2008 14:18:13 +0000 (14:18 +0000)
committermalc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 4 Nov 2008 14:18:13 +0000 (14:18 +0000)
commit5b04aaa2acb1a7a10abb8f6297f5ceb6015e7427
treea9f89f6536dff7bbc0c79539ee1c3d8e785dd11a
parent07b9c3aaf0377eaef7c4e3a0c964bf370f7334d0
Add safety net against potential infinite loop

cpu_interrupt might be called while translating the TB, but before it
is linked into a potentially infinite loop and becomes env->current_tb.

Currently this can (and does) cause huge problems only when using
dyntick clock, with other (periodic) clocks host_alarm_handler will
eventually be executed resulting in a call to cpu_interrupt which will
reset the recursion of running TB and the damage is "only" latency.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5620 c046a42c-6fe2-441c-8c8c-71466251a162
cpu-exec.c