From: Clint Smullen Date: Mon, 27 Oct 2008 23:46:01 +0000 (-0400) Subject: Checkpointing: createCountedDrain function, it was only returning an Event, which... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cfa32d8de737847f04bfa6e5e89375c870c3869b;p=gem5.git Checkpointing: createCountedDrain function, it was only returning an Event, which does not expose a setCount method to Python. Signed-off By: Ali Saidi --- 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__