* Steve Reinhardt
*/
-%module core
+%module(package="m5.internal") core
%{
#include "python/swig/pyobject.hh"
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
-#define SWIG_name "m5.internal._core"
-%}
* Authors: Nathan Binkert
*/
-%module debug
+%module(package="m5.internal") debug
%{
#include "base/types.hh"
%include "stdint.i"
%include "base/types.hh"
%include "sim/debug.hh"
-
-%wrapper %{
-// fix up module name to reflect the fact that it's inside the m5 package
-#undef SWIG_name
-#define SWIG_name "m5.internal._debug"
-%}
* Authors: Nathan Binkert
*/
-%module event
+%module(package="m5.internal") event
%{
#include "base/types.hh"
}
SimLoopExitEvent *simulate(Tick num_cycles = MaxTick);
void exitSimLoop(const std::string &message, int exit_code);
-
-%wrapper %{
-// fix up module name to reflect the fact that it's inside the m5 package
-#undef SWIG_name
-#define SWIG_name "m5.internal._event"
-%}
* Authors: Nathan Binkert
*/
-%module random
+%module(package="m5.internal") random
%include "stdint.i"
%inline %{
extern void seed(uint64_t seed);
%}
-
-%wrapper %{
-// fix up module name to reflect the fact that it's inside the m5 package
-#undef SWIG_name
-#define SWIG_name "m5.internal._random"
-%}
* Authors: Nathan Binkert
*/
-%module stats
+%module(package="m5.internal") stats
%include "std_list.i"
%include "std_string.i"
std::list<Info *> &statsList();
/* namespace Stats */ }
-
-%wrapper %{
-// fix up module name to reflect the fact that it's inside the m5 package
-#undef SWIG_name
-#define SWIG_name "m5.internal._stats"
-%}
* Authors: Nathan Binkert
*/
-%module trace
+%module(package="m5.internal") trace
%{
#include "base/trace.hh"
extern void ignore(const char *expr);
extern bool enabled;
%}
-
-%wrapper %{
-// fix up module name to reflect the fact that it's inside the m5 package
-#undef SWIG_name
-#define SWIG_name "m5.internal._trace"
-%}