inorder-debug: print out workload
This commit is contained in:
parent
1290a5f340
commit
f09f84da6e
1 changed files with 5 additions and 5 deletions
|
@ -224,19 +224,19 @@ InOrderCPU::InOrderCPU(Params *params)
|
||||||
for (ThreadID tid = 0; tid < numThreads; ++tid) {
|
for (ThreadID tid = 0; tid < numThreads; ++tid) {
|
||||||
#if FULL_SYSTEM
|
#if FULL_SYSTEM
|
||||||
// SMT is not supported in FS mode yet.
|
// SMT is not supported in FS mode yet.
|
||||||
assert(this->numThreads == 1);
|
assert(numThreads == 1);
|
||||||
this->thread[tid] = new Thread(this, 0);
|
thread[tid] = new Thread(this, 0);
|
||||||
#else
|
#else
|
||||||
if (tid < (ThreadID)params->workload.size()) {
|
if (tid < (ThreadID)params->workload.size()) {
|
||||||
DPRINTF(InOrderCPU, "Workload[%i] process is %#x\n",
|
DPRINTF(InOrderCPU, "Workload[%i] process is %#x\n",
|
||||||
tid, this->thread[tid]);
|
tid, params->workload[tid]->prog_fname);
|
||||||
this->thread[tid] =
|
thread[tid] =
|
||||||
new Thread(this, tid, params->workload[tid]);
|
new Thread(this, tid, params->workload[tid]);
|
||||||
} else {
|
} else {
|
||||||
//Allocate Empty thread so M5 can use later
|
//Allocate Empty thread so M5 can use later
|
||||||
//when scheduling threads to CPU
|
//when scheduling threads to CPU
|
||||||
Process* dummy_proc = params->workload[0];
|
Process* dummy_proc = params->workload[0];
|
||||||
this->thread[tid] = new Thread(this, tid, dummy_proc);
|
thread[tid] = new Thread(this, tid, dummy_proc);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue