diff options
author | Korey Sewell <ksewell@umich.edu> | 2010-01-31 18:30:48 -0500 |
---|---|---|
committer | Korey Sewell <ksewell@umich.edu> | 2010-01-31 18:30:48 -0500 |
commit | 9357e353fc976a409fb0cb3a875b402f452577f7 (patch) | |
tree | 96c171ac4ef8dbbf7d5def7c11ff29d83f02a25b /src/cpu/inorder/inorder_dyn_inst.cc | |
parent | be6724f7e7a1c1d2f305c814cf3aa23d54a676e2 (diff) | |
download | gem5-9357e353fc976a409fb0cb3a875b402f452577f7.tar.xz |
inorder: inst count mgmt
Diffstat (limited to 'src/cpu/inorder/inorder_dyn_inst.cc')
-rw-r--r-- | src/cpu/inorder/inorder_dyn_inst.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cpu/inorder/inorder_dyn_inst.cc b/src/cpu/inorder/inorder_dyn_inst.cc index c0e5aa69b..75e1c570f 100644 --- a/src/cpu/inorder/inorder_dyn_inst.cc +++ b/src/cpu/inorder/inorder_dyn_inst.cc @@ -164,7 +164,7 @@ InOrderDynInst::initVars() // Update Instruction Count for this instruction ++instcount; - if (instcount > 500) { + if (instcount > 100) { fatal("Number of Active Instructions in CPU is too high. " "(Not Dereferencing Ptrs. Correctly?)\n"); } @@ -175,6 +175,12 @@ InOrderDynInst::initVars() threadNumber, seqNum, instcount); } +void +InOrderDynInst::resetInstCount() +{ + instcount = 0; +} + InOrderDynInst::~InOrderDynInst() { |