summaryrefslogtreecommitdiff
path: root/src/python
diff options
context:
space:
mode:
authorClint Smullen <cws3k@cs.virginia.edu>2008-10-27 19:46:01 -0400
committerClint Smullen <cws3k@cs.virginia.edu>2008-10-27 19:46:01 -0400
commitcfa32d8de737847f04bfa6e5e89375c870c3869b (patch)
tree43cbdeb073b8b256d9e2a6c201ec07747528d7ba /src/python
parentaadae0b06e8a3ff1dc39c7d2dbacd488488428fc (diff)
downloadgem5-cfa32d8de737847f04bfa6e5e89375c870c3869b.tar.xz
Checkpointing: createCountedDrain function, it was only returning an Event, which does not expose a setCount method to Python.
Signed-off By: Ali Saidi
Diffstat (limited to 'src/python')
-rw-r--r--src/python/swig/pyevent.cc2
-rw-r--r--src/python/swig/pyevent.hh2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/python/swig/pyevent.cc b/src/python/swig/pyevent.cc
index bf993bc3e..a201e0185 100644
--- a/src/python/swig/pyevent.cc
+++ b/src/python/swig/pyevent.cc
@@ -67,7 +67,7 @@ PythonEvent::process()
}
}
-Event *
+CountedDrainEvent *
createCountedDrain()
{
return new CountedDrainEvent();
diff --git a/src/python/swig/pyevent.hh b/src/python/swig/pyevent.hh
index c6d6ac993..22b562de1 100644
--- a/src/python/swig/pyevent.hh
+++ b/src/python/swig/pyevent.hh
@@ -46,7 +46,7 @@ class PythonEvent : public Event
virtual void process();
};
-Event *createCountedDrain();
+CountedDrainEvent *createCountedDrain();
void cleanupCountedDrain(Event *counted_drain);
#endif // __PYTHON_SWIG_PYEVENT_HH__