summaryrefslogtreecommitdiff
path: root/configs/example
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2008-02-28 20:39:01 -0500
committerAli Saidi <saidi@eecs.umich.edu>2008-02-28 20:39:01 -0500
commit3cb7df428cb303a043a535484b1a107b69ffbf44 (patch)
treedd719d95b8147a60409f2c4ffe8cc21fe2e96bb8 /configs/example
parent19dfde231764855df58c2ac183c012953daa32c6 (diff)
downloadgem5-3cb7df428cb303a043a535484b1a107b69ffbf44.tar.xz
Configs: Fix some bugs we introduced in the simpoints code
--HG-- extra : convert_revision : ef22c11cb3242903a484fc05dc0f96d3e5f9af72
Diffstat (limited to 'configs/example')
-rw-r--r--configs/example/se.py22
1 files changed, 18 insertions, 4 deletions
diff --git a/configs/example/se.py b/configs/example/se.py
index b4b50a013..3d3f28a72 100644
--- a/configs/example/se.py
+++ b/configs/example/se.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2006-2007 The Regents of The University of Michigan
+# Copyright (c) 2006-2008 The Regents of The University of Michigan
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -36,6 +36,7 @@ import os, optparse, sys
m5.AddToPath('../common')
import Simulation
from Caches import *
+from cpu2000 import *
# Get paths we might need. It's expected this file is in m5/configs/example.
config_path = os.path.dirname(os.path.abspath(__file__))
@@ -62,9 +63,22 @@ if args:
print "Error: script doesn't take any positional arguments"
sys.exit(1)
-process = LiveProcess()
-process.executable = options.cmd
-process.cmd = [options.cmd] + options.options.split()
+if options.bench:
+ try:
+ if m5.build_env['TARGET_ISA'] != 'alpha':
+ print >>sys.stderr, "Simpoints code only works for Alpha ISA at this time"
+ sys.exit(1)
+ exec("workload = %s('alpha', 'tru64', 'ref')" % options.bench)
+ process = workload.makeLiveProcess()
+ except:
+ print >>sys.stderr, "Unable to find workload for %s" % options.bench
+ sys.exit(1)
+else:
+ process = LiveProcess()
+ process.executable = options.cmd
+ process.cmd = [options.cmd] + options.options.split()
+
+
if options.input != "":
process.input = options.input