diff options
author | Gabe Black <gabeblack@google.com> | 2019-12-03 20:33:28 -0800 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2019-12-17 00:45:47 +0000 |
commit | 2b103231ea6d88755da1ac53fd50887998267aef (patch) | |
tree | 35e653a6a2b2903ccb40e44a3fe402307f252e09 | |
parent | 0e8ce8b12e614925fdbbf306522e24aa8b05ac91 (diff) | |
download | gem5-2b103231ea6d88755da1ac53fd50887998267aef.tar.xz |
config: Default the indirect branch predictor to "None".
Other scripts (like se.py) blindly try to apply the indirect predictor
if one is set. Because this option defaults to something, there's no
way (as far as I know) to purposefully select nothing, and so the
simulator crashes. Users shouldn't have to proactively prevent gem5
from killing itself regardless, so the default was changed to "None".
Change-Id: Ic3382b8065442d6705b1c6a656646598d9d5c322
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23360
Reviewed-by: Ciro Santilli <ciro.santilli@arm.com>
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Tested-by: kokoro <noreply+kokoro@google.com>
-rw-r--r-- | configs/common/Options.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/configs/common/Options.py b/configs/common/Options.py index 71d22a461..173bd483c 100644 --- a/configs/common/Options.py +++ b/configs/common/Options.py @@ -183,8 +183,7 @@ def addCommonOptions(parser): type of branch predictor to run with (if not set, use the default branch predictor of the selected CPU)""") - parser.add_option("--indirect-bp-type", type="choice", - default="SimpleIndirectPredictor", + parser.add_option("--indirect-bp-type", type="choice", default=None, choices=ObjectList.indirect_bp_list.get_names(), help = "type of indirect branch predictor to run with") parser.add_option("--list-hwp-types", |