From 439b68a21e5122df2e6d1b9aad7ac46af619cc75 Mon Sep 17 00:00:00 2001 From: Pau Cabre Date: Wed, 7 Nov 2018 23:22:05 +0100 Subject: configs: Added an option for choosing branch predictor type Added the parameter "--bp-type" to set the branch predictor type Added the parameter "--list-bp-types" to list all the available branch predictor types Change-Id: Ia6aae90c784aef359b6d8233c8383cd7a871aca1 Signed-off-by: Pau Cabre Reviewed-on: https://gem5-review.googlesource.com/c/14015 Reviewed-by: Andreas Sandberg Reviewed-by: Jason Lowe-Power Maintainer: Andreas Sandberg --- src/cpu/pred/BranchPredictor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/cpu/pred/BranchPredictor.py') diff --git a/src/cpu/pred/BranchPredictor.py b/src/cpu/pred/BranchPredictor.py index 9f3516597..1eeecde95 100644 --- a/src/cpu/pred/BranchPredictor.py +++ b/src/cpu/pred/BranchPredictor.py @@ -29,6 +29,7 @@ from m5.SimObject import SimObject from m5.params import * +from m5.proxy import * class BranchPredictor(SimObject): type = 'BranchPredictor' @@ -36,7 +37,7 @@ class BranchPredictor(SimObject): cxx_header = "cpu/pred/bpred_unit.hh" abstract = True - numThreads = Param.Unsigned(1, "Number of threads") + numThreads = Param.Unsigned(Parent.numThreads, "Number of threads") BTBEntries = Param.Unsigned(4096, "Number of BTB entries") BTBTagSize = Param.Unsigned(16, "Size of the BTB tags, in bits") RASSize = Param.Unsigned(16, "RAS size") -- cgit v1.2.3