summary refs log tree commit diff stats
path: root/net/socket.c
diff options
context:
space:
mode:
authorChristian Borntraeger <borntraeger@de.ibm.com>2016-08-25 20:11:26 +0200
committerPeter Maydell <peter.maydell@linaro.org>2016-08-30 13:30:55 +0100
commit135a972b45203ba992afc99ef4f061be8a5acae0 (patch)
tree408ac2c0863b51035bc2894b14adab2e2b384164 /net/socket.c
parentb69a553b4af9bc87a8b2e0a7b7a7de4cc7f0557e (diff)
downloadfocaccia-qemu-135a972b45203ba992afc99ef4f061be8a5acae0.tar.gz
focaccia-qemu-135a972b45203ba992afc99ef4f061be8a5acae0.zip
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 909eaac9bbc2 ("tb hash: track translated blocks with qht").

Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Reported-by: Richard Henderson <rth@twiddle.net>
Reported-by: Brent Baccala <cosine@freesoft.org>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Message-id: 1472148686-39841-1-git-send-email-borntraeger@de.ibm.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'net/socket.c')
0 files changed, 0 insertions, 0 deletions