Searched refs:globals (Results 1 - 19 of 19) sorted by relevance

/gem5/src/sim/
H A Dpy_interact.cc39 PyObject *globals; local
42 globals = PyEval_GetGlobals();
43 Py_INCREF(globals);
45 PyRun_String("import code", Py_file_input, globals, locals);
46 PyRun_String("code.interact(local=globals())", Py_file_input,
47 globals, locals);
48 Py_DECREF(globals);
H A Dserialize.cc96 Globals globals; variable
203 globals.serializeSection(outstream, "Globals");
211 globals.unserializeSection(cp, "Globals");
214 mainEventQueue[i]->setCurTick(globals.unserializedCurTick);
/gem5/ext/ply/test/
H A Dlex_many_tokens.py17 exec("t_%s = '%s:'" % (tok,tok), globals())
/gem5/src/python/
H A Dmarshal.cc63 py::globals(), locals);
/gem5/ext/pybind11/include/pybind11/
H A Deval.h30 object eval(str expr, object global = globals(), object local = object()) { argument
53 object eval(const char (&s)[N], object global = globals(), object local = object()) { argument
60 inline void exec(str expr, object global = globals(), object local = object()) { argument
65 void exec(const char (&s)[N], object global = globals(), object local = object()) { argument
70 object eval_file(str fname, object global = globals(), object local = object()) { argument
H A Dpybind11.h880 inline dict globals() { function
/gem5/ext/pybind11/tests/test_cmake_build/
H A Dembed.cpp20 py::eval_file(test_py_file, py::globals());
/gem5/src/unittest/
H A Dgenini.py71 m5execfile(arg, globals())
73 if 'root' in globals() and isinstance(root, Root):
/gem5/src/python/m5/util/
H A Dcode_formatter.py70 if self.formatter.globals and item in self.frame.f_globals:
124 globals = True variable in class:code_formatter
132 self.globals = kwargs.pop('globals', type(self).globals)
/gem5/ext/pybind11/tests/
H A Dconstructor_stats.h113 PyObject *globals = PyEval_GetGlobals(); local
118 Py_file_input, globals, globals);
/gem5/ext/testlib/
H A Duid.py59 return globals()[uid.split(cls.sep)[cls.type_idx]]
H A Dmain.py328 result = globals()['do_'+config.config.command]()
/gem5/src/systemc/tests/tlm/endian_conv/
H A Dtestall.py291 fragmenters = [globals()[n] for n in globals().keys() if n[:8]=="__FRAG__"]
341 all_converters = [globals()[n] for n in globals().keys() if n[:8]=="__CHCK__"]
/gem5/ext/pybind11/tests/test_embed/
H A Dtest_interpreter.cpp61 )", py::globals(), locals);
203 // should still function by using reasonable globals: `__main__.__dict__`.
205 REQUIRE(py::globals()["var"]["number"].cast<int>() == 42);
/gem5/ext/mcpat/regression/
H A Dregression.py141 usage = globals()['__doc__'])
H A Dverify_output.py56 usage = globals()['__doc__'])
/gem5/ext/ply/example/GardenSnake/
H A DGardenSnake.py704 globals()["print"] = print_
708 exec compiled_code in globals()
/gem5/tests/configs/
H A Dbase_config.py50 _have_kvm_support = 'BaseKvmCPU' in globals()
/gem5/configs/example/
H A Dapu_se.py432 have_kvm_support = 'BaseKvmCPU' in globals()

Completed in 35 milliseconds