sim_object.cc (9253:e0d2a8e9f445) sim_object.cc (9254:f1b35c618252)
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

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

158}
159
160void
161SimObject::resume()
162{
163 state = Running;
164}
165
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

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

158}
159
160void
161SimObject::resume()
162{
163 state = Running;
164}
165
166void
167SimObject::switchOut()
168{
169 panic("Unimplemented!");
170}
171
172void
173SimObject::takeOverFrom(BaseCPU *cpu)
174{
175 panic("Unimplemented!");
176}
177
178
179SimObject *
180SimObject::find(const char *name)
181{
182 SimObjectList::const_iterator i = simObjectList.begin();
183 SimObjectList::const_iterator end = simObjectList.end();
184
185 for (; i != end; ++i) {
186 SimObject *obj = *i;
187 if (obj->name() == name)
188 return obj;
189 }
190
191 return NULL;
192}
166SimObject *
167SimObject::find(const char *name)
168{
169 SimObjectList::const_iterator i = simObjectList.begin();
170 SimObjectList::const_iterator end = simObjectList.end();
171
172 for (; i != end; ++i) {
173 SimObject *obj = *i;
174 if (obj->name() == name)
175 return obj;
176 }
177
178 return NULL;
179}