diff options
Diffstat (limited to 'src/cpu/inorder/resources/agen_unit.cc')
-rw-r--r-- | src/cpu/inorder/resources/agen_unit.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/cpu/inorder/resources/agen_unit.cc b/src/cpu/inorder/resources/agen_unit.cc index 44bf8c0ad..15ff3c4ba 100644 --- a/src/cpu/inorder/resources/agen_unit.cc +++ b/src/cpu/inorder/resources/agen_unit.cc @@ -37,6 +37,16 @@ AGENUnit::AGENUnit(std::string res_name, int res_id, int res_width, { } void +AGENUnit::regStats() +{ + agens + .name(name() + ".agens") + .desc("Number of Address Generations"); + + Resource::regStats(); +} + +void AGENUnit::execute(int slot_num) { ResourceRequest* agen_req = reqMap[slot_num]; @@ -72,6 +82,8 @@ AGENUnit::execute(int slot_num) fatal("%s encountered while calculating address [sn:%i]", fault->name(), seq_num); } + + agens++; } else { DPRINTF(InOrderAGEN, "[tid:] Ignoring non-memory instruction [sn:%i]\n", |