system.hh (7770:6286bb50127e) | system.hh (7897:d9e8b1fd1a9f) |
---|---|
1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan | 1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan |
3 * Copyright (c) 2011 Regents of the University of California |
|
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; 9 * redistributions in binary form must reproduce the above copyright 10 * notice, this list of conditions and the following disclaimer in the --- 12 unchanged lines hidden (view full) --- 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * 28 * Authors: Steve Reinhardt 29 * Lisa Hsu 30 * Nathan Binkert | 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 9 * notice, this list of conditions and the following disclaimer; 10 * redistributions in binary form must reproduce the above copyright 11 * notice, this list of conditions and the following disclaimer in the --- 12 unchanged lines hidden (view full) --- 24 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * 29 * Authors: Steve Reinhardt 30 * Lisa Hsu 31 * Nathan Binkert |
32 * Rick Strong |
|
31 */ 32 33#ifndef __SYSTEM_HH__ 34#define __SYSTEM_HH__ 35 36#include <string> 37#include <vector> 38 --- 200 unchanged lines hidden (view full) --- 239 240#endif // FULL_SYSTEM 241 242 int registerThreadContext(ThreadContext *tc, int assigned=-1); 243 void replaceThreadContext(ThreadContext *tc, int context_id); 244 245 void serialize(std::ostream &os); 246 void unserialize(Checkpoint *cp, const std::string §ion); | 33 */ 34 35#ifndef __SYSTEM_HH__ 36#define __SYSTEM_HH__ 37 38#include <string> 39#include <vector> 40 --- 200 unchanged lines hidden (view full) --- 241 242#endif // FULL_SYSTEM 243 244 int registerThreadContext(ThreadContext *tc, int assigned=-1); 245 void replaceThreadContext(ThreadContext *tc, int context_id); 246 247 void serialize(std::ostream &os); 248 void unserialize(Checkpoint *cp, const std::string §ion); |
249 virtual void resume(); |
|
247 248 public: | 250 251 public: |
252 Counter totalNumInsts; 253 EventQueue instEventQueue; 254 |
|
249 //////////////////////////////////////////// 250 // 251 // STATIC GLOBAL SYSTEM LIST 252 // 253 //////////////////////////////////////////// 254 255 static std::vector<System *> systemList; 256 static int numSystemsRunning; 257 258 static void printSystems(); 259 260 261}; 262 263#endif // __SYSTEM_HH__ | 255 //////////////////////////////////////////// 256 // 257 // STATIC GLOBAL SYSTEM LIST 258 // 259 //////////////////////////////////////////// 260 261 static std::vector<System *> systemList; 262 static int numSystemsRunning; 263 264 static void printSystems(); 265 266 267}; 268 269#endif // __SYSTEM_HH__ |