fs.py (3088:d8a809416104) fs.py (3133:ad45cbafebdd)
1# Copyright (c) 2006 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

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

119 maxtick = simtime
120else:
121 maxtick = -1
122
123exit_event = m5.simulate(maxtick)
124
125while exit_event.getCause() == "checkpoint":
126 m5.checkpoint(root, "cpt.%d")
1# Copyright (c) 2006 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

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

119 maxtick = simtime
120else:
121 maxtick = -1
122
123exit_event = m5.simulate(maxtick)
124
125while exit_event.getCause() == "checkpoint":
126 m5.checkpoint(root, "cpt.%d")
127 exit_event = m5.simulate(maxtick - m5.curTick())
127 if maxtick == -1:
128 exit_event = m5.simulate(maxtick)
129 else:
130 exit_event = m5.simulate(maxtick - m5.curTick())
128
129print 'Exiting @ cycle', m5.curTick(), 'because', exit_event.getCause()
131
132print 'Exiting @ cycle', m5.curTick(), 'because', exit_event.getCause()