summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPau Cabre <pau.cabre@metempsy.com>2018-11-10 00:12:30 +0100
committerPau Cabre <pau.cabre@metempsy.com>2018-11-17 16:59:31 +0000
commit41b49893536a367313867d95afedf9260078c441 (patch)
tree3f36deb042c14aff589caeca3af1a390c582b51c
parent439b68a21e5122df2e6d1b9aad7ac46af619cc75 (diff)
downloadgem5-41b49893536a367313867d95afedf9260078c441.tar.xz
cpu: Fix LTAGE max number of allocations on update
The LTAGE paper states that only one TAGE entry can be allocated when updating Change-Id: I6cfb4d80ce835e93d4bf5099ef88a7d425abaddd Signed-off-by: Pau Cabre <pau.cabre@metempsy.com> Reviewed-on: https://gem5-review.googlesource.com/c/14195 Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-by: Ilias Vougioukas <ilias.vougioukas@arm.com> Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
-rw-r--r--src/cpu/pred/ltage.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cpu/pred/ltage.cc b/src/cpu/pred/ltage.cc
index 874fbe41e..8d20d5056 100644
--- a/src/cpu/pred/ltage.cc
+++ b/src/cpu/pred/ltage.cc
@@ -579,6 +579,7 @@ LTAGE::update(ThreadID tid, Addr branch_pc, bool taken, void* bp_history,
gtable[i][bi->tableIndices[i]].tag = bi->tableTags[i];
gtable[i][bi->tableIndices[i]].ctr = (taken) ? 0 : -1;
gtable[i][bi->tableIndices[i]].u = 0; //?
+ break;
}
}
}