summaryrefslogtreecommitdiff
path: root/src/arch/mips/mt.hh
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2009-07-21 01:08:53 -0700
committerGabe Black <gblack@eecs.umich.edu>2009-07-21 01:08:53 -0700
commit7548082d3baf578fe984c79f414dbefd96091359 (patch)
tree2992c954757b4116244ce612dd0d7c63a3893f02 /src/arch/mips/mt.hh
parentdc0a017ed0ce192b2959ae0cc08522d04a4281a1 (diff)
downloadgem5-7548082d3baf578fe984c79f414dbefd96091359.tar.xz
MIPS: Many style fixes.
White space, commented out code, some other minor fixes.
Diffstat (limited to 'src/arch/mips/mt.hh')
-rwxr-xr-xsrc/arch/mips/mt.hh15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/arch/mips/mt.hh b/src/arch/mips/mt.hh
index 0307b37be..a6363e191 100755
--- a/src/arch/mips/mt.hh
+++ b/src/arch/mips/mt.hh
@@ -51,7 +51,6 @@
namespace MipsISA
{
-
template <class TC>
inline unsigned
getVirtProcNum(TC *tc)
@@ -76,11 +75,13 @@ haltThread(TC *tc)
tc->halt();
// Save last known PC in TCRestart
- // @TODO: Needs to check if this is a branch and if so, take previous instruction
+ // @TODO: Needs to check if this is a branch and if so,
+ // take previous instruction
tc->setMiscReg(TCRestart, tc->readNextPC());
- warn("%i: Halting thread %i in %s @ PC %x, setting restart PC to %x", curTick, tc->threadId(), tc->getCpuPtr()->name(),
- tc->readPC(), tc->readNextPC());
+ warn("%i: Halting thread %i in %s @ PC %x, setting restart PC to %x",
+ curTick, tc->threadId(), tc->getCpuPtr()->name(),
+ tc->readPC(), tc->readNextPC());
}
}
@@ -93,14 +94,14 @@ restoreThread(TC *tc)
IntReg pc = tc->readMiscRegNoEffect(TCRestart);
// TODO: SET PC WITH AN EVENT INSTEAD OF INSTANTANEOUSLY
- // tc->setPCEvent(pc, pc + 4, pc + 8);
tc->setPC(pc);
tc->setNextPC(pc + 4);
tc->setNextNPC(pc + 8);
tc->activate(0);
- warn("%i: Restoring thread %i in %s @ PC %x", curTick, tc->threadId(), tc->getCpuPtr()->name(),
- tc->readPC());
+ warn("%i: Restoring thread %i in %s @ PC %x",
+ curTick, tc->threadId(), tc->getCpuPtr()->name(),
+ tc->readPC());
}
}