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 = [
|
cxx_exports = [
|
||||||
PyBindMethod("getGlobalBBV"),
|
PyBindMethod("getGlobalBBV"),
|
||||||
PyBindMethod("clearGlobalBBV"),
|
PyBindMethod("clearGlobalBBV"),
|
||||||
|
PyBindMethod("getBBInstMap"),
|
||||||
PyBindMethod("getGlobalInstCounter"),
|
PyBindMethod("getGlobalInstCounter"),
|
||||||
PyBindMethod("clearGlobalInstCounter"),
|
PyBindMethod("clearGlobalInstCounter"),
|
||||||
PyBindMethod("getBackwardBranchCounter"),
|
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>
|
std::unordered_map<Addr, uint64_t>
|
||||||
getGlobalBBV() const
|
getGlobalBBV() const
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user