Skip to contentSkip to conversation

configure: add CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st optimization

RFC PATCH New YeongKyoon Lee 1 participant 1 message Jan 2, 2012

lore
Share & tools
lore
#0 lore raw

RFC PATCH 3/3 configure: add CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st optimization

Add an option "--enable-ldst-optimization" to enable CONFIG_QEMU_LDST_OPTIMIZATION macro for TCG qemu_ld/st optimization.

---
 configure |    7 +++++++

 1 files changed, 7 insertions(+), 0 deletions(-)
configure +0 -0
index 640e815..e2c3279 100755
@@ -165,6 +165,7 @@ bsd="no"

 linux="no"
 solaris="no"
 profiler="no"
+ldst_optimization="no"
 cocoa="no"
 softmmu="yes"
 linux_user="no"
@@ -678,6 +679,8 @@ for opt do
   ;;
   --enable-profiler) profiler="yes"
   ;;
+  --enable-ldst-optimization) ldst_optimization="yes" +  ;;
   --enable-cocoa)
       cocoa="yes" ;
       sdl="no" ;
@@ -2822,6 +2825,7 @@ echo "gprof enabled     $gprof" echo "sparse enabled    $sparse"
 echo "strip binaries    $strip_opt"
 echo "profiler          $profiler"
+echo "Fast TCG ld/st    $ldst_optimization"
 echo "static build      $static"
 echo "-Werror enabled   $werror"
 if test "$darwin" = "yes" ; then
@@ -2977,6 +2981,9 @@ 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