]> git.proxmox.com Git - mirror_qemu.git/blobdiff - configure
configure: bail out early on invalid -cpu option
[mirror_qemu.git] / configure
index 8d3084a72fa813ae1422afc8292e0555b4a57aaf..1d4f1e42353c31912ab565be85e99968449a458c 100755 (executable)
--- 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