Configs: Automatically choose the correct hello world binary.
authorAli Saidi <Ali.Saidi@ARM.com>
Wed, 8 Dec 2010 00:19:57 +0000 (16:19 -0800)
committerAli Saidi <Ali.Saidi@ARM.com>
Wed, 8 Dec 2010 00:19:57 +0000 (16:19 -0800)
configs/example/se.py

index a249f46dd7bed906b4c8cac84c002ac5be062d69..7cf11603ecd06c3d4ba1a6e1d49cf88c5f09512b 100644 (file)
@@ -59,7 +59,8 @@ parser = optparse.OptionParser()
 
 # Benchmark options
 parser.add_option("-c", "--cmd",
-    default=joinpath(m5_root, "tests/test-progs/hello/bin/alpha/linux/hello"),
+    default=joinpath(m5_root, "tests/test-progs/hello/bin/%s/linux/hello" % \
+            buildEnv['TARGET_ISA']),
     help="The binary to run in syscall emulation mode.")
 parser.add_option("-o", "--options", default="",
     help='The options to pass to the binary, use " " around the entire string')