diff options
author | Brad Beckmann <Brad.Beckmann@amd.com> | 2009-11-18 13:55:58 -0800 |
---|---|---|
committer | Brad Beckmann <Brad.Beckmann@amd.com> | 2009-11-18 13:55:58 -0800 |
commit | b5d2052fa0b7c62372e1b936f2654f700e831b68 (patch) | |
tree | b468b98d748b1b72f79cc3a326b02523aaedaf9c /src | |
parent | faf1d97f2447f0e3b9dce9fb06e9e87e496333a3 (diff) | |
download | gem5-b5d2052fa0b7c62372e1b936f2654f700e831b68.tar.xz |
m5: Fixed bug in atomic cpu destructor
Diffstat (limited to 'src')
-rw-r--r-- | src/cpu/simple/atomic.cc | 3 |
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 |