Get rid of the unused get(Data|Inst)Asid and (inst|data)Asid functions.

This commit is contained in:
Gabe Black
2009-07-08 23:02:22 -07:00
parent 3d39b62132
commit c9a27d85b9
22 changed files with 19 additions and 148 deletions

View File

@@ -207,12 +207,12 @@ InOrderCPU::InOrderCPU(Params *params)
DPRINTF(InOrderCPU, "Workload[%i] process is %#x\n",
tid, this->thread[tid]);
this->thread[tid] =
new Thread(this, tid, params->workload[tid], tid);
new Thread(this, tid, params->workload[tid]);
} else {
//Allocate Empty thread so M5 can use later
//when scheduling threads to CPU
Process* dummy_proc = params->workload[0];
this->thread[tid] = new Thread(this, tid, dummy_proc, tid);
this->thread[tid] = new Thread(this, tid, dummy_proc);
}
// Setup the TC that will serve as the interface to the threads/CPU.

View File

@@ -395,14 +395,6 @@ class InOrderCPU : public BaseCPU
return cpuEventNum++;
}
/** Get instruction asid. */
int getInstAsid(ThreadID tid)
{ return thread[tid]->getInstAsid(); }
/** Get data asid. */
int getDataAsid(ThreadID tid)
{ return thread[tid]->getDataAsid(); }
/** Register file accessors */
uint64_t readIntReg(int reg_idx, ThreadID tid);

View File

@@ -68,9 +68,9 @@ class InOrderThreadState : public ThreadState {
InOrderThreadState(InOrderCPU *_cpu, ThreadID _thread_num,
Process *_process, int _asid)
Process *_process)
: ThreadState(reinterpret_cast<BaseCPU*>(_cpu), 0/*_thread_num*/,
_process, 0/*_asid*/),
_process),
cpu(_cpu), inSyscall(0), trapPending(0)
{ }