]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - tools/testing/selftests/rcutorture/bin/kvm-test-1-rcu.sh
rcutorture: Abstract qemu-flavor identification
[karo-tx-linux.git] / tools / testing / selftests / rcutorture / bin / kvm-test-1-rcu.sh
index 5526550a5d568511c83e1444f5ba87d6a4fc92b1..ddf3bd6eaf19f39fa821eae979a0e15c25dbdc8e 100755 (executable)
@@ -109,12 +109,9 @@ boot_args=$6
 cd $KVM
 kstarttime=`awk 'BEGIN { print systime() }' < /dev/null`
 echo ' ---' `date`: Starting kernel
-if file linux-2.6/*.o | grep -q 64-bit
-then
-       QEMU=qemu-system-x86_64
-else
-       QEMU=qemu-system-i386
-fi
+
+# Determine the appropriate flavor of qemu command.
+QEMU="`identify_qemu $builddir/vmlinux.o`"
 
 # Generate -smp qemu argument.
 cpu_count=`configNR_CPUS.sh $config_template`