system.cc (13883:f44e21d3aaa7) system.cc (13892:0182a0601f66)
1/*
2 * Copyright (c) 2011-2014,2017-2018 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

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

84using namespace std;
85using namespace TheISA;
86
87vector<System *> System::systemList;
88
89int System::numSystemsRunning = 0;
90
91System::System(Params *p)
1/*
2 * Copyright (c) 2011-2014,2017-2018 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

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

84using namespace std;
85using namespace TheISA;
86
87vector<System *> System::systemList;
88
89int System::numSystemsRunning = 0;
90
91System::System(Params *p)
92 : MemObject(p), _systemPort("system_port", this),
92 : SimObject(p), _systemPort("system_port", this),
93 multiThread(p->multi_thread),
94 pagePtr(0),
95 init_param(p->init_param),
96 physProxy(_systemPort, p->cache_line_size),
97 kernelSymtab(nullptr),
98 kernel(nullptr),
99 loadAddrMask(p->load_addr_mask),
100 loadAddrOffset(p->load_offset),

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

439
440 // also unserialize the memories in the system
441 physmem.unserializeSection(cp, "physmem");
442}
443
444void
445System::regStats()
446{
93 multiThread(p->multi_thread),
94 pagePtr(0),
95 init_param(p->init_param),
96 physProxy(_systemPort, p->cache_line_size),
97 kernelSymtab(nullptr),
98 kernel(nullptr),
99 loadAddrMask(p->load_addr_mask),
100 loadAddrOffset(p->load_offset),

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

439
440 // also unserialize the memories in the system
441 physmem.unserializeSection(cp, "physmem");
442}
443
444void
445System::regStats()
446{
447 MemObject::regStats();
447 SimObject::regStats();
448
449 for (uint32_t j = 0; j < numWorkIds ; j++) {
450 workItemStats[j] = new Stats::Histogram();
451 stringstream namestr;
452 ccprintf(namestr, "work_item_type%d", j);
453 workItemStats[j]->init(20)
454 .name(name() + "." + namestr.str())
455 .desc("Run time stat for" + namestr.str())

--- 159 unchanged lines hidden ---
448
449 for (uint32_t j = 0; j < numWorkIds ; j++) {
450 workItemStats[j] = new Stats::Histogram();
451 stringstream namestr;
452 ccprintf(namestr, "work_item_type%d", j);
453 workItemStats[j]->init(20)
454 .name(name() + "." + namestr.str())
455 .desc("Run time stat for" + namestr.str())

--- 159 unchanged lines hidden ---