Deleted Added
sdiff udiff text old ( 7445:dfd04ffc1773 ) new ( 7580:6f77f379a594 )
full compact
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;

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

61int System::numSystemsRunning = 0;
62
63System::System(Params *p)
64 : SimObject(p), physmem(p->physmem), _numContexts(0),
65#if FULL_SYSTEM
66 init_param(p->init_param),
67 functionalPort(p->name + "-fport"),
68 virtPort(p->name + "-vport"),
69#else
70 page_ptr(0),
71 next_PID(0),
72#endif
73 memoryMode(p->mem_mode), _params(p)
74{
75 // add self to global system list
76 systemList.push_back(this);

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

104 // Load kernel code
105 kernel = createObjectFile(params()->kernel);
106 inform("kernel located at: %s", params()->kernel);
107
108 if (kernel == NULL)
109 fatal("Could not load kernel file %s", params()->kernel);
110
111 // Load program sections into memory
112 kernel->loadSections(&functionalPort, LoadAddrMask);
113
114 // setup entry points
115 kernelStart = kernel->textBase();
116 kernelEnd = kernel->bssBase() + kernel->bssSize();
117 kernelEntry = kernel->entryPoint();
118
119 // load symbols
120 if (!kernel->loadGlobalSymbols(kernelSymtab))

--- 206 unchanged lines hidden ---