CpuConfig.py (13684:076506a21535) CpuConfig.py (13731:67cd980cb20f)
1# Copyright (c) 2012, 2017-2018 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

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

94 # string.
95 doc = inspect.getdoc(cls)
96 if doc:
97 for line in doc_wrapper.wrap(doc):
98 print(line)
99
100def cpu_names():
101 """Return a list of valid CPU names."""
1# Copyright (c) 2012, 2017-2018 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

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

94 # string.
95 doc = inspect.getdoc(cls)
96 if doc:
97 for line in doc_wrapper.wrap(doc):
98 print(line)
99
100def cpu_names():
101 """Return a list of valid CPU names."""
102 return _cpu_classes.keys()
102 return list(_cpu_classes.keys())
103
104def config_etrace(cpu_cls, cpu_list, options):
105 if issubclass(cpu_cls, m5.objects.DerivO3CPU):
106 # Assign the same file name to all cpus for now. This must be
107 # revisited when creating elastic traces for multi processor systems.
108 for cpu in cpu_list:
109 # Attach the elastic trace probe listener. Set the protobuf trace
110 # file names. Set the dependency window size equal to the cpu it

--- 34 unchanged lines hidden ---
103
104def config_etrace(cpu_cls, cpu_list, options):
105 if issubclass(cpu_cls, m5.objects.DerivO3CPU):
106 # Assign the same file name to all cpus for now. This must be
107 # revisited when creating elastic traces for multi processor systems.
108 for cpu in cpu_list:
109 # Attach the elastic trace probe listener. Set the protobuf trace
110 # file names. Set the dependency window size equal to the cpu it

--- 34 unchanged lines hidden ---