cpu: add function to get inst map of each basic block

Change-Id: I147d8c90cdfc7bf795d1c6a6daf96e11fa1c0858
This commit is contained in:
studyztp
2024-09-25 22:51:35 -07:00
committed by Bobby R. Bruce
parent 7ffa3646bd
commit 6a9db637ae
2 changed files with 6 additions and 0 deletions

View File

@@ -84,6 +84,7 @@ class LooppointAnalysisManager(SimObject):
cxx_exports = [
PyBindMethod("getGlobalBBV"),
PyBindMethod("clearGlobalBBV"),
PyBindMethod("getBBInstMap"),
PyBindMethod("getGlobalInstCounter"),
PyBindMethod("clearGlobalInstCounter"),
PyBindMethod("getBackwardBranchCounter"),

View File

@@ -279,6 +279,11 @@ class LooppointAnalysisManager: public SimObject
}
};
std::unordered_map<Addr, uint64_t> getBBInstMap() const
{
return bbInstMap;
};
std::unordered_map<Addr, uint64_t>
getGlobalBBV() const
{