diff options
author | Korey Sewell <ksewell@umich.edu> | 2009-03-04 13:17:05 -0500 |
---|---|---|
committer | Korey Sewell <ksewell@umich.edu> | 2009-03-04 13:17:05 -0500 |
commit | f98e9161a83cd9bafbe7e5612db344a8b5cb2ae1 (patch) | |
tree | 01defa239ea51a18d706814beb31fe5d7da55a87 /src/cpu/inorder/resources/mult_div_unit.cc | |
parent | 846f953c2bc8f9922afe62c30e60f9b5b531d09e (diff) | |
download | gem5-f98e9161a83cd9bafbe7e5612db344a8b5cb2ae1.tar.xz |
InOrder didnt have all it's params set to a default value, which is now required for M5 objects; Also, a # of values need to be reset to 0 (or the appropriate value) before we assume they are OK for use.
Diffstat (limited to 'src/cpu/inorder/resources/mult_div_unit.cc')
-rw-r--r-- | src/cpu/inorder/resources/mult_div_unit.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cpu/inorder/resources/mult_div_unit.cc b/src/cpu/inorder/resources/mult_div_unit.cc index abef11247..e98e97be7 100644 --- a/src/cpu/inorder/resources/mult_div_unit.cc +++ b/src/cpu/inorder/resources/mult_div_unit.cc @@ -57,6 +57,8 @@ MultDivUnit::MultDivUnit(string res_name, int res_id, int res_width, div32RepeatRate = params->div32RepeatRate; div32Latency = params->div32Latency; + + lastMDUCycle = 0; } void @@ -150,6 +152,9 @@ MultDivUnit::getSlot(DynInstPtr inst) rval); if (rval != -1) { + lastMDUCycle = curTick; + lastOpType = inst->opClass(); + lastInstName = inst->staticInst->getName(); } return rval; |