Skip to contentSkip to conversation

tci: Fix build breakage (unresolved symbol tcg_out_tb_finalize)

PATCH Applied Stefan Weil 2 participants 2 messages Nov 18, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tci: Fix build breakage (unresolved symbol tcg_out_tb_finalize)

Commit 32761257c0b9fa7ee04d2871a6e48a41f119c469 enabled qemu_ld/st optimization unconditionally for some hosts.

The TCG interpreter still does not support this kind of optimization. Therefore builds with TCI fail with an unresolved symbol tcg_out_tb_finalize. This is fixed here.

---
 configure |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
configure +4 -1
index 19775bc..7cf990c 100755
@@ -3908,7 +3908,10 @@ upper() {
 
 case "$cpu" in
   i386|x86_64|ppc)
-    echo "CONFIG_QEMU_LDST_OPTIMIZATION=y" >> $config_target_mak
+    # The TCG interpreter currently does not support ld/st optimization.
+    if test "$tcg_interpreter" = "no" ; then
+        echo "CONFIG_QEMU_LDST_OPTIMIZATION=y" >> $config_target_mak
+    fi
   ;;
 esac
 
Signature · 1 line
1.7.10.4
Applied
#1 lore raw

Thanks, applied.

Quoted 31 lines · Stefan Weil

Commit 32761257c0b9fa7ee04d2871a6e48a41f119c469 enabled qemu_ld/st optimization unconditionally for some hosts.

The TCG interpreter still does not support this kind of optimization. Therefore builds with TCI fail with an unresolved symbol tcg_out_tb_finalize. This is fixed here.

---
 configure |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
configure +4 -2
index 19775bc..7cf990c 100755
@@ -3908,7 +3908,10 @@ upper() {
 
 case "$cpu" in
   i386|x86_64|ppc)
-    echo "CONFIG_QEMU_LDST_OPTIMIZATION=y" >> $config_target_mak
+    # The TCG interpreter currently does not support ld/st optimization.
+    if test "$tcg_interpreter" = "no" ; then
+        echo "CONFIG_QEMU_LDST_OPTIMIZATION=y" >> $config_target_mak
+    fi
   ;;
 esac
 
--

1.7.10.4