summaryrefslogtreecommitdiff
path: root/configs/common/CpuConfig.py
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2019-04-17 10:54:51 +0800
committerIru Cai <mytbk920423@gmail.com>2019-04-17 10:54:51 +0800
commit30488f4a29e9092e0d0dd304ec113dcc92e171f4 (patch)
treefff1e24c94b44f8fbaa2fff3f9b676ca337b6d21 /configs/common/CpuConfig.py
parentbf35a9ab1e9664846c9e03c9ffa5eba589bed159 (diff)
downloadgem5-30488f4a29e9092e0d0dd304ec113dcc92e171f4.tar.xz
add a trackBranch option
Diffstat (limited to 'configs/common/CpuConfig.py')
-rw-r--r--configs/common/CpuConfig.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/configs/common/CpuConfig.py b/configs/common/CpuConfig.py
index 21dabdfa9..ec1f3692a 100644
--- a/configs/common/CpuConfig.py
+++ b/configs/common/CpuConfig.py
@@ -128,6 +128,11 @@ def config_scheme(cpu_cls, cpu_list, options):
else:
cpu.useIFT = False
+ if options.trackBranch:
+ cpu.trackBranch = True
+ else:
+ cpu.trackBranch = False
+
if len(options.scheme)!=0:
cpu.simulateScheme = options.scheme
else: