SE/FS: Remove FULL_SYSTEM from swig.

This commit is contained in:
Gabe Black 2011-11-07 01:06:54 -08:00
parent 8b4a3f4070
commit 812277ac6a

View file

@ -34,16 +34,13 @@
#include "base/inifile.hh" #include "base/inifile.hh"
#include "base/output.hh" #include "base/output.hh"
#include "config/full_system.hh"
#include "mem/mem_object.hh"
#include "mem/port.hh"
#include "sim/sim_object.hh"
#if FULL_SYSTEM
#include "dev/etherdevice.hh" #include "dev/etherdevice.hh"
#include "dev/etherint.hh" #include "dev/etherint.hh"
#include "dev/etherobject.hh" #include "dev/etherobject.hh"
#endif #include "mem/mem_object.hh"
#include "mem/port.hh"
#include "sim/full_system.hh"
#include "sim/sim_object.hh"
using namespace std; using namespace std;
@ -65,8 +62,6 @@ lookupPort(SimObject *so, const std::string &name, int i)
return p; return p;
} }
#if FULL_SYSTEM
EtherInt * EtherInt *
lookupEthPort(SimObject *so, const std::string &name, int i) lookupEthPort(SimObject *so, const std::string &name, int i)
{ {
@ -84,7 +79,6 @@ lookupEthPort(SimObject *so, const std::string &name, int i)
p = ed->getEthPort(name, i); p = ed->getEthPort(name, i);
return p; return p;
} }
#endif
/** /**
* Connect the described MemObject ports. Called from Python via SWIG. * Connect the described MemObject ports. Called from Python via SWIG.
@ -98,7 +92,7 @@ connectPorts(SimObject *o1, const std::string &name1, int i1,
mo1 = dynamic_cast<MemObject*>(o1); mo1 = dynamic_cast<MemObject*>(o1);
mo2 = dynamic_cast<MemObject*>(o2); mo2 = dynamic_cast<MemObject*>(o2);
#if FULL_SYSTEM if (FullSystem) {
EtherObject *eo1, *eo2; EtherObject *eo1, *eo2;
EtherDevice *ed1, *ed2; EtherDevice *ed1, *ed2;
eo1 = dynamic_cast<EtherObject*>(o1); eo1 = dynamic_cast<EtherObject*>(o1);
@ -119,7 +113,7 @@ connectPorts(SimObject *o1, const std::string &name1, int i1,
return 1; return 1;
} }
} }
#endif }
Port *p1 = lookupPort(o1, name1, i1); Port *p1 = lookupPort(o1, name1, i1);
Port *p2 = lookupPort(o2, name2, i2); Port *p2 = lookupPort(o2, name2, i2);