Merge zizzer:/bk/newmem

into  zed.eecs.umich.edu:/z/hsul/work/sparc/m5

--HG--
extra : convert_revision : 8cf3e824e4892249b12ed0fd92bb310748b18fa2
This commit is contained in:
Lisa Hsu 2006-12-13 17:52:24 -05:00
commit a10eff03a5

View file

@ -89,13 +89,27 @@ namespace AlphaISA
MiscReg MiscReg
MiscRegFile::readRegWithEffect(int misc_reg, ThreadContext *tc) 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 #if FULL_SYSTEM
default:
return readIpr(misc_reg, tc); return readIpr(misc_reg, tc);
#else #else
default:
panic("No faulting misc regs in SE mode!"); panic("No faulting misc regs in SE mode!");
return 0; return 0;
#endif #endif
} }
}
void void
MiscRegFile::setReg(int misc_reg, const MiscReg &val) MiscRegFile::setReg(int misc_reg, const MiscReg &val)