From 950e431d8766a8cf3b897965c1726e6d2576c6dc Mon Sep 17 00:00:00 2001 From: Joe Gross Date: Wed, 16 Sep 2015 13:10:42 -0400 Subject: ruby: fix message buffer init order The recent changes to make MessageBuffers SimObjects required them to be initialized in a particular order, which could break some protocols. Fix this by calling initNetQueues on the external nodes of each external link in the constructor of Network. This patch also refactors the duplicated code for checking network allocation and setting net queues (which are called by initNetQueues) from the simple and garnet networks to be in Network. --- src/mem/slicc/symbols/StateMachine.py | 1 - 1 file changed, 1 deletion(-) (limited to 'src/mem/slicc/symbols') diff --git a/src/mem/slicc/symbols/StateMachine.py b/src/mem/slicc/symbols/StateMachine.py index 015d902b4..480a6445d 100644 --- a/src/mem/slicc/symbols/StateMachine.py +++ b/src/mem/slicc/symbols/StateMachine.py @@ -592,7 +592,6 @@ void $c_ident::init() { // initialize objects - initNetQueues(); ''') code.indent() -- cgit v1.2.3