system.hh (2680:246e7104f744) system.hh (2716:b9114064d77a)
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;
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;
59namespace Kernel { class Binning; }
60#endif
61
62class System : public SimObject
63{
64 public:
65 PhysicalMemory *physmem;
66 PCEventQueue pcEventQueue;
67

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

95 Addr kernelStart;
96
97 /** End of kernel code */
98 Addr kernelEnd;
99
100 /** Entry point in the kernel to start at */
101 Addr kernelEntry;
102
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
103 Kernel::Binning *kernelBinning;
104
105#else
106
107 int page_ptr;
108
109
110#endif // FULL_SYSTEM
111
112 protected:

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

156 {
157 std::string name;
158 PhysicalMemory *physmem;
159
160#if FULL_SYSTEM
161 Tick boot_cpu_frequency;
162 std::string boot_osflags;
163 uint64_t init_param;
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;
164 bool bin;
165 std::vector<std::string> binned_fns;
166 bool bin_int;
167
168 std::string kernel_path;
169 std::string readfile;
170#endif
171 };
172
173 protected:
174 Params *_params;

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

206
207 Addr new_page();
208
209#endif // FULL_SYSTEM
210
211 int registerThreadContext(ThreadContext *tc, int tcIndex);
212 void replaceThreadContext(ThreadContext *tc, int tcIndex);
213
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
214 void regStats();
215 void serialize(std::ostream &os);
216 void unserialize(Checkpoint *cp, const std::string &section);
217
218 public:
219 ////////////////////////////////////////////
220 //
221 // STATIC GLOBAL SYSTEM LIST
222 //
223 ////////////////////////////////////////////
224
225 static std::vector<System *> systemList;
226 static int numSystemsRunning;
227
228 static void printSystems();
229
230
231};
232
233#endif // __SYSTEM_HH__
208 void serialize(std::ostream &os);
209 void unserialize(Checkpoint *cp, const std::string &section);
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__