summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2019-04-17 11:19:25 +0800
committerIru Cai <mytbk920423@gmail.com>2019-05-31 16:03:29 +0800
commitda6088fd7636c82e644da3655015e734048418a5 (patch)
tree85f2fcbb8b7d0c0c09e0c4d40808af9b3a3e7f0a
parent50cdd2ccbe4e00f6768fc302ba3ef70fc4cb9170 (diff)
downloadgem5-da6088fd7636c82e644da3655015e734048418a5.tar.xz
fix allowSpecBuffHit and trackBranch options
-rw-r--r--configs/common/CpuConfig.py12
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