base.cc (9377:6f294e7a93d1) base.cc (9384:877293183bdf)
1/*
2 * Copyright (c) 2010-2011 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

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

82
83using namespace std;
84using namespace TheISA;
85
86BaseSimpleCPU::BaseSimpleCPU(BaseSimpleCPUParams *p)
87 : BaseCPU(p), traceData(NULL), thread(NULL)
88{
89 if (FullSystem)
1/*
2 * Copyright (c) 2010-2011 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

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

82
83using namespace std;
84using namespace TheISA;
85
86BaseSimpleCPU::BaseSimpleCPU(BaseSimpleCPUParams *p)
87 : BaseCPU(p), traceData(NULL), thread(NULL)
88{
89 if (FullSystem)
90 thread = new SimpleThread(this, 0, p->system, p->itb, p->dtb);
90 thread = new SimpleThread(this, 0, p->system, p->itb, p->dtb,
91 p->isa[0]);
91 else
92 thread = new SimpleThread(this, /* thread_num */ 0, p->system,
92 else
93 thread = new SimpleThread(this, /* thread_num */ 0, p->system,
93 p->workload[0], p->itb, p->dtb);
94 p->workload[0], p->itb, p->dtb, p->isa[0]);
94
95 thread->setStatus(ThreadContext::Halted);
96
97 tc = thread->getTC();
98
99 if (p->checker) {
100 BaseCPU *temp_checker = p->checker;
101 checker = dynamic_cast<CheckerCPU *>(temp_checker);

--- 450 unchanged lines hidden ---
95
96 thread->setStatus(ThreadContext::Halted);
97
98 tc = thread->getTC();
99
100 if (p->checker) {
101 BaseCPU *temp_checker = p->checker;
102 checker = dynamic_cast<CheckerCPU *>(temp_checker);

--- 450 unchanged lines hidden ---