X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fpython%2Fswig%2Fcore.i;h=eefe106a4fd253df04451160fe562f5aa7d2df97;hb=eef3a2e142443d94b75de333ff3ccb69644a9831;hp=8960fb228418747713e07e89b474b9e195d31bd1;hpb=3afc6259757e8ec688701bf3e3d7fcdad28d5b6c;p=gem5.git diff --git a/src/python/swig/core.i b/src/python/swig/core.i index 8960fb228..eefe106a4 100644 --- a/src/python/swig/core.i +++ b/src/python/swig/core.i @@ -34,24 +34,43 @@ %{ #include "python/swig/pyobject.hh" +#include "base/misc.hh" +#include "base/socket.hh" #include "sim/core.hh" -#include "sim/host.hh" +#include "base/types.hh" #include "sim/startup.hh" extern const char *compileDate; + +#ifdef DEBUG +const bool flag_DEBUG = true; +#else +const bool flag_DEBUG = false; +#endif +#ifdef NDEBUG +const bool flag_NDEBUG = true; +#else +const bool flag_NDEBUG = false; +#endif +const bool flag_TRACING_ON = TRACING_ON; + +inline void disableAllListeners() { ListenSocket::disableAll(); } %} %include "stdint.i" %include "std_string.i" -%include "sim/host.hh" +%include "base/types.hh" void setOutputDir(const std::string &dir); -void setOutputFile(const std::string &file); -void loadIniFile(PyObject *); void SimStartup(); void doExitCleanup(); +void disableAllListeners(); +%immutable compileDate; char *compileDate; +const bool flag_DEBUG; +const bool flag_NDEBUG; +const bool flag_TRACING_ON; void setClockFrequency(Tick ticksPerSecond); @@ -64,6 +83,10 @@ void unserializeAll(const std::string &cpt_dir); void initAll(); void regAllStats(); +bool want_warn, warn_verbose; +bool want_info, info_verbose; +bool want_hack, hack_verbose; + %wrapper %{ // fix up module name to reflect the fact that it's inside the m5 package #undef SWIG_name