sc_module.cc (13175:b93fb6caf043) sc_module.cc (13189:057566bc8fd6)
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

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

356{
357 ::sc_core::next_trigger(d, u, eal);
358}
359
360
361bool
362sc_module::timed_out()
363{
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

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

356{
357 ::sc_core::next_trigger(d, u, eal);
358}
359
360
361bool
362sc_module::timed_out()
363{
364 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
365 return false;
364 return ::sc_core::timed_out();
366}
367
368
369void
370sc_module::wait()
371{
372 ::sc_core::wait();
373}

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

556next_trigger(double d, sc_time_unit u, const sc_event_and_list &eal)
557{
558 next_trigger(sc_time(d, u), eal);
559}
560
561bool
562timed_out()
563{
365}
366
367
368void
369sc_module::wait()
370{
371 ::sc_core::wait();
372}

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

555next_trigger(double d, sc_time_unit u, const sc_event_and_list &eal)
556{
557 next_trigger(sc_time(d, u), eal);
558}
559
560bool
561timed_out()
562{
564 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
565 return false;
563 ::sc_gem5::Process *p = sc_gem5::scheduler.current();
564 if (!p)
565 return false;
566 else
567 return p->timedOut();
566}
567
568
569void
570wait()
571{
572 sc_gem5::Process *p = sc_gem5::scheduler.current();
573 p->setDynamic(nullptr);

--- 175 unchanged lines hidden ---
568}
569
570
571void
572wait()
573{
574 sc_gem5::Process *p = sc_gem5::scheduler.current();
575 p->setDynamic(nullptr);

--- 175 unchanged lines hidden ---