1/* 2 * Copyright (c) 2001-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; --- 263 unchanged lines hidden (view full) --- 272bool 273SimObject::drain(Event *drain_event) 274{ 275 if (state != DrainedAtomic && state != Atomic) { 276 panic("Must implement your own drain function if it is to be used " 277 "in timing mode!"); 278 } 279 state = DrainedAtomic; |
280 return true; |
281} 282 283void 284SimObject::resume() 285{ 286 if (state == DrainedAtomic) { 287 state = Atomic; 288 } else if (state == DrainedTiming) { --- 30 unchanged lines hidden --- |