scheduler.hh (13260:4d18f1d20093) | scheduler.hh (13264:cdb71995fe75) |
---|---|
1/* 2 * Copyright 2018 Google, Inc. 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 --- 351 unchanged lines hidden (view full) --- 360 bool stopped() { return status() == StatusStopped; } 361 bool inEvaluate() { return status() == StatusEvaluate; } 362 bool inUpdate() { return status() == StatusUpdate; } 363 bool inDelta() { return status() == StatusDelta; } 364 bool inTiming() { return status() == StatusTiming; } 365 366 uint64_t changeStamp() { return _changeStamp; } 367 | 1/* 2 * Copyright 2018 Google, Inc. 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 --- 351 unchanged lines hidden (view full) --- 360 bool stopped() { return status() == StatusStopped; } 361 bool inEvaluate() { return status() == StatusEvaluate; } 362 bool inUpdate() { return status() == StatusUpdate; } 363 bool inDelta() { return status() == StatusDelta; } 364 bool inTiming() { return status() == StatusTiming; } 365 366 uint64_t changeStamp() { return _changeStamp; } 367 |
368 void throwToScMain(const ::sc_core::sc_report *r=nullptr); | 368 void throwToScMain(); |
369 370 Status status() { return _status; } 371 void status(Status s) { _status = s; } 372 373 void registerTraceFile(TraceFile *tf) { traceFiles.insert(tf); } 374 void unregisterTraceFile(TraceFile *tf) { traceFiles.erase(tf); } 375 376 private: --- 129 unchanged lines hidden (view full) --- 506 scheduler.schedule(this); 507 scheduler.throwToScMain(); 508 } 509 510 scheduler.status(StatusOther); 511 scheduler.completeTimeSlot(this); 512} 513 | 369 370 Status status() { return _status; } 371 void status(Status s) { _status = s; } 372 373 void registerTraceFile(TraceFile *tf) { traceFiles.insert(tf); } 374 void unregisterTraceFile(TraceFile *tf) { traceFiles.erase(tf); } 375 376 private: --- 129 unchanged lines hidden (view full) --- 506 scheduler.schedule(this); 507 scheduler.throwToScMain(); 508 } 509 510 scheduler.status(StatusOther); 511 scheduler.completeTimeSlot(this); 512} 513 |
514const ::sc_core::sc_report *reportifyException(); | 514const ::sc_core::sc_report reportifyException(); |
515 516} // namespace sc_gem5 517 518#endif // __SYSTEMC_CORE_SCHEDULER_H__ | 515 516} // namespace sc_gem5 517 518#endif // __SYSTEMC_CORE_SCHEDULER_H__ |