1/* 2 * Copyright (c) 2002-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; --- 42 unchanged lines hidden (view full) --- 51class ThreadContext; 52class ObjectFile; 53class PhysicalMemory; 54 55#if FULL_SYSTEM 56class Platform; 57class GDBListener; 58class RemoteGDB; |
59#endif 60 61class System : public SimObject 62{ 63 public: 64 PhysicalMemory *physmem; 65 PCEventQueue pcEventQueue; 66 --- 27 unchanged lines hidden (view full) --- 94 Addr kernelStart; 95 96 /** End of kernel code */ 97 Addr kernelEnd; 98 99 /** Entry point in the kernel to start at */ 100 Addr kernelEntry; 101 |
102#else 103 104 int page_ptr; 105 106 107#endif // FULL_SYSTEM 108 109 protected: --- 43 unchanged lines hidden (view full) --- 153 { 154 std::string name; 155 PhysicalMemory *physmem; 156 157#if FULL_SYSTEM 158 Tick boot_cpu_frequency; 159 std::string boot_osflags; 160 uint64_t init_param; |
161 162 std::string kernel_path; 163 std::string readfile; 164#endif 165 }; 166 167 protected: 168 Params *_params; --- 31 unchanged lines hidden (view full) --- 200 201 Addr new_page(); 202 203#endif // FULL_SYSTEM 204 205 int registerThreadContext(ThreadContext *tc, int tcIndex); 206 void replaceThreadContext(ThreadContext *tc, int tcIndex); 207 |
208 void serialize(std::ostream &os); 209 void unserialize(Checkpoint *cp, const std::string §ion); 210 211 public: 212 //////////////////////////////////////////// 213 // 214 // STATIC GLOBAL SYSTEM LIST 215 // 216 //////////////////////////////////////////// 217 218 static std::vector<System *> systemList; 219 static int numSystemsRunning; 220 221 static void printSystems(); 222 223 224}; 225 226#endif // __SYSTEM_HH__ |