run.py (6654:4c84e771cca7) | run.py (7525:722f2ad014a7) |
---|---|
1# Copyright (c) 2005-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 --- 262 unchanged lines hidden (view full) --- 271# ---------------------- 272# Run the simulation 273# ---------------------- 274 275if options.timing or options.detailed: 276 root.system.mem_mode = 'timing' 277 278# instantiate configuration | 1# Copyright (c) 2005-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 --- 262 unchanged lines hidden (view full) --- 271# ---------------------- 272# Run the simulation 273# ---------------------- 274 275if options.timing or options.detailed: 276 root.system.mem_mode = 'timing' 277 278# instantiate configuration |
279m5.instantiate(root) | 279m5.instantiate() |
280 281# simulate until program terminates 282if options.maxtick: 283 exit_event = m5.simulate(options.maxtick) 284else: 285 exit_event = m5.simulate(m5.MaxTick) 286 287print 'Exiting @ tick', m5.curTick(), 'because', exit_event.getCause() 288 | 280 281# simulate until program terminates 282if options.maxtick: 283 exit_event = m5.simulate(options.maxtick) 284else: 285 exit_event = m5.simulate(m5.MaxTick) 286 287print 'Exiting @ tick', m5.curTick(), 'because', exit_event.getCause() 288 |