summaryrefslogtreecommitdiff
path: root/src/cpu/pred/bi_mode.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu/pred/bi_mode.cc')
-rw-r--r--src/cpu/pred/bi_mode.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cpu/pred/bi_mode.cc b/src/cpu/pred/bi_mode.cc
index c2a41cd4d..bc974bac8 100644
--- a/src/cpu/pred/bi_mode.cc
+++ b/src/cpu/pred/bi_mode.cc
@@ -236,6 +236,12 @@ BiModeBP::retireSquashed(void *bp_history)
delete history;
}
+unsigned
+BiModeBP::getGHR(void *bp_history) const
+{
+ return static_cast<BPHistory*>(bp_history)->globalHistoryReg;
+}
+
void
BiModeBP::updateGlobalHistReg(bool taken)
{