sim_events.cc (5336:c7e21f4e5a2e) sim_events.cc (5501:b1beee9351a4)
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

44// handle termination event
45//
46void
47SimLoopExitEvent::process()
48{
49 // if this got scheduled on a different queue (e.g. the committed
50 // instruction queue) then make a corresponding event on the main
51 // queue.
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

44// handle termination event
45//
46void
47SimLoopExitEvent::process()
48{
49 // if this got scheduled on a different queue (e.g. the committed
50 // instruction queue) then make a corresponding event on the main
51 // queue.
52 if (theQueue() != &mainEventQueue) {
52 if (queue() != &mainEventQueue) {
53 exitSimLoop(cause, code);
54 delete this;
55 }
56
57 // otherwise do nothing... the IsExitEvent flag takes care of
58 // exiting the simulation loop and returning this object to Python
59
60 // but if you are doing this on intervals, don't forget to make another

--- 99 unchanged lines hidden ---
53 exitSimLoop(cause, code);
54 delete this;
55 }
56
57 // otherwise do nothing... the IsExitEvent flag takes care of
58 // exiting the simulation loop and returning this object to Python
59
60 // but if you are doing this on intervals, don't forget to make another

--- 99 unchanged lines hidden ---