diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2020-12-12 09:08:02 -0600 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2021-01-07 05:09:41 -1000 |
commit | df5d2b1658b988cb2be557e9f3114115935506ef (patch) | |
tree | 68afff7f1f89d4e0bc8ae767bf5505e6d9a02275 | |
parent | ed6f53f9ca9eda16f5edb157fbfe6be09cefc537 (diff) | |
download | qemu-df5d2b1658b988cb2be557e9f3114115935506ef.zip qemu-df5d2b1658b988cb2be557e9f3114115935506ef.tar.gz qemu-df5d2b1658b988cb2be557e9f3114115935506ef.tar.bz2 |
tcg: Do not flush icache for interpreter
This is currently a no-op within tci/tcg-target.h, but
is about to be moved to a more generic location.
Reviewed-by: Joelle van Dyne <j@getutm.app>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
-rw-r--r-- | tcg/tcg.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1078,7 +1078,9 @@ void tcg_prologue_init(TCGContext *s) #endif buf1 = s->code_ptr; +#ifndef CONFIG_TCG_INTERPRETER flush_icache_range((uintptr_t)buf0, (uintptr_t)buf1); +#endif /* Deduct the prologue from the buffer. */ prologue_size = tcg_current_code_size(s); @@ -4324,8 +4326,10 @@ int tcg_gen_code(TCGContext *s, TranslationBlock *tb) return -2; } +#ifndef CONFIG_TCG_INTERPRETER /* flush instruction cache */ flush_icache_range((uintptr_t)s->code_buf, (uintptr_t)s->code_ptr); +#endif return tcg_current_code_size(s); } |