1# Copyright (c) 2015 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

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

32# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
34# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35#
36# Authors: Radhika Jagtap
37
38# Basic elastic traces replay script that configures a Trace CPU
39
40from __future__ import print_function
41
42import optparse
43
44from m5.util import addToPath, fatal
45
46addToPath('../')
47
48from common import Options
49from common import Simulation
50from common import CacheConfig
51from common import MemConfig
52from common.Caches import *
53
54parser = optparse.OptionParser()
55Options.addCommonOptions(parser)
56
57if '--ruby' in sys.argv:
56 print "This script does not support Ruby configuration, mainly"\
57 " because Trace CPU has been tested only with classic memory system"
58 print("This script does not support Ruby configuration, mainly"
59 " because Trace CPU has been tested only with classic memory system")
60 sys.exit(1)
61
62(options, args) = parser.parse_args()
63
64if args:
63 print "Error: script doesn't take any positional arguments"
65 print("Error: script doesn't take any positional arguments")
66 sys.exit(1)
67
68numThreads = 1
69
70if options.cpu_type != "TraceCPU":
71 fatal("This is a script for elastic trace replay simulation, use "\
72 "--cpu-type=TraceCPU\n");
73

--- 53 unchanged lines hidden ---