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,12 +89,26 @@ 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
|
||||||
return readIpr(misc_reg, tc);
|
default:
|
||||||
|
return readIpr(misc_reg, tc);
|
||||||
#else
|
#else
|
||||||
panic("No faulting misc regs in SE mode!");
|
default:
|
||||||
return 0;
|
panic("No faulting misc regs in SE mode!");
|
||||||
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue