m5: Fixed bug in atomic cpu destructor

This commit is contained in:
Brad Beckmann 2009-11-18 13:55:58 -08:00
parent faf1d97f24
commit b5d2052fa0

View file

@ -171,6 +171,9 @@ AtomicSimpleCPU::AtomicSimpleCPU(AtomicSimpleCPUParams *p)
AtomicSimpleCPU::~AtomicSimpleCPU()
{
if (tickEvent.scheduled()) {
deschedule(tickEvent);
}
}
void