tests.py (12068:0097c445aa64) | tests.py (12075:2f691b779441) |
---|---|
1#!/usr/bin/env python2 2# 3# Copyright (c) 2016-2017 ARM Limited 4# All rights reserved 5# 6# The license below extends only to copyright in the software and shall 7# not be construed as granting a license to any other intellectual 8# property including but not limited to intellectual property relating --- 152 unchanged lines hidden (view full) --- 161 'learning-gem5-p1-two-level', 162) 163 164default_ruby_protocol = { 165 "arm" : "MOESI_CMP_directory", 166} 167 168def get_default_protocol(arch): | 1#!/usr/bin/env python2 2# 3# Copyright (c) 2016-2017 ARM Limited 4# All rights reserved 5# 6# The license below extends only to copyright in the software and shall 7# not be construed as granting a license to any other intellectual 8# property including but not limited to intellectual property relating --- 152 unchanged lines hidden (view full) --- 161 'learning-gem5-p1-two-level', 162) 163 164default_ruby_protocol = { 165 "arm" : "MOESI_CMP_directory", 166} 167 168def get_default_protocol(arch): |
169 try: 170 return default_ruby_protocol[arch] 171 except KeyError: 172 return 'MI-example' | 169 return default_ruby_protocol.get(arch, 'MI_example') |
173 174all_categories = ("quick", "long") 175all_modes = ("fs", "se") 176 177class Test(object): 178 """Test case base class. 179 180 Test cases consists of one or more test units that are run in two --- 202 unchanged lines hidden --- | 170 171all_categories = ("quick", "long") 172all_modes = ("fs", "se") 173 174class Test(object): 175 """Test case base class. 176 177 Test cases consists of one or more test units that are run in two --- 202 unchanged lines hidden --- |