-----Original Message-----
From: [email protected] [mailto:[email protected]] 
Sent: Monday, November 09, 2009 10:32 AM
To: Beckmann, Brad
Subject: [PATCH 16 of 31] m5: Fixed bug in atomic cpu destructor

# HG changeset patch
# User Brad Beckmann <[email protected]>
# Date 1257791383 28800
# Node ID 948a0ecb5be01d7ea98f367861e6345de3d07a11
# Parent  53c75ffb387ae6798f0b0db85b33995a6faaaabc
m5: Fixed bug in atomic cpu destructor

diff -r 53c75ffb387a -r 948a0ecb5be0 src/cpu/simple/atomic.cc
--- a/src/cpu/simple/atomic.cc  Mon Nov 09 10:29:43 2009 -0800
+++ b/src/cpu/simple/atomic.cc  Mon Nov 09 10:29:43 2009 -0800
@@ -171,6 +171,9 @@
 
 AtomicSimpleCPU::~AtomicSimpleCPU()
 {
+    if (tickEvent.scheduled()) {
+        deschedule(tickEvent);
+    }
 }
 
 void

_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to