cpu: Add Units to cpu stats
Change-Id: I387b2e9f6ecf62757242056f732bd443c457ebea Signed-off-by: Hoa Nguyen <hoanguyen@ucdavis.edu> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/39095 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu> Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu>
This commit is contained in:
@@ -347,10 +347,12 @@ LoopPredictor::condBranchUpdate(ThreadID tid, Addr branch_pc, bool taken,
|
||||
|
||||
LoopPredictor::LoopPredictorStats::LoopPredictorStats(Stats::Group *parent)
|
||||
: Stats::Group(parent),
|
||||
ADD_STAT(correct, "Number of times the loop predictor is"
|
||||
" the provider and the prediction is correct"),
|
||||
ADD_STAT(wrong, "Number of times the loop predictor is the"
|
||||
" provider and the prediction is wrong")
|
||||
ADD_STAT(correct, UNIT_COUNT,
|
||||
"Number of times the loop predictor is the provider and the "
|
||||
"prediction is correct"),
|
||||
ADD_STAT(wrong, UNIT_COUNT,
|
||||
"Number of times the loop predictor is the provider and the "
|
||||
"prediction is wrong")
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user