diff options
author | Iru Cai <mytbk920423@gmail.com> | 2019-04-17 11:19:25 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2019-04-17 11:19:25 +0800 |
commit | d59e191b59b325e9e3d31b7f9f349853f9652445 (patch) | |
tree | dd4d73c226829c3df9b2eb84372ff7cc34a7f6c9 | |
parent | 30488f4a29e9092e0d0dd304ec113dcc92e171f4 (diff) | |
download | gem5-d59e191b59b325e9e3d31b7f9f349853f9652445.tar.xz |
fix allowSpecBuffHit and trackBranch options
-rw-r--r-- | configs/common/CpuConfig.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/configs/common/CpuConfig.py b/configs/common/CpuConfig.py index ec1f3692a..ec3883db4 100644 --- a/configs/common/CpuConfig.py +++ b/configs/common/CpuConfig.py @@ -118,20 +118,16 @@ def config_scheme(cpu_cls, cpu_list, options): else: cpu.needsTSO = False - if options.allowSpecBuffHit: - cpu.allowSpecBuffHit = True - else: - cpu.allowSpecBuffHit = False + if options.allowSpecBuffHit is not None: + cpu.allowSpecBuffHit = options.allowSpecBuffHit if options.useIFT: cpu.useIFT = True else: cpu.useIFT = False - if options.trackBranch: - cpu.trackBranch = True - else: - cpu.trackBranch = False + if options.trackBranch is not None: + cpu.trackBranch = options.trackBranch if len(options.scheme)!=0: cpu.simulateScheme = options.scheme |