Merge zizzer:/bk/newmem
into zed.eecs.umich.edu:/z/hsul/work/sparc/m5 --HG-- extra : convert_revision : 8cf3e824e4892249b12ed0fd92bb310748b18fa2
This commit is contained in:
commit
a10eff03a5
1 changed files with 17 additions and 3 deletions
|
@ -89,13 +89,27 @@ namespace AlphaISA
|
|||
MiscReg
|
||||
MiscRegFile::readRegWithEffect(int misc_reg, ThreadContext *tc)
|
||||
{
|
||||
switch(misc_reg) {
|
||||
case MISCREG_FPCR:
|
||||
return fpcr;
|
||||
case MISCREG_UNIQ:
|
||||
return uniq;
|
||||
case MISCREG_LOCKFLAG:
|
||||
return lock_flag;
|
||||
case MISCREG_LOCKADDR:
|
||||
return lock_addr;
|
||||
case MISCREG_INTR:
|
||||
return intr_flag;
|
||||
#if FULL_SYSTEM
|
||||
default:
|
||||
return readIpr(misc_reg, tc);
|
||||
#else
|
||||
default:
|
||||
panic("No faulting misc regs in SE mode!");
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
MiscRegFile::setReg(int misc_reg, const MiscReg &val)
|
||||
|
|
Loading…
Reference in a new issue