object.cc (13085:9a64693dabcc) | object.cc (13126:770f2c828e33) |
---|---|
1/* 2 * Copyright 2018 Google, Inc. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions are 6 * met: redistributions of source code must retain the above copyright 7 * notice, this list of conditions and the following disclaimer; 8 * redistributions in binary form must reproduce the above copyright --- 77 unchanged lines hidden (view full) --- 86 // We are a module in the process of being constructed. 87 n->finish(this); 88 } 89 90 if (p) { 91 // We're "within" a parent module, ie we're being created while its 92 // constructor or end_of_elaboration callback is running. 93 parent = p->obj()->_sc_obj; | 1/* 2 * Copyright 2018 Google, Inc. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions are 6 * met: redistributions of source code must retain the above copyright 7 * notice, this list of conditions and the following disclaimer; 8 * redistributions in binary form must reproduce the above copyright --- 77 unchanged lines hidden (view full) --- 86 // We are a module in the process of being constructed. 87 n->finish(this); 88 } 89 90 if (p) { 91 // We're "within" a parent module, ie we're being created while its 92 // constructor or end_of_elaboration callback is running. 93 parent = p->obj()->_sc_obj; |
94 addObject(&parent->_gem5_object->children, _sc_obj); | |
95 } else if (scheduler.current()) { 96 // Our parent is the currently running process. 97 parent = scheduler.current(); | 94 } else if (scheduler.current()) { 95 // Our parent is the currently running process. 96 parent = scheduler.current(); |
97 } 98 if (parent) { 99 addObject(&parent->_gem5_object->children, _sc_obj); |
|
98 } else { 99 // We're a top level object. 100 addObject(&topLevelObjects, _sc_obj); 101 } 102 103 addObject(&allObjects, _sc_obj); 104 105 _name = _basename; --- 157 unchanged lines hidden --- | 100 } else { 101 // We're a top level object. 102 addObject(&topLevelObjects, _sc_obj); 103 } 104 105 addObject(&allObjects, _sc_obj); 106 107 _name = _basename; --- 157 unchanged lines hidden --- |