summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmilio G. Cota2017-07-29 07:19:17 +0200
committerRichard Henderson2018-06-15 19:42:55 +0200
commit94da9aec2a50f0c82e6c60939275c0337f03d5fe (patch)
tree9b5829c88279f8f28dedc9bd3f4404a83e09d6bf
parenttranslate-all: make l1_map lockless (diff)
downloadqemu-94da9aec2a50f0c82e6c60939275c0337f03d5fe.tar.gz
qemu-94da9aec2a50f0c82e6c60939275c0337f03d5fe.tar.xz
qemu-94da9aec2a50f0c82e6c60939275c0337f03d5fe.zip
translate-all: remove hole in PageDesc
Groundwork for supporting parallel TCG generation. Move the hole to the end of the struct, so that a u32 field can be added there without bloating the struct. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Emilio G. Cota <cota@braap.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
-rw-r--r--accel/tcg/translate-all.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel/tcg/translate-all.c b/accel/tcg/translate-all.c
index 52273e5846..b9c36a3e45 100644
--- a/accel/tcg/translate-all.c
+++ b/accel/tcg/translate-all.c
@@ -107,8 +107,8 @@ typedef struct PageDesc {
#ifdef CONFIG_SOFTMMU
/* in order to optimize self modifying code, we count the number
of lookups we do to a given page to use a bitmap */
- unsigned int code_write_count;
unsigned long *code_bitmap;
+ unsigned int code_write_count;
#else
unsigned long flags;
#endif