cpu: Indirect predictor track conditional indirect (#1077)
As discussed in https://github.com/orgs/gem5/discussions/954:
In the refactor made by commit f65df9b959 conditional indirect
branches are no longer updated in the indirect predictor.
This kind of branches do not exist in x86 neither arm, but they are
present in PowerPC.
This patch, enables the indirect predictor to track this kind of
branches.
This commit is contained in:
committed by
GitHub
parent
1bb5d3b99e
commit
17cbbd84ae
@@ -160,7 +160,8 @@ class SimpleIndirectPredictor : public IndirectPredictor
|
||||
|
||||
inline bool isIndirectNoReturn(BranchType type) {
|
||||
return (type == BranchType::CallIndirect) ||
|
||||
(type == BranchType::IndirectUncond);
|
||||
(type == BranchType::IndirectUncond) ||
|
||||
(type == BranchType::IndirectCond);
|
||||
}
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user