-
Notifications
You must be signed in to change notification settings - Fork 0
/
changes.patch
32 lines (31 loc) · 1.11 KB
/
changes.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
diff --git a/src/cpu/pred/BranchPredictor.py b/src/cpu/pred/BranchPredictor.py
index 1b400c2..f24f0e6 100644
--- a/src/cpu/pred/BranchPredictor.py
+++ b/src/cpu/pred/BranchPredictor.py
@@ -102,3 +102,14 @@ class LTAGE(BranchPredictor):
maxHist = Param.Unsigned(640, "Maximum history size of LTAGE")
minTagWidth = Param.Unsigned(7, "Minimum tag size in tag tables")
+class Perceptron(BranchPredictor):
+ type = 'Perceptron'
+ cxx_class = 'Perceptron'
+ cxx_header = "cpu/pred/perceptron.hh"
+ globalPredictorSize = Param.Unsigned(8192, "Size of global predictor")
+
+class Plbp(BranchPredictor):
+ type = 'Plbp'
+ cxx_class = 'Plbp'
+ cxx_header = "cpu/pred/plbp.hh"
+ globalPredictorSize = Param.Unsigned(8192, "Size of global predictor")
diff --git a/src/cpu/pred/SConscript b/src/cpu/pred/SConscript
index 1cdf7bb..792dd5b 100644
--- a/src/cpu/pred/SConscript
+++ b/src/cpu/pred/SConscript
@@ -44,6 +44,8 @@ Source('ras.cc')
Source('tournament.cc')
Source ('bi_mode.cc')
Source('ltage.cc')
+Source('perceptron.cc')
+Source('plbp.cc')
DebugFlag('FreeList')
DebugFlag('Branch')
DebugFlag('LTage')