cpu: Move the branch predictor out of the BaseCPU
The branch predictor is guarded by having either the in-order or out-of-order CPU as one of the available CPU models and therefore should not be used in the BaseCPU. This patch moves the parameter to the relevant CPU classes.
This commit is contained in:
@@ -68,4 +68,6 @@ class InOrderCPU(BaseCPU):
|
||||
div32Latency = Param.Cycles(1, "Latency for 32-bit Divide Operations")
|
||||
div32RepeatRate = Param.Cycles(1, "Repeat Rate for 32-bit Divide Operations")
|
||||
|
||||
branchPred = BranchPredictor(numThreads = Parent.numThreads)
|
||||
branchPred = Param.BranchPredictor(BranchPredictor(numThreads =
|
||||
Parent.numThreads),
|
||||
"Branch Predictor")
|
||||
|
||||
Reference in New Issue
Block a user