Patchwork [01/14] bail out early on invalid -cpu option

login
register
mail settings
Submitter Paolo Bonzini
Date May 26, 2010, 2:08 p.m.
Message ID <1274882909-9800-2-git-send-email-pbonzini@redhat.com>
Download mbox | patch
Permalink /patch/53636/
State New
Headers show

Comments

Paolo Bonzini - May 26, 2010, 2:08 p.m.
It would fail later anyway.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 configure |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

Patch

diff --git a/configure b/configure
index 3cd2c5f..e8dd2ef 100755
--- a/configure
+++ b/configure
@@ -232,7 +232,8 @@  case "$cpu" in
     cpu="sparc"
   ;;
   *)
-    cpu="unknown"
+    echo "Unsupported CPU = $cpu"
+    exit 1
   ;;
 esac
 
@@ -2068,10 +2069,6 @@  case "$cpu" in
   armv4b|armv4l)
     ARCH=arm
   ;;
-  *)
-    echo "Unsupported CPU = $cpu"
-    exit 1
-  ;;
 esac
 echo "ARCH=$ARCH" >> $config_host_mak
 if test "$debug_tcg" = "yes" ; then