diff options
author | Alex Bennée <alex.bennee@linaro.org> | 2017-03-02 10:31:32 +0000 |
---|---|---|
committer | Alex Bennée <alex.bennee@linaro.org> | 2017-03-09 10:41:43 +0000 |
commit | d8b2239bcd8872a5c5f7534d1658fc2365caab2d (patch) | |
tree | dae9a030d9eaf7ddf2e76669346a5f5d09669d77 /user-exec.c | |
parent | 47e20887970c3f267a4be9afacb72dbd51e6655f (diff) | |
download | qemu-d8b2239bcd8872a5c5f7534d1658fc2365caab2d.zip qemu-d8b2239bcd8872a5c5f7534d1658fc2365caab2d.tar.gz qemu-d8b2239bcd8872a5c5f7534d1658fc2365caab2d.tar.bz2 |
translate-all: exit cpu_restore_state early if translating
The translation code uses cpu_ld*_code which can trigger a tlb_fill
which if it fails will erroneously attempts a fault resolution. This
never works during translation as the TB being generated hasn't been
added yet. The target should have checked retaddr before calling
cpu_restore_state but for those that have yet to be fixed we do it
here to avoid a recursive tb_lock() under MTTCG's new locking regime.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'user-exec.c')
0 files changed, 0 insertions, 0 deletions