system.cc (2689:dbf969c18a65) system.cc (2716:b9114064d77a)
1/*
2 * Copyright (c) 2003-2006 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;

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

127 numSystemsRunning++;
128}
129
130System::~System()
131{
132#if FULL_SYSTEM
133 delete kernelSymtab;
134 delete kernel;
1/*
2 * Copyright (c) 2003-2006 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;

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

127 numSystemsRunning++;
128}
129
130System::~System()
131{
132#if FULL_SYSTEM
133 delete kernelSymtab;
134 delete kernel;
135
136 delete kernelBinning;
137#else
138 panic("System::fixFuncEventAddr needs to be rewritten "
139 "to work with syscall emulation");
140#endif // FULL_SYSTEM}
141}
142
143#if FULL_SYSTEM
144

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

215{
216 Addr return_addr = page_ptr << LogVMPageSize;
217 ++page_ptr;
218 return return_addr;
219}
220#endif
221
222void
135#else
136 panic("System::fixFuncEventAddr needs to be rewritten "
137 "to work with syscall emulation");
138#endif // FULL_SYSTEM}
139}
140
141#if FULL_SYSTEM
142

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

213{
214 Addr return_addr = page_ptr << LogVMPageSize;
215 ++page_ptr;
216 return return_addr;
217}
218#endif
219
220void
223System::regStats()
224{
225#if FULL_SYSTEM
226 kernelBinning->regStats(name() + ".kern");
227#endif // FULL_SYSTEM
228}
229
230void
231System::serialize(ostream &os)
232{
233#if FULL_SYSTEM
221System::serialize(ostream &os)
222{
223#if FULL_SYSTEM
234 kernelBinning->serialize(os);
235
236 kernelSymtab->serialize("kernel_symtab", os);
237#endif // FULL_SYSTEM
238}
239
240
241void
242System::unserialize(Checkpoint *cp, const string &section)
243{
244#if FULL_SYSTEM
224 kernelSymtab->serialize("kernel_symtab", os);
225#endif // FULL_SYSTEM
226}
227
228
229void
230System::unserialize(Checkpoint *cp, const string &section)
231{
232#if FULL_SYSTEM
245 kernelBinning->unserialize(cp, section);
246
247 kernelSymtab->unserialize("kernel_symtab", cp, section);
248#endif // FULL_SYSTEM
249}
250
251void
252System::printSystems()
253{
254 vector<System *>::iterator i = systemList.begin();

--- 46 unchanged lines hidden ---
233 kernelSymtab->unserialize("kernel_symtab", cp, section);
234#endif // FULL_SYSTEM
235}
236
237void
238System::printSystems()
239{
240 vector<System *>::iterator i = systemList.begin();

--- 46 unchanged lines hidden ---