inorder-alpha-port: initial inorder support of ALPHA
Edit AlphaISA to support the inorder model. Mostly alternate constructor functions and also a few skeleton multithreaded support functions * * * Remove namespace from header file. Causes compiler issues that are hard to find * * * Separate the TLB from the CPU and allow it to live in the TLBUnit resource. Give CPU accessor functions for access and also bind at construction time * * * Expose memory access size and flags through instruction object (temporarily memAccSize and memFlags to get TLB stuff working.)
This commit is contained in:
@@ -57,7 +57,7 @@ class InOrderThreadContext : public ThreadContext
|
||||
public:
|
||||
InOrderThreadContext() { }
|
||||
|
||||
/** Pointer to the CPU. */
|
||||
/** Pointer to the CPU. */
|
||||
InOrderCPU *cpu;
|
||||
|
||||
/** Pointer to the thread state that this TC corrseponds to. */
|
||||
@@ -65,10 +65,12 @@ class InOrderThreadContext : public ThreadContext
|
||||
|
||||
|
||||
/** Returns a pointer to the ITB. */
|
||||
TheISA::TLB *getITBPtr() { return cpu->itb; }
|
||||
/** @TODO: PERF: Should we bind this to a pointer in constructor? */
|
||||
TheISA::TLB *getITBPtr() { return cpu->getITBPtr(); }
|
||||
|
||||
/** Returns a pointer to the DTB. */
|
||||
TheISA::TLB *getDTBPtr() { return cpu->dtb; }
|
||||
/** @TODO: PERF: Should we bind this to a pointer in constructor? */
|
||||
TheISA::TLB *getDTBPtr() { return cpu->getDTBPtr(); }
|
||||
|
||||
System *getSystemPtr() { return cpu->system; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user