[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v5 01/43] tcg: Do not flush icache for interpreter
From: |
Richard Henderson |
Subject: |
[PATCH v5 01/43] tcg: Do not flush icache for interpreter |
Date: |
Tue, 5 Jan 2021 07:19:08 -1000 |
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>
---
tcg/tcg.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tcg/tcg.c b/tcg/tcg.c
index 829d4296e0..df2857dc88 100644
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -1077,7 +1077,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);
@@ -4323,8 +4325,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);
}
--
2.25.1
- [PATCH v5 00/43] Mirror map JIT memory for TCG, Richard Henderson, 2021/01/05
- [PATCH v5 01/43] tcg: Do not flush icache for interpreter,
Richard Henderson <=
- [PATCH v5 03/43] util: Enhance flush_icache_range with separate data pointer, Richard Henderson, 2021/01/05
- [PATCH v5 02/43] util: Extract flush_icache_range to cacheflush.c, Richard Henderson, 2021/01/05
- [PATCH v5 05/43] tcg: Move tcg prologue pointer out of TCGContext, Richard Henderson, 2021/01/05
- [PATCH v5 04/43] util: Specialize flush_idcache_range for aarch64, Richard Henderson, 2021/01/05
- [PATCH v5 07/43] tcg: Add in_code_gen_buffer, Richard Henderson, 2021/01/05
- [PATCH v5 06/43] tcg: Move tcg epilogue pointer out of TCGContext, Richard Henderson, 2021/01/05
- [PATCH v5 09/43] tcg: Adjust TCGLabel for const, Richard Henderson, 2021/01/05
- [PATCH v5 11/43] tcg: Adjust tcg_out_label for const, Richard Henderson, 2021/01/05
- [PATCH v5 14/43] tcg: Make DisasContextBase.tb const, Richard Henderson, 2021/01/05
- [PATCH v5 13/43] tcg: Adjust tb_target_set_jmp_target for split-wx, Richard Henderson, 2021/01/05