summaryrefslogtreecommitdiffstats
path: root/include/exec/exec-all.h
diff options
context:
space:
mode:
authorEmilio G. Cota2017-07-11 02:03:50 +0200
committerRichard Henderson2017-10-10 16:37:10 +0200
commit84f1c148da2b35fbb5a436597872765257e8914e (patch)
tree123d14f1cb0cbd823b4f4702f6c07d9b1c415ab2 /include/exec/exec-all.h
parenttcg: consolidate TB lookups in tb_lookup__cpu_state (diff)
downloadqemu-84f1c148da2b35fbb5a436597872765257e8914e.tar.gz
qemu-84f1c148da2b35fbb5a436597872765257e8914e.tar.xz
qemu-84f1c148da2b35fbb5a436597872765257e8914e.zip
exec-all: bring tb->invalid into tb->cflags
This gets rid of a hole in struct TranslationBlock. Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Emilio G. Cota <cota@braap.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/exec/exec-all.h')
-rw-r--r--include/exec/exec-all.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h
index a9a8bb6f83..3135aaf4c9 100644
--- a/include/exec/exec-all.h
+++ b/include/exec/exec-all.h
@@ -314,12 +314,11 @@ struct TranslationBlock {
#define CF_NOCACHE 0x10000 /* To be freed after execution */
#define CF_USE_ICOUNT 0x20000
#define CF_IGNORE_ICOUNT 0x40000 /* Do not generate icount code */
+#define CF_INVALID 0x80000 /* TB is stale. Setters must acquire tb_lock */
/* Per-vCPU dynamic tracing state used to generate this TB */
uint32_t trace_vcpu_dstate;
- uint16_t invalid;
-
void *tc_ptr; /* pointer to the translated code */
uint8_t *tc_search; /* pointer to search data */
/* original tb when cflags has CF_NOCACHE */