ld/st optimization: define only for x86 target
authorIgor Mitsyanko <i.mitsyanko@samsung.com>
Wed, 20 Jun 2012 12:37:41 +0000 (16:37 +0400)
committerEvgeny Voevodin <e.voevodin@samsung.com>
Wed, 27 Jun 2012 10:46:35 +0000 (14:46 +0400)
ld/st optiization implemented for x86 targets only, it's a target-specific
configure option, not host-wide.

Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
configure

index 3e63dd75a3964359af0d8a630d9317cae2f17be1..be236b800f8f6710676a8fd66349b27603fdcc44 100755 (executable)
--- a/configure
+++ b/configure
@@ -3214,9 +3214,6 @@ fi
 if test "$profiler" = "yes" ; then
   echo "CONFIG_PROFILER=y" >> $config_host_mak
 fi
-if test "$ldst_optimization" = "yes" ; then
-  echo "CONFIG_QEMU_LDST_OPTIMIZATION=y" >> $config_host_mak
-fi
 if test "$slirp" = "yes" ; then
   echo "CONFIG_SLIRP=y" >> $config_host_mak
   echo "CONFIG_SMBD_COMMAND=\"$smbd\"" >> $config_host_mak
@@ -3861,6 +3858,11 @@ case "$target_arch2" in
   fi
 esac
 
+if test "$ldst_optimization" = "yes" ; then
+  if test "$target_arch2" = "i386" -o "$target_arch2" = "x86_64"; then
+    echo "CONFIG_QEMU_LDST_OPTIMIZATION=y" >> $config_target_mak
+  fi
+fi
 if test "$target_arch2" = "ppc64" -a "$fdt" = "yes"; then
   echo "CONFIG_PSERIES=y" >> $config_target_mak
 fi