Fix arch detection
authorSteve McIntyre <steve.mcintyre@arm.com>
Mon, 11 May 2020 14:42:36 +0000 (15:42 +0100)
committerSteve McIntyre <steve.mcintyre@arm.com>
Mon, 11 May 2020 14:42:36 +0000 (15:42 +0100)
scripts/start_runtime

index e15dc09..118a353 100755 (executable)
@@ -11,13 +11,13 @@ case $MACHINE in
     aarch64)
        if [ "$MACH"x = ""x ] || \
               [ "$MACH"x = "aarch64"x ] || \
-              [ "$MACH"x = "arm64" ] ; then
+              [ "$MACH"x = "arm64"x ] ; then
            MACH=aarch64
            QEMU=qemu-system-aarch64
            CPU_OPTS="-cpu host --enable-kvm"
            MACH_OPTS="-machine virt,gic-version=host,kernel_irqchip=on"
        elif [ "$MACH"x = "arm"x ] ||\
-               [ "$MACH"x = "arm32" ] ; then
+               [ "$MACH"x = "arm32"x ] ; then
            MACH=arm
            QEMU=qemu-system-aarch64
            CPU_OPTS="-cpu host,aarch64=off --enable-kvm"
@@ -30,13 +30,13 @@ case $MACHINE in
     *)
        if [ "$MACH"x = ""x ] || \
               [ "$MACH"x = "aarch64"x ] || \
-              [ "$MACH"x = "arm64" ] ; then
+              [ "$MACH"x = "arm64"x ] ; then
            MACH=aarch64
            QEMU=qemu-system-aarch64
            CPU_OPTS="-cpu cortex-a57"
            MACH_OPTS="-M virt"
        elif [ "$MACH"x = "arm"x ] ||\
-               [ "$MACH"x = "arm32" ] ; then
+               [ "$MACH"x = "arm32"x ] ; then
            MACH=arm
            QEMU=qemu-system-arm
            CPU_OPTS="-cpu cortex-a15"