etrace_replay.py (12430:11cb907bd81b) etrace_replay.py (12564:2778478ca882)
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
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
40import optparse
41
42from m5.util import addToPath, fatal
43
44addToPath('../')
45
46from common import Options
47from common import Simulation
48from common import CacheConfig
49from common import MemConfig
50from common.Caches import *
51
52parser = optparse.OptionParser()
53Options.addCommonOptions(parser)
54
55if '--ruby' in sys.argv:
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")
58 sys.exit(1)
59
60(options, args) = parser.parse_args()
61
62if args:
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")
64 sys.exit(1)
65
66numThreads = 1
67
68if options.cpu_type != "TraceCPU":
69 fatal("This is a script for elastic trace replay simulation, use "\
70 "--cpu-type=TraceCPU\n");
71

--- 53 unchanged lines hidden ---
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 ---