diff options
author | Nathanael Premillieu <npremill@irisa.fr> | 2012-06-29 11:18:29 -0400 |
---|---|---|
committer | Nathanael Premillieu <npremill@irisa.fr> | 2012-06-29 11:18:29 -0400 |
commit | af2b14a362281f36347728e13dcd6b2c4d3c4991 (patch) | |
tree | 4fc534d9f8ebdc693a90a3dc4a8ce185c6b093f6 /src/cpu/o3/bpred_unit.hh | |
parent | 71daeb0b2b390f5f5a34addd3993f28851c91d72 (diff) | |
download | gem5-af2b14a362281f36347728e13dcd6b2c4d3c4991.tar.xz |
O3: Track if the RAS has been pushed or not to pop the RAS if neccessary.
Add new flag (named pushedRAS) in the PredictorHistory structure.
This flag tracks whether the RAS has been pushed or not during a prediction.
Then, in the squash function it is used to pop the RAS if necessary.
Diffstat (limited to 'src/cpu/o3/bpred_unit.hh')
-rw-r--r-- | src/cpu/o3/bpred_unit.hh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cpu/o3/bpred_unit.hh b/src/cpu/o3/bpred_unit.hh index 8bfab11a9..c1afb4720 100644 --- a/src/cpu/o3/bpred_unit.hh +++ b/src/cpu/o3/bpred_unit.hh @@ -207,7 +207,7 @@ class BPredUnit bool pred_taken, void *bp_history, ThreadID _tid) : seqNum(seq_num), pc(instPC), bpHistory(bp_history), RASTarget(0), - RASIndex(0), tid(_tid), predTaken(pred_taken), usedRAS(0), + RASIndex(0), tid(_tid), predTaken(pred_taken), usedRAS(0), pushedRAS(0), wasCall(0), wasReturn(0), validBTB(0) {} @@ -242,6 +242,9 @@ class BPredUnit /** Whether or not the RAS was used. */ bool usedRAS; + /* Wether or not the RAS was pushed */ + bool pushedRAS; + /** Whether or not the instruction was a call. */ bool wasCall; |