m5: Fixed bug in atomic cpu destructor
This commit is contained in:
parent
faf1d97f24
commit
b5d2052fa0
|
@ -171,6 +171,9 @@ AtomicSimpleCPU::AtomicSimpleCPU(AtomicSimpleCPUParams *p)
|
|||
|
||||
AtomicSimpleCPU::~AtomicSimpleCPU()
|
||||
{
|
||||
if (tickEvent.scheduled()) {
|
||||
deschedule(tickEvent);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue