Compilation fixes
--HG-- extra : convert_revision : 974e91a960251a35d5ebb76c7e6c7ac330339896
This commit is contained in:
parent
0f8fd5fd68
commit
97cdd5198b
4 changed files with 24 additions and 5 deletions
|
@ -128,6 +128,24 @@ class SparcO3CPU : public FullO3CPU<Impl>
|
|||
*/
|
||||
void squashFromTC(unsigned tid);
|
||||
|
||||
#if FULL_SYSTEM
|
||||
/** Posts an interrupt. */
|
||||
void post_interrupt(int int_num, int index);
|
||||
/** HW return from error interrupt. */
|
||||
Fault hwrei(unsigned tid);
|
||||
|
||||
bool simPalCheck(int palFunc, unsigned tid);
|
||||
|
||||
/** Returns the Fault for any valid interrupt. */
|
||||
Fault getInterrupts();
|
||||
|
||||
/** Processes any an interrupt fault. */
|
||||
void processInterrupts(Fault interrupt);
|
||||
|
||||
/** Halts the CPU. */
|
||||
void halt() { panic("Halt not implemented!\n"); }
|
||||
#endif
|
||||
|
||||
/** Traps to handle given fault. */
|
||||
void trap(Fault fault, unsigned tid);
|
||||
|
||||
|
|
|
@ -55,8 +55,8 @@ BEGIN_DECLARE_SIM_OBJECT_PARAMS(DerivO3CPU)
|
|||
#if FULL_SYSTEM
|
||||
SimObjectParam<System *> system;
|
||||
Param<int> cpu_id;
|
||||
SimObjectParam<AlphaISA::ITB *> itb;
|
||||
SimObjectParam<AlphaISA::DTB *> dtb;
|
||||
SimObjectParam<SparcISA::ITB *> itb;
|
||||
SimObjectParam<SparcISA::DTB *> dtb;
|
||||
Param<Tick> profile;
|
||||
|
||||
Param<bool> do_quiesce;
|
||||
|
|
|
@ -126,7 +126,8 @@ template <class Impl>
|
|||
bool
|
||||
SparcDynInst<Impl>::simPalCheck(int palFunc)
|
||||
{
|
||||
return this->cpu->simPalCheck(palFunc, this->threadNumber);
|
||||
panic("simPalCheck called, but there's no PAL in SPARC!\n");
|
||||
return false;
|
||||
}
|
||||
#else
|
||||
template <class Impl>
|
||||
|
|
|
@ -68,10 +68,10 @@ class O3ThreadContext : public ThreadContext
|
|||
|
||||
#if FULL_SYSTEM
|
||||
/** Returns a pointer to the ITB. */
|
||||
virtual AlphaISA::ITB *getITBPtr() { return cpu->itb; }
|
||||
TheISA::ITB *getITBPtr() { return cpu->itb; }
|
||||
|
||||
/** Returns a pointer to the DTB. */
|
||||
virtual AlphaISA::DTB *getDTBPtr() { return cpu->dtb; }
|
||||
TheISA::DTB *getDTBPtr() { return cpu->dtb; }
|
||||
#endif
|
||||
|
||||
/** Returns a pointer to this CPU. */
|
||||
|
|
Loading…
Reference in a new issue