sim_object.cc (5034:6186ef720dd4) sim_object.cc (5314:e902f12a3af1)
1/*
2 * Copyright (c) 2001-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 250 unchanged lines hidden (view full) ---

259 panic("Unimplemented!");
260}
261
262void
263SimObject::takeOverFrom(BaseCPU *cpu)
264{
265 panic("Unimplemented!");
266}
1/*
2 * Copyright (c) 2001-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 250 unchanged lines hidden (view full) ---

259 panic("Unimplemented!");
260}
261
262void
263SimObject::takeOverFrom(BaseCPU *cpu)
264{
265 panic("Unimplemented!");
266}
267
268
269SimObject *
270SimObject::find(const char *name)
271{
272 SimObjectList::const_iterator i = simObjectList.begin();
273 SimObjectList::const_iterator end = simObjectList.end();
274
275 for (; i != end; ++i) {
276 SimObject *obj = *i;
277 if (obj->name() == name)
278 return obj;
279 }
280
281 return NULL;
282}