tlb: Don't separate the TLB classes into an instruction TLB and a data TLB
This commit is contained in:
@@ -103,8 +103,8 @@ class InOrderCPU : public BaseCPU
|
||||
|
||||
Params *cpu_params;
|
||||
|
||||
TheISA::ITB * itb;
|
||||
TheISA::DTB * dtb;
|
||||
TheISA::TLB * itb;
|
||||
TheISA::TLB * dtb;
|
||||
|
||||
public:
|
||||
enum Status {
|
||||
|
||||
@@ -99,7 +99,7 @@ TLBUnit::execute(int slot_idx)
|
||||
{
|
||||
tlb_req->fault =
|
||||
this->cpu->itb->translateAtomic(tlb_req->memReq,
|
||||
cpu->thread[tid]->getTC());
|
||||
cpu->thread[tid]->getTC(), false, true);
|
||||
|
||||
if (tlb_req->fault != NoFault) {
|
||||
DPRINTF(InOrderTLB, "[tid:%i]: %s encountered while translating "
|
||||
|
||||
@@ -65,10 +65,10 @@ class InOrderThreadContext : public ThreadContext
|
||||
|
||||
|
||||
/** Returns a pointer to the ITB. */
|
||||
TheISA::ITB *getITBPtr() { return cpu->itb; }
|
||||
TheISA::TLB *getITBPtr() { return cpu->itb; }
|
||||
|
||||
/** Returns a pointer to the DTB. */
|
||||
TheISA::DTB *getDTBPtr() { return cpu->dtb; }
|
||||
TheISA::TLB *getDTBPtr() { return cpu->dtb; }
|
||||
|
||||
System *getSystemPtr() { return cpu->system; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user