switcheroo.py (11880:8c369af31b6c) | switcheroo.py (11988:665cd5f8b52b) |
---|---|
1# Copyright (c) 2012 ARM Limited 2# All rights reserved. 3# 4# The license below extends only to copyright in the software and shall 5# not be construed as granting a license to any other intellectual 6# property including but not limited to intellectual property relating 7# to a hardware implementation of the functionality of the software 8# licensed hereunder. You may use the software subject to the license --- 92 unchanged lines hidden (view full) --- 101 current_cpu = switcher.first() 102 system = root.system 103 system.mem_mode = type(current_cpu).memory_mode() 104 105 # Suppress "Entering event queue" messages since we get tons of them. 106 # Worse yet, they include the timestamp, which makes them highly 107 # variable and unsuitable for comparing as test outputs. 108 if not verbose: | 1# Copyright (c) 2012 ARM Limited 2# All rights reserved. 3# 4# The license below extends only to copyright in the software and shall 5# not be construed as granting a license to any other intellectual 6# property including but not limited to intellectual property relating 7# to a hardware implementation of the functionality of the software 8# licensed hereunder. You may use the software subject to the license --- 92 unchanged lines hidden (view full) --- 101 current_cpu = switcher.first() 102 system = root.system 103 system.mem_mode = type(current_cpu).memory_mode() 104 105 # Suppress "Entering event queue" messages since we get tons of them. 106 # Worse yet, they include the timestamp, which makes them highly 107 # variable and unsuitable for comparing as test outputs. 108 if not verbose: |
109 _m5.core.Logger.setLevel(_m5.core.Logger.WARN) | 109 _m5.core.setLogLevel(_m5.core.LogLevel.WARN) |
110 111 # instantiate configuration 112 m5.instantiate() 113 114 # Determine the switching period, this has to be done after 115 # instantiating the system since the time base must be fixed. 116 period = m5.ticks.fromSeconds(1.0 / freq) 117 while True: --- 23 unchanged lines hidden --- | 110 111 # instantiate configuration 112 m5.instantiate() 113 114 # Determine the switching period, this has to be done after 115 # instantiating the system since the time base must be fixed. 116 period = m5.ticks.fromSeconds(1.0 / freq) 117 while True: --- 23 unchanged lines hidden --- |