summaryrefslogtreecommitdiff
path: root/include/exec
diff options
context:
space:
mode:
authorPavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>2014-11-26 13:40:16 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2014-12-15 12:21:02 +0100
commitd8a499f17ee5f05407874f29f69f0e3e3198a853 (patch)
treeb0a5b9acd472944893924e637faa4262fd86f1b5 /include/exec
parent2a62914bd8209d97e918f30f0de74bec2bf622c4 (diff)
downloadqemu-d8a499f17ee5f05407874f29f69f0e3e3198a853.tar.gz
qemu-d8a499f17ee5f05407874f29f69f0e3e3198a853.tar.bz2
qemu-d8a499f17ee5f05407874f29f69f0e3e3198a853.zip
cpu-exec: invalidate nocache translation if they are interrupted
In this case, QEMU might longjmp out of cpu-exec.c and miss the final cleanup in cpu_exec_nocache. Do this manually through a new compile flag. Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/exec')
-rw-r--r--include/exec/exec-all.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h
index 0844885edd..38a8a09b42 100644
--- a/include/exec/exec-all.h
+++ b/include/exec/exec-all.h
@@ -145,6 +145,7 @@ struct TranslationBlock {
uint16_t cflags; /* compile flags */
#define CF_COUNT_MASK 0x7fff
#define CF_LAST_IO 0x8000 /* Last insn may be an IO access. */
+#define CF_NOCACHE 0x10000 /* To be freed after execution */
void *tc_ptr; /* pointer to the translated code */
/* next matching tb for physical address. */