Searched refs:hasattr (Results 1 - 25 of 55) sorted by relevance

123

/gem5/tests/legacy-configs/
H A Drun.py101 if not hasattr(sys, "cpu"):
118 if hasattr(root, sysattr):
/gem5/src/sim/power/
H A DThermalModel.py102 if not hasattr(self,"_capacitors"): self._capacitors = []
103 if not hasattr(self,"_resistors"): self._resistors = []
104 if not hasattr(self,"_domains"): self._domains = []
105 if not hasattr(self,"_references"): self._references = []
106 if not hasattr(self,"_nodes"): self._nodes = []
/gem5/util/
H A Dcpt_upgrader.py98 if not hasattr(self, 'tag'):
100 if not hasattr(self, 'depends'):
109 if hasattr(self, 'fwd_depends'):
119 if hasattr(self, 'upgrader'):
125 elif hasattr(self, 'downgrader'):
135 if hasattr(self, 'legacy_version'):
147 if hasattr(self, 'upgrader'):
/gem5/ext/googletest/googlemock/scripts/generator/cpp/
H A Dkeywords.py31 if not hasattr(builtins, 'set'):
/gem5/ext/pybind11/pybind11/
H A D__init__.py10 virtualenv = hasattr(sys, 'real_prefix') or \
/gem5/ext/pybind11/tests/test_embed/
H A Dtest_interpreter.cpp55 REQUIRE(py::hasattr(module, "DerivedWidget"));
184 REQUIRE_FALSE(py::hasattr(py::module::import("__main__"), "tag"));
187 REQUIRE_FALSE(py::hasattr(m, "extension_module_tag"));
197 REQUIRE(py::hasattr(py::module::import("__main__"), "main_tag"));
198 REQUIRE(py::hasattr(py::module::import("widget_module"), "extension_module_tag"));
/gem5/configs/common/
H A DFileSystemConfig.py83 if hasattr(options, 'cpu_clock'):
87 if hasattr(options, 'l2_size'):
138 if options and hasattr(options, 'chroot'):
H A Dcpu2000.py79 if not hasattr(self.__class__, 'name'):
82 if not hasattr(self.__class__, 'binary'):
85 if not hasattr(self.__class__, 'args'):
88 if not hasattr(self.__class__, 'output'):
91 if not hasattr(self.__class__, 'simpoint'):
125 if not hasattr(self.__class__, 'stdin'):
130 if not hasattr(self.__class__, 'stdout'):
H A DFSConfig.py255 if hasattr(self.realview, "ide"):
257 elif hasattr(self.realview, "cf_ctrl"):
311 if hasattr(self.realview.gic, 'cpu_addr'):
667 if hasattr(testSystem, 'realview'):
670 elif hasattr(testSystem, 'tsunami'):
705 if hasattr(testSystem, 'realview'):
707 elif hasattr(testSystem, 'tsunami'):
/gem5/src/cpu/testers/traffic_gen/
H A DBaseTrafficGen.py115 if hasattr(self, '_cached_ports') and (len(self._cached_ports) > 0):
/gem5/tests/
H A Drun.py238 if not hasattr(sys, "cpu"):
250 if hasattr(root, sysattr):
/gem5/src/dev/arm/
H A DSMMUv3.py201 if hasattr(device, "master"):
203 elif hasattr(device, "dma"):
/gem5/ext/pybind11/tests/
H A Dpybind11_tests.cpp92 if (!py::hasattr(m, "have_eigen")) m.attr("have_eigen") = false;
H A Dtest_local_bindings.py36 assert not hasattr(i1, 'get2')
37 assert not hasattr(i2, 'get3')
65 if hasattr(pybind11_tests, 'class_') else 'test_class not enabled')
H A Dtest_stl.py108 @pytest.mark.skipif(not hasattr(m, "has_optional"), reason='no <optional>')
131 @pytest.mark.skipif(not hasattr(m, "has_exp_optional"), reason='no <experimental/optional>')
152 @pytest.mark.skipif(not hasattr(m, "load_variant"), reason='no <variant>')
H A Dtest_builtin_casters.py26 if hasattr(m, "bad_utf32_string"):
29 if hasattr(m, "bad_wchar_string"):
112 @pytest.mark.skipif(not hasattr(m, "has_string_view"), reason="no <string_view>")
H A Dtest_local_bindings.cpp45 if (py::hasattr(main, "class_")) {
H A Dtest_methods_and_attributes.py263 assert not hasattr(instance, "foo")
268 assert hasattr(instance, "foo")
275 assert not hasattr(instance, "foo")
276 assert hasattr(instance, "bar")
H A Dtest_call_policies.py185 if hasattr(m, "with_gil"):
/gem5/src/python/m5/
H A Dproxy.py165 if hasattr(self, '_pdesc'):
178 if hasattr(self, '_pdesc'):
188 if hasattr(val, '_visited'):
H A DSimObject.py382 if hasattr(simobj, 'abstract') and simobj.abstract:
557 assert(not hasattr(pdesc, 'name'))
560 if hasattr(pdesc, 'default'):
596 assert(not hasattr(port, 'name'))
729 if not hasattr(cls, 'abstract') or not cls.abstract:
913 if not hasattr(cls, 'abstract') or not cls.abstract:
1117 if hasattr(self, "_paramEnumed"):
1271 if self._ccObject and hasattr(self._ccObject, attr):
1439 if hasattr(child, '_visited'):
1516 if hasattr(sel
[all...]
/gem5/tests/testing/
H A Dhelpers.py139 re_obj = r if hasattr(r, "search") else re.compile(r)
/gem5/src/python/m5/util/
H A Ddot_writer_ruby.py98 if hasattr(ctrl, '_node_type'):
/gem5/ext/testlib/
H A Dmain.py100 if hasattr(cfg, name):
106 if hasattr(cfg, name):
/gem5/src/python/m5/stats/
H A D__init__.py154 @_url_factory([ "h5", ], enable=hasattr(_m5.stats, "initHDF5"))
271 if hasattr(parent, 'addStatGroup'):

Completed in 36 milliseconds

123