diff options
Diffstat (limited to 'src/python')
-rw-r--r-- | src/python/m5/params.py | 1 | ||||
-rw-r--r-- | src/python/swig/pyobject.cc | 4 |
2 files changed, 1 insertions, 4 deletions
diff --git a/src/python/m5/params.py b/src/python/m5/params.py index 4575e677f..ee3678dc9 100644 --- a/src/python/m5/params.py +++ b/src/python/m5/params.py @@ -164,6 +164,7 @@ class ParamDesc(object): return self.ptype(value) def cxx_predecls(self, code): + code('#include <cstddef>') self.ptype.cxx_predecls(code) def swig_predecls(self, code): diff --git a/src/python/swig/pyobject.cc b/src/python/swig/pyobject.cc index 7847a6f3a..c8555cd31 100644 --- a/src/python/swig/pyobject.cc +++ b/src/python/swig/pyobject.cc @@ -94,10 +94,6 @@ int connectPorts(SimObject *o1, const std::string &name1, int i1, SimObject *o2, const std::string &name2, int i2) { - MemObject *mo1, *mo2; - mo1 = dynamic_cast<MemObject*>(o1); - mo2 = dynamic_cast<MemObject*>(o2); - #if FULL_SYSTEM EtherObject *eo1, *eo2; EtherDevice *ed1, *ed2; |