1/* 2 * Copyright (c) 2001-2005 The Regents of The University of Michigan 3 * Copyright (c) 2010 Advanced Micro Devices, Inc. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 169 unchanged lines hidden (view full) --- 178{ 179 SimObject::debugObjectBreak(string(objs)); 180} 181#endif 182 183unsigned int 184SimObject::drain(DrainManager *drain_manager) 185{ |
186 setDrainState(DrainState::Drained); |
187 return 0; 188} 189 190 191SimObject * 192SimObject::find(const char *name) 193{ 194 SimObjectList::const_iterator i = simObjectList.begin(); 195 SimObjectList::const_iterator end = simObjectList.end(); 196 197 for (; i != end; ++i) { 198 SimObject *obj = *i; 199 if (obj->name() == name) 200 return obj; 201 } 202 203 return NULL; 204} |