Implement a stub nnpc for alpha that is read only as npc+4.
--HG-- extra : convert_revision : d08b740d32757fa5471c9bcde9084d59a1d8102d
This commit is contained in:
@@ -45,8 +45,7 @@ class AlphaTC : public O3ThreadContext<Impl>
|
||||
|
||||
virtual uint64_t readNextNPC()
|
||||
{
|
||||
panic("Alpha has no NextNPC!");
|
||||
return 0;
|
||||
return this->readNextPC() + sizeof(TheISA::MachInst);
|
||||
}
|
||||
|
||||
virtual void setNextNPC(uint64_t val)
|
||||
|
||||
@@ -659,9 +659,7 @@ FullO3CPU<Impl>::insertThread(unsigned tid)
|
||||
//Set PC/NPC/NNPC
|
||||
setPC(src_tc->readPC(), tid);
|
||||
setNextPC(src_tc->readNextPC(), tid);
|
||||
#if ISA_HAS_DELAY_SLOT
|
||||
setNextNPC(src_tc->readNextNPC(), tid);
|
||||
#endif
|
||||
|
||||
src_tc->setStatus(ThreadContext::Active);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user