From f03a4ac12222ce1fb7886dc6cb38a027b73ccff2 Mon Sep 17 00:00:00 2001 From: Alexander Graf Date: Sun, 17 Jul 2011 07:22:06 +0200 Subject: xen: remove CONFIG_XEN_MAPCACHE We were still exporting CONFIG_XEN_MAPCACHE, even though it's completely unused by now. Remove it. Signed-off-by: Alexander Graf --- configure | 3 --- 1 file changed, 3 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 38e3724f33..cd399dc4ce 100755 --- a/configure +++ b/configure @@ -3290,9 +3290,6 @@ case "$target_arch2" in if test "$xen" = "yes" -a "$target_softmmu" = "yes" ; then target_phys_bits=64 echo "CONFIG_XEN=y" >> $config_target_mak - if test "$cpu" = "i386" -o "$cpu" = "x86_64"; then - echo "CONFIG_XEN_MAPCACHE=y" >> $config_target_mak - fi fi esac case "$target_arch2" in -- cgit v1.2.3 From 59d21e537b6c3a964d4e346e9cf2a1e17267a27c Mon Sep 17 00:00:00 2001 From: Alexander Graf Date: Sun, 17 Jul 2011 07:30:29 +0200 Subject: xen: make xen_enabled even more clever When using xen_enabled() we're currently only checking if xen is enabled at all during the build. But what if you want to build multiple targets out of which only one can potentially run xen code? That means that for generic code we'll still have to fall back to the variable and potentially slow the code down, but it's not as important as that is mostly xen device emulation which is not touched for non-xen targets. The target specific code however can with this patch see that it's unable to ever execute xen code. We can thus always return 0 on xen_enabled(), giving gcc enough hints to evict the mapcache code from the target memory management code. Signed-off-by: Alexander Graf Acked-by: Anthony PERARD --- configure | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'configure') diff --git a/configure b/configure index cd399dc4ce..bc3495c6fb 100755 --- a/configure +++ b/configure @@ -3290,7 +3290,12 @@ case "$target_arch2" in if test "$xen" = "yes" -a "$target_softmmu" = "yes" ; then target_phys_bits=64 echo "CONFIG_XEN=y" >> $config_target_mak + else + echo "CONFIG_NO_XEN=y" >> $config_target_mak fi + ;; + *) + echo "CONFIG_NO_XEN=y" >> $config_target_mak esac case "$target_arch2" in i386|x86_64|ppcemb|ppc|ppc64|s390x) -- cgit v1.2.3