diff options
author | Pau Cabre <pau.cabre@metempsy.com> | 2018-11-07 23:22:05 +0100 |
---|---|---|
committer | Pau Cabre <pau.cabre@metempsy.com> | 2018-11-17 16:57:58 +0000 |
commit | 439b68a21e5122df2e6d1b9aad7ac46af619cc75 (patch) | |
tree | 75e58c5261518891b4435912545ce3bdd33b9ddb /src | |
parent | cb9fa244036772fc1d2c73fa2f4b10e98cd6e17a (diff) | |
download | gem5-439b68a21e5122df2e6d1b9aad7ac46af619cc75.tar.xz |
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 <pau.cabre@metempsy.com>
Reviewed-on: https://gem5-review.googlesource.com/c/14015
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/cpu/pred/BranchPredictor.py | 3 |
1 files changed, 2 insertions, 1 deletions
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") |