memtest.py (6654:4c84e771cca7) memtest.py (7525:722f2ad014a7)
1# Copyright (c) 2006-2007 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 167 unchanged lines hidden (view full) ---

176 root.system.mem_mode = 'atomic'
177else:
178 root.system.mem_mode = 'timing'
179
180# Not much point in this being higher than the L1 latency
181m5.ticks.setGlobalFrequency('1ns')
182
183# instantiate configuration
1# Copyright (c) 2006-2007 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 167 unchanged lines hidden (view full) ---

176 root.system.mem_mode = 'atomic'
177else:
178 root.system.mem_mode = 'timing'
179
180# Not much point in this being higher than the L1 latency
181m5.ticks.setGlobalFrequency('1ns')
182
183# instantiate configuration
184m5.instantiate(root)
184m5.instantiate()
185
186# simulate until program terminates
187exit_event = m5.simulate(options.maxtick)
188
189print 'Exiting @ tick', m5.curTick(), 'because', exit_event.getCause()
185
186# simulate until program terminates
187exit_event = m5.simulate(options.maxtick)
188
189print 'Exiting @ tick', m5.curTick(), 'because', exit_event.getCause()