From: Brad Beckmann Date: Wed, 18 Nov 2009 21:55:58 +0000 (-0800) Subject: m5: Fixed bug in atomic cpu destructor X-Git-Tag: stable_2012_02_02~1575^2~44 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b5d2052fa0b7c62372e1b936f2654f700e831b68;p=gem5.git m5: Fixed bug in atomic cpu destructor --- 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