aboutsummaryrefslogtreecommitdiff
path: root/include/exec/tb-lookup.h
diff options
context:
space:
mode:
authorEmilio G. Cota <cota@braap.org>2017-07-10 20:03:50 -0400
committerRichard Henderson <richard.henderson@linaro.org>2017-10-10 07:37:10 -0700
commit84f1c148da2b35fbb5a436597872765257e8914e (patch)
tree123d14f1cb0cbd823b4f4702f6c07d9b1c415ab2 /include/exec/tb-lookup.h
parentf6bb84d53110398f4899c19dab4e0fe9908ec060 (diff)
downloadqemu-84f1c148da2b35fbb5a436597872765257e8914e.zip
qemu-84f1c148da2b35fbb5a436597872765257e8914e.tar.gz
qemu-84f1c148da2b35fbb5a436597872765257e8914e.tar.bz2
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/tb-lookup.h')
-rw-r--r--include/exec/tb-lookup.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/exec/tb-lookup.h b/include/exec/tb-lookup.h
index 9d32cb0..436b6d5 100644
--- a/include/exec/tb-lookup.h
+++ b/include/exec/tb-lookup.h
@@ -35,7 +35,7 @@ tb_lookup__cpu_state(CPUState *cpu, target_ulong *pc, target_ulong *cs_base,
tb->cs_base == *cs_base &&
tb->flags == *flags &&
tb->trace_vcpu_dstate == *cpu->trace_dstate &&
- !atomic_read(&tb->invalid))) {
+ !(atomic_read(&tb->cflags) & CF_INVALID))) {
return tb;
}
tb = tb_htable_lookup(cpu, *pc, *cs_base, *flags);