diff options
author | Iru Cai <mytbk920423@gmail.com> | 2019-04-11 23:31:41 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2019-04-12 00:24:57 +0800 |
commit | 8fe7e974ee5ca80885b9231ec397e5681d67d3ae (patch) | |
tree | 4b48ef2ccbbca57f0f4fd81bb8b2a318f2fe8c50 /configs/common | |
parent | 612ad09b9825a032742ae2a2de20628bac97154b (diff) | |
download | gem5-8fe7e974ee5ca80885b9231ec397e5681d67d3ae.tar.xz |
add IFT options
Diffstat (limited to 'configs/common')
-rw-r--r-- | configs/common/CpuConfig.py | 6 | ||||
-rw-r--r-- | configs/common/Options.py | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/configs/common/CpuConfig.py b/configs/common/CpuConfig.py index 43539ee4d..21dabdfa9 100644 --- a/configs/common/CpuConfig.py +++ b/configs/common/CpuConfig.py @@ -122,6 +122,12 @@ def config_scheme(cpu_cls, cpu_list, options): cpu.allowSpecBuffHit = True else: cpu.allowSpecBuffHit = False + + if options.useIFT: + cpu.useIFT = True + else: + cpu.useIFT = False + if len(options.scheme)!=0: cpu.simulateScheme = options.scheme else: diff --git a/configs/common/Options.py b/configs/common/Options.py index 5d92b446d..89a8eda04 100644 --- a/configs/common/Options.py +++ b/configs/common/Options.py @@ -317,6 +317,8 @@ def addCommonOptions(parser): "SpectreSafeFence", "FuturisticSafeInvisibleSpec", "SpectreSafeInvisibleSpec"], help="choose baseline or defense designs to evaluate") + parser.add_option("--useIFT", default=None, action="store", type="int", + help="Use information flow tracking.") parser.add_option("--needsTSO", default=None, action="store", type="int", help="Select TSO or RC. Set unzero to use TSO.") parser.add_option("--allowSpecBuffHit", default=None, action="store", |