It doesn't appear to be necessary and it is somewhat odd. I'm pretty
sure that the package parameter to %module does whatever this might
have been before. It's necessary in future revisions anyway.
+%module(package="m5.internal") core
%{
#include "python/swig/pyobject.hh"
%{
#include "python/swig/pyobject.hh"
bool want_info, info_verbose;
bool want_hack, hack_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
-#define SWIG_name "m5.internal._core"
-%}
* Authors: Nathan Binkert
*/
* Authors: Nathan Binkert
*/
+%module(package="m5.internal") debug
%{
#include "base/types.hh"
%{
#include "base/types.hh"
%include "stdint.i"
%include "base/types.hh"
%include "sim/debug.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
*/
* Authors: Nathan Binkert
*/
+%module(package="m5.internal") event
%{
#include "base/types.hh"
%{
#include "base/types.hh"
}
SimLoopExitEvent *simulate(Tick num_cycles = MaxTick);
void exitSimLoop(const std::string &message, int exit_code);
}
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
*/
* Authors: Nathan Binkert
*/
+%module(package="m5.internal") random
%inline %{
extern void seed(uint64_t seed);
%}
%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
*/
* Authors: Nathan Binkert
*/
+%module(package="m5.internal") stats
%include "std_list.i"
%include "std_string.i"
%include "std_list.i"
%include "std_string.i"
std::list<Info *> &statsList();
/* namespace Stats */ }
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
*/
* Authors: Nathan Binkert
*/
+%module(package="m5.internal") trace
%{
#include "base/trace.hh"
%{
#include "base/trace.hh"
extern void ignore(const char *expr);
extern bool enabled;
%}
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"
-%}