summaryrefslogtreecommitdiff
path: root/src/sim
diff options
context:
space:
mode:
authorSteve Reinhardt <steve.reinhardt@amd.com>2011-10-20 13:08:49 -0700
committerSteve Reinhardt <steve.reinhardt@amd.com>2011-10-20 13:08:49 -0700
commit45d14e02c4eef63c9d0db4e9155bf5fe93673c10 (patch)
tree606567661a75548626e47b1b7b525f542985ed69 /src/sim
parentf2bfef90c4441ea77025ebb3de398f9d66bbffdf (diff)
downloadgem5-45d14e02c4eef63c9d0db4e9155bf5fe93673c10.tar.xz
scons/swig: refactor some of the scons/SWIG code
- Move the random bits of SWIG code generation out of src/SConscript file and into methods on the objects being wrapped. - Cleaned up some variable naming and added some comments to make the process a little clearer. - Did a little generated file/module renaming: - vptype_Foo now Foo_vector - init_Foo is now Foo_init This makes it easier to see all the Foo-related files in a sorted directory listing. - Made cxx_predecls and swig_predecls normal SimObject classmethods. - Got rid of swig_objdecls hook, even though this breaks the System objects get/setMemoryMode method exports. Will be fixing this in a future changeset.
Diffstat (limited to 'src/sim')
-rw-r--r--src/sim/System.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sim/System.py b/src/sim/System.py
index a6897d834..1a69db95f 100644
--- a/src/sim/System.py
+++ b/src/sim/System.py
@@ -40,6 +40,8 @@ class MemoryMode(Enum): vals = ['invalid', 'atomic', 'timing']
class System(SimObject):
type = 'System'
+ # This method is temporarily obsolete. Its functionality will be
+ # restored in a future changeset.
@classmethod
def swig_objdecls(cls, code):
code('%include "python/swig/system.i"')