translate: early exit in tb_flush if there is no tcg
tb_flush does all kind of things, which are very tcg specific. As it is called from some places even for KVM (e.g. gdb server) it is better to detect these cases and do an early exit. This also fixes a crash in the gdb server that was triggered by commit 909eaac9 ("tb hash: track translated blocks with qht"). Suggested-by: NPaolo Bonzini <pbonzini@redhat.com> Reported-by: NRichard Henderson <rth@twiddle.net> Reported-by: NBrent Baccala <cosine@freesoft.org> Signed-off-by: NChristian Borntraeger <borntraeger@de.ibm.com> Message-id: 1472148686-39841-1-git-send-email-borntraeger@de.ibm.com> Reviewed-by: NPeter Maydell <peter.maydell@linaro.org> Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
Showing
想要评论请 注册 或 登录