sim_events.cc (8581:56f97760eadd) sim_events.cc (9328:2fa2b16bdfc2)
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;

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

51void
52SimLoopExitEvent::process()
53{
54 // if this got scheduled on a different queue (e.g. the committed
55 // instruction queue) then make a corresponding event on the main
56 // queue.
57 if (!isFlagSet(IsMainQueue)) {
58 exitSimLoop(cause, code);
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;

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

51void
52SimLoopExitEvent::process()
53{
54 // if this got scheduled on a different queue (e.g. the committed
55 // instruction queue) then make a corresponding event on the main
56 // queue.
57 if (!isFlagSet(IsMainQueue)) {
58 exitSimLoop(cause, code);
59 delete this;
59 setFlags(AutoDelete);
60 }
61
62 // otherwise do nothing... the IsExitEvent flag takes care of
63 // exiting the simulation loop and returning this object to Python
64
65 // but if you are doing this on intervals, don't forget to make another
66 if (repeat) {
67 assert(isFlagSet(IsMainQueue));

--- 57 unchanged lines hidden ---
60 }
61
62 // otherwise do nothing... the IsExitEvent flag takes care of
63 // exiting the simulation loop and returning this object to Python
64
65 // but if you are doing this on intervals, don't forget to make another
66 if (repeat) {
67 assert(isFlagSet(IsMainQueue));

--- 57 unchanged lines hidden ---