projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
016593f
)
EventManager: Remove test for NULL pointer in constructor
author
Andreas Hansson
<andreas.hansson@arm.com>
Tue, 21 Aug 2012 09:49:18 +0000
(
05:49
-0400)
committer
Andreas Hansson
<andreas.hansson@arm.com>
Tue, 21 Aug 2012 09:49:18 +0000
(
05:49
-0400)
This patch tidies up the EventManager constructor and prunes a corner
case where the EventManager would initialise its eventq pointer to
NULL. This would cause segmentation faults on actual use and should
never happen.
src/sim/eventq.hh
patch
|
blob
|
history
diff --git
a/src/sim/eventq.hh
b/src/sim/eventq.hh
index c4690288990e24d90955f8c9dde7aab27dd62cda..5362dcf34a3055edea6cf03d082b72dc44b1efe7 100644
(file)
--- a/
src/sim/eventq.hh
+++ b/
src/sim/eventq.hh
@@
-432,7
+432,7
@@
class EventManager
public:
EventManager(EventManager &em) : eventq(em.eventq) {}
- EventManager(EventManager *em) : eventq(em
? em->eventq : NULL
) {}
+ EventManager(EventManager *em) : eventq(em
->eventq
) {}
EventManager(EventQueue *eq) : eventq(eq) {}
EventQueue *