changeset db802ee94eb6 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=db802ee94eb6
description:
        m5: Fixed bug in atomic cpu destructor

diffstat:

1 file changed, 3 insertions(+)
src/cpu/simple/atomic.cc |    3 +++

diffs (13 lines):

diff -r 554d84a850d6 -r db802ee94eb6 src/cpu/simple/atomic.cc
--- a/src/cpu/simple/atomic.cc  Wed Nov 18 13:55:58 2009 -0800
+++ b/src/cpu/simple/atomic.cc  Wed Nov 18 13:55:58 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