system.cc (8666:97d873b8b13e) system.cc (8703:f2ac0bca75df)
1/*
1/*
2 * Copyright (c) 2011 ARM Limited
2 * Copyright (c) 2011-2012 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software
9 * licensed hereunder. You may use the software subject to the license
10 * terms below provided that you ensure that this notice is replicated

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

73using namespace std;
74using namespace TheISA;
75
76vector<System *> System::systemList;
77
78int System::numSystemsRunning = 0;
79
80System::System(Params *p)
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software
9 * licensed hereunder. You may use the software subject to the license
10 * terms below provided that you ensure that this notice is replicated

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

73using namespace std;
74using namespace TheISA;
75
76vector<System *> System::systemList;
77
78int System::numSystemsRunning = 0;
79
80System::System(Params *p)
81 : SimObject(p), physmem(p->physmem), _numContexts(0),
81 : MemObject(p), _systemPort("system_port", this),
82 physmem(p->physmem),
83 _numContexts(0),
82#if FULL_SYSTEM
83 init_param(p->init_param),
84 loadAddrMask(p->load_addr_mask),
85#else
86 pagePtr(0),
87 nextPID(0),
88#endif
89 memoryMode(p->mem_mode),

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

185 panic("System::fixFuncEventAddr needs to be rewritten "
186 "to work with syscall emulation");
187#endif // FULL_SYSTEM}
188
189 for (uint32_t j = 0; j < numWorkIds; j++)
190 delete workItemStats[j];
191}
192
84#if FULL_SYSTEM
85 init_param(p->init_param),
86 loadAddrMask(p->load_addr_mask),
87#else
88 pagePtr(0),
89 nextPID(0),
90#endif
91 memoryMode(p->mem_mode),

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

187 panic("System::fixFuncEventAddr needs to be rewritten "
188 "to work with syscall emulation");
189#endif // FULL_SYSTEM}
190
191 for (uint32_t j = 0; j < numWorkIds; j++)
192 delete workItemStats[j];
193}
194
195Port*
196System::getPort(const std::string &if_name, int idx)
197{
198 // no need to distinguish at the moment (besides checking)
199 return &_systemPort;
200}
201
193void
194System::setMemoryMode(Enums::MemoryMode mode)
195{
196 assert(getState() == Drained);
197 memoryMode = mode;
198}
199
200bool System::breakpoint()

--- 218 unchanged lines hidden ---
202void
203System::setMemoryMode(Enums::MemoryMode mode)
204{
205 assert(getState() == Drained);
206 memoryMode = mode;
207}
208
209bool System::breakpoint()

--- 218 unchanged lines hidden ---