diff options
author | Daniel R. Carvalho <odanrc@yahoo.com.br> | 2019-09-03 11:59:18 +0200 |
---|---|---|
committer | Daniel Carvalho <odanrc@yahoo.com.br> | 2019-10-01 06:15:03 +0000 |
commit | e8a318476ec0024ca2ddda0eacb7d489fb8a61a1 (patch) | |
tree | cd66d62ad33c1c895fed20d533f4d682c5e83912 /configs/example/fs.py | |
parent | c957d00dfeea618137cf14c02f6c20b0f02dbed3 (diff) | |
download | gem5-e8a318476ec0024ca2ddda0eacb7d489fb8a61a1.tar.xz |
configs: Port BPConfig to use the common object list
Port BPConfig to use the common object list.
Change-Id: I5cbd1c67cf743778bc59b5aa3c3dea5ab397b66d
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/20590
Tested-by: kokoro <noreply+kokoro@google.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'configs/example/fs.py')
-rw-r--r-- | configs/example/fs.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/configs/example/fs.py b/configs/example/fs.py index ee813ff5d..e1501e674 100644 --- a/configs/example/fs.py +++ b/configs/example/fs.py @@ -65,7 +65,6 @@ from common import CacheConfig from common import CpuConfig from common import MemConfig from common import ObjectList -from common import BPConfig from common.Caches import * from common import Options @@ -206,11 +205,11 @@ def build_test_system(np): if options.checker: test_sys.cpu[i].addCheckerCpu() if options.bp_type: - bpClass = BPConfig.get(options.bp_type) + bpClass = ObjectList.bp_list.get(options.bp_type) test_sys.cpu[i].branchPred = bpClass() if options.indirect_bp_type: - IndirectBPClass = \ - BPConfig.get_indirect(options.indirect_bp_type) + IndirectBPClass = ObjectList.indirect_bp_list.get( + options.indirect_bp_type) test_sys.cpu[i].branchPred.indirectBranchPred = \ IndirectBPClass() test_sys.cpu[i].createThreads() |