summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrad Beckmann <Brad.Beckmann@amd.com>2009-11-18 13:55:58 -0800
committerBrad Beckmann <Brad.Beckmann@amd.com>2009-11-18 13:55:58 -0800
commitb5d2052fa0b7c62372e1b936f2654f700e831b68 (patch)
treeb468b98d748b1b72f79cc3a326b02523aaedaf9c /src
parentfaf1d97f2447f0e3b9dce9fb06e9e87e496333a3 (diff)
downloadgem5-b5d2052fa0b7c62372e1b936f2654f700e831b68.tar.xz
m5: Fixed bug in atomic cpu destructor
Diffstat (limited to 'src')
-rw-r--r--src/cpu/simple/atomic.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cpu/simple/atomic.cc b/src/cpu/simple/atomic.cc
index c092b5b1f..05b4ca3e2 100644
--- a/src/cpu/simple/atomic.cc
+++ b/src/cpu/simple/atomic.cc
@@ -171,6 +171,9 @@ AtomicSimpleCPU::AtomicSimpleCPU(AtomicSimpleCPUParams *p)
AtomicSimpleCPU::~AtomicSimpleCPU()
{
+ if (tickEvent.scheduled()) {
+ deschedule(tickEvent);
+ }
}
void