Skip to contentSkip to conversation

tci: Make flush_icache_range() inline

PATCH Applied Stefan Weil 2 participants 2 messages Nov 24, 2011 – Nov 28, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tci: Make flush_icache_range() inline

This is standard for other tcg targets and improves tci, too.

---
 tcg/tci/tcg-target.c |    4 ----
 tcg/tci/tcg-target.h |    4 ++++
 2 files changed, 4 insertions(+), 4 deletions(-)
tcg/tci/tcg-target.c +0 -4
index 5011c43..f26bec7 100644
@@ -379,10 +379,6 @@ static const char *const tcg_target_reg_names[TCG_TARGET_NB_REGS] = {
 };
 #endif
 
-static void flush_icache_range(unsigned long start, unsigned long stop)
-{
-}
-
 static void patch_reloc(uint8_t *code_ptr, int type,
                         tcg_target_long value, tcg_target_long addend)
 {
tcg/tci/tcg-target.h +4 -0
index 449373d..c35786c 100644
@@ -157,4 +157,8 @@ void tci_disas(uint8_t opc);
 unsigned long tcg_qemu_tb_exec(CPUState *env, uint8_t *tb_ptr);
 #define tcg_qemu_tb_exec tcg_qemu_tb_exec
 
+static inline void flush_icache_range(unsigned long start, unsigned long stop)
+{
+}
+
 #endif /* TCG_TARGET_H */
Signature · 1 line
1.7.2.5
#1 lore raw
Quoted 3 lines · Stefan Weil

This is standard for other tcg targets and improves tci, too.

Applied. Thanks.

Regards,

Anthony Liguori

Quoted 33 lines
---
  tcg/tci/tcg-target.c |    4 ----
  tcg/tci/tcg-target.h |    4 ++++
  2 files changed, 4 insertions(+), 4 deletions(-)
tcg/tci/tcg-target.c +0 -4
index 5011c43..f26bec7 100644
@@ -379,10 +379,6 @@ static const char *const tcg_target_reg_names[TCG_TARGET_NB_REGS] = {
  };
  #endif
 
-static void flush_icache_range(unsigned long start, unsigned long stop)
-{
-}
-
  static void patch_reloc(uint8_t *code_ptr, int type,
                          tcg_target_long value, tcg_target_long addend)
  {
tcg/tci/tcg-target.h +4 -0
index 449373d..c35786c 100644
@@ -157,4 +157,8 @@ void tci_disas(uint8_t opc);
  unsigned long tcg_qemu_tb_exec(CPUState *env, uint8_t *tb_ptr);
  #define tcg_qemu_tb_exec tcg_qemu_tb_exec
 
+static inline void flush_icache_range(unsigned long start, unsigned long stop)
+{
+}
+
  #endif /* TCG_TARGET_H */