Skip to contentSkip to conversation

tcg: Fix tci build

PATCH In review [email protected] 2 participants 3 messages Sep 11, 2017 – Sep 12, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tcg: Fix tci build

From: Jincheng Miao <[email protected]>

The previous commit 659ef5cbb8 enable LDST_LABELS in tci target,
but which causes tci build error like:
tcg/tcg.c:116:13: error: ‘tcg_out_ldst_finalize’ used but never defined [-Werror]

 static bool tcg_out_ldst_finalize(TCGContext *s);
             ^

cc1: all warnings being treated as errors
make[1]: *** [tcg/tcg.o] Error 1
make: *** [subdir-x86_64-softmmu] Error 2

If this macro is not used in tci, we could just delete it.

---
 tcg/tci/tcg-target.h | 4 ----
 1 file changed, 4 deletions(-)
tcg/tci/tcg-target.h +0 -4
index 5d692e1..26140d7 100644
@@ -206,8 +206,4 @@ static inline void tb_target_set_jmp_target(uintptr_t tc_ptr,
     /* no need to flush icache explicitly */
 }
 
-#ifdef CONFIG_SOFTMMU
-#define TCG_TARGET_NEED_LDST_LABELS
-#endif
-
 #endif /* TCG_TARGET_H */
Signature · 1 line
1.8.3.1
#1 lore raw
Quoted 7 lines · On Mon, Sep 11, 2017 at 5:17 PM, <[email protected]> wrote:

From: Jincheng Miao <[email protected]>

The previous commit 659ef5cbb8 enable LDST_LABELS in tci target,
but which causes tci build error like:
tcg/tcg.c:116:13: error: ‘tcg_out_ldst_finalize’ used but never defined [-Werror]

 static bool tcg_out_ldst_finalize(TCGContext *s);
             ^
Quoted 7 lines

cc1: all warnings being treated as errors
make[1]: *** [tcg/tcg.o] Error 1
make: *** [subdir-x86_64-softmmu] Error 2

If this macro is not used in tci, we could just delete it.

Thank you for the patch!

This looks good, unfortunately someone else had already sent the same fix. You can review their patch and add your Reviewed by line to that patch, that will help get the fix merged.

You can see their patch here: https://patchwork.kernel.org/patch/9946503/

Thanks,
Alistair

Quoted 21 lines
---
 tcg/tci/tcg-target.h | 4 ----
 1 file changed, 4 deletions(-)
tcg/tci/tcg-target.h +0 -5
index 5d692e1..26140d7 100644
@@ -206,8 +206,4 @@ static inline void tb_target_set_jmp_target(uintptr_t tc_ptr,
     /* no need to flush icache explicitly */
 }
 
-#ifdef CONFIG_SOFTMMU
-#define TCG_TARGET_NEED_LDST_LABELS
-#endif
-
 #endif /* TCG_TARGET_H */
--

1.8.3.1

#2 lore raw

Good to know, and thanks for your review and remind.

Regards,
Jincheng Miao

Quoted 48 lines · Alistair Francis
Quoted 7 lines · On Mon, Sep 11, 2017 at 5:17 PM, <[email protected]> wrote:

From: Jincheng Miao <[email protected]>

The previous commit 659ef5cbb8 enable LDST_LABELS in tci target,
but which causes tci build error like:
tcg/tcg.c:116:13: error: ‘tcg_out_ldst_finalize’ used but never defined [-Werror]

 static bool tcg_out_ldst_finalize(TCGContext *s);
             ^
Quoted 7 lines

cc1: all warnings being treated as errors
make[1]: *** [tcg/tcg.o] Error 1
make: *** [subdir-x86_64-softmmu] Error 2

If this macro is not used in tci, we could just delete it.

Thank you for the patch!

This looks good, unfortunately someone else had already sent the same fix. You can review their patch and add your Reviewed by line to that patch, that will help get the fix merged.

You can see their patch here: https://patchwork.kernel.org/patch/9946503/

Thanks,
Alistair

Quoted 21 lines
---
 tcg/tci/tcg-target.h | 4 ----
 1 file changed, 4 deletions(-)
tcg/tci/tcg-target.h +0 -5
index 5d692e1..26140d7 100644
@@ -206,8 +206,4 @@ static inline void tb_target_set_jmp_target(uintptr_t tc_ptr,
     /* no need to flush icache explicitly */
 }
 
-#ifdef CONFIG_SOFTMMU
-#define TCG_TARGET_NEED_LDST_LABELS
-#endif
-
 #endif /* TCG_TARGET_H */
--

1.8.3.1