swig: move all swigged objects into m5.internal.swig package
Review Request #878 - Created Sept. 24, 2011 and updated
| Information | |
|---|---|
| Steve Reinhardt | |
| gem5 | |
| Reviewers | |
| Default | |
| ali, gblack, nate, stever | |
swig: move all swigged objects into m5.internal.swig package SWIG-generated packages for params, enums, wrapped C++ SimObjects, etc. were being generated directly into m5.internal, with some funky code to import some of the declarations into m5.internal.params. Moved all generated packages under m5.internal.swig and imported things directly from there where necessary. Cleaned up some exposed loose ends. Turns out m5.internal.params doesn't really seem to be needed, so it's gone now. Also renamed param_Foo packages that wrap both the C++ version of Foo and FooParams to just Foo; now that they're under a separate subpackage there's no ambiguity with the primary Python objects, and no need to have the param_ prefix to support the funky importing into internal.params.
Posted (Sept. 24, 2011, 10:33 a.m.)
I don't have anything against this change, but I do have a question. How does this affect simulation scripts? Do they need to import things different, declare things differently, ...?
Posted (Sept. 25, 2011, 2:21 a.m.)
Make sure that you don't run afoul of the problem in changeset c6e283904437. We used to have something like this, but I undid it because it broke older versions of swig. You have a different approach here, but I'd hate to have you reintroduce a bug.
Posted (Sept. 25, 2011, 2:25 a.m.)
-
src/python/m5/params.py (Diff revision 1) -
I'm pretty sure that this will break older versions of swig. See changeset c6e283904437
-
src/python/m5/params.py (Diff revision 1) -
Yeah, this too.
-
src/python/swig/inet.i (Diff revision 1) -
We don't build this as a module.
-
src/python/swig/time.i (Diff revision 1) -
We don't build this as a module either. I guess it's future proofing though.
