summaryrefslogtreecommitdiff
path: root/src/dev/copy_engine.hh
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2009-01-25 20:26:53 -0800
committerGabe Black <gblack@eecs.umich.edu>2009-01-25 20:26:53 -0800
commit3f9e2350a1c909f141c09bb409a381957853678c (patch)
treef850e80c9173203b415eed47d5d6c6ead5713758 /src/dev/copy_engine.hh
parent64ed39f61b89675237e145ed4a81b49f353921ed (diff)
downloadgem5-3f9e2350a1c909f141c09bb409a381957853678c.tar.xz
Devices: Make the destructor virtual on the CopyEnginChannel object.
This fixes a compile warning which becomes an error.
Diffstat (limited to 'src/dev/copy_engine.hh')
-rw-r--r--src/dev/copy_engine.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dev/copy_engine.hh b/src/dev/copy_engine.hh
index 0224261d9..475c0a5bf 100644
--- a/src/dev/copy_engine.hh
+++ b/src/dev/copy_engine.hh
@@ -81,7 +81,7 @@ class CopyEngine : public PciDev
Event *drainEvent;
public:
CopyEngineChannel(CopyEngine *_ce, int cid);
- ~CopyEngineChannel();
+ virtual ~CopyEngineChannel();
void init();
std::string name() { assert(ce); return ce->name() + csprintf("-chan%d", channelId); }