From 3cb7df428cb303a043a535484b1a107b69ffbf44 Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Thu, 28 Feb 2008 20:39:01 -0500 Subject: Configs: Fix some bugs we introduced in the simpoints code --HG-- extra : convert_revision : ef22c11cb3242903a484fc05dc0f96d3e5f9af72 --- configs/example/se.py | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'configs/example') 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 -- cgit v1.2.3