cpu: add function to get inst map of each basic block
Change-Id: I147d8c90cdfc7bf795d1c6a6daf96e11fa1c0858
This commit is contained in:
@@ -84,6 +84,7 @@ class LooppointAnalysisManager(SimObject):
|
||||
cxx_exports = [
|
||||
PyBindMethod("getGlobalBBV"),
|
||||
PyBindMethod("clearGlobalBBV"),
|
||||
PyBindMethod("getBBInstMap"),
|
||||
PyBindMethod("getGlobalInstCounter"),
|
||||
PyBindMethod("clearGlobalInstCounter"),
|
||||
PyBindMethod("getBackwardBranchCounter"),
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user