se.py (8482:353abb676fa2) se.py (8649:c3e7a961c727)
1# Copyright (c) 2006-2008 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 108 unchanged lines hidden (view full) ---

117if options.errout != "":
118 process.errout = options.errout
119
120
121# By default, set workload to path of user-specified binary
122workloads = options.cmd
123numThreads = 1
124
1# Copyright (c) 2006-2008 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 108 unchanged lines hidden (view full) ---

117if options.errout != "":
118 process.errout = options.errout
119
120
121# By default, set workload to path of user-specified binary
122workloads = options.cmd
123numThreads = 1
124
125if options.detailed or options.inorder:
125if options.cpu_type == "detailed" or options.cpu_type == "inorder":
126 #check for SMT workload
127 workloads = options.cmd.split(';')
128 if len(workloads) > 1:
129 process = []
130 smt_idx = 0
131 inputs = []
132 outputs = []
133 errouts = []

--- 15 unchanged lines hidden (view full) ---

149 smt_process.output = outputs[smt_idx]
150 if errouts and errouts[smt_idx]:
151 smt_process.errout = errouts[smt_idx]
152 process += [smt_process, ]
153 smt_idx += 1
154 numThreads = len(workloads)
155
156if options.ruby:
126 #check for SMT workload
127 workloads = options.cmd.split(';')
128 if len(workloads) > 1:
129 process = []
130 smt_idx = 0
131 inputs = []
132 outputs = []
133 errouts = []

--- 15 unchanged lines hidden (view full) ---

149 smt_process.output = outputs[smt_idx]
150 if errouts and errouts[smt_idx]:
151 smt_process.errout = errouts[smt_idx]
152 process += [smt_process, ]
153 smt_idx += 1
154 numThreads = len(workloads)
155
156if options.ruby:
157 if options.detailed:
157 if options.cpu_type == "detailed":
158 print >> sys.stderr, "Ruby only works with TimingSimpleCPU!!"
159 sys.exit(1)
158 print >> sys.stderr, "Ruby only works with TimingSimpleCPU!!"
159 sys.exit(1)
160 elif not options.timing:
160 elif not options.cpu_type == "timing":
161 print >> sys.stderr, "****WARN: using Timing CPU since it's needed by Ruby"
162
163 class CPUClass(TimingSimpleCPU): pass
164 test_mem_mode = 'timing'
165 FutureClass = None
166else:
167 (CPUClass, test_mem_mode, FutureClass) = Simulation.setCPUClass(options)
168

--- 30 unchanged lines hidden ---
161 print >> sys.stderr, "****WARN: using Timing CPU since it's needed by Ruby"
162
163 class CPUClass(TimingSimpleCPU): pass
164 test_mem_mode = 'timing'
165 FutureClass = None
166else:
167 (CPUClass, test_mem_mode, FutureClass) = Simulation.setCPUClass(options)
168

--- 30 unchanged lines hidden ---