simulate.cc (11793:ef606668d247) simulate.cc (11990:5fad911cc326)
1/*
2 * Copyright (c) 2006 The Regents of The University of Michigan
3 * Copyright (c) 2013 Advanced Micro Devices, Inc.
4 * Copyright (c) 2013 Mark D. Hill and David A. Wood
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are

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

71 doSimLoop(queue);
72 }
73}
74
75GlobalSimLoopExitEvent *simulate_limit_event = nullptr;
76
77/** Simulate for num_cycles additional cycles. If num_cycles is -1
78 * (the default), do not limit simulation; some other event must
1/*
2 * Copyright (c) 2006 The Regents of The University of Michigan
3 * Copyright (c) 2013 Advanced Micro Devices, Inc.
4 * Copyright (c) 2013 Mark D. Hill and David A. Wood
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are

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

71 doSimLoop(queue);
72 }
73}
74
75GlobalSimLoopExitEvent *simulate_limit_event = nullptr;
76
77/** Simulate for num_cycles additional cycles. If num_cycles is -1
78 * (the default), do not limit simulation; some other event must
79 * terminate the loop. Exported to Python via SWIG.
79 * terminate the loop. Exported to Python.
80 * @return The SimLoopExitEvent that caused the loop to exit.
81 */
82GlobalSimLoopExitEvent *
83simulate(Tick num_cycles)
84{
85 // The first time simulate() is called from the Python code, we need to
86 // create a thread for each of event queues referenced by the
87 // instantiated sim objects.

--- 139 unchanged lines hidden ---
80 * @return The SimLoopExitEvent that caused the loop to exit.
81 */
82GlobalSimLoopExitEvent *
83simulate(Tick num_cycles)
84{
85 // The first time simulate() is called from the Python code, we need to
86 // create a thread for each of event queues referenced by the
87 // instantiated sim objects.

--- 139 unchanged lines hidden ---