sc_module.cc (12993:977fa1dfe9b3) sc_module.cc (13035:bafbdba2352a)
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

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

59Process *
60newCThreadProcess(const char *name, ProcessFuncWrapper *func)
61{
62 Process *p = new CThread(name, func);
63 scheduler.reg(p);
64 return p;
65}
66
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

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

59Process *
60newCThreadProcess(const char *name, ProcessFuncWrapper *func)
61{
62 Process *p = new CThread(name, func);
63 scheduler.reg(p);
64 return p;
65}
66
67UniqueNameGen nameGen;
68
67} // namespace sc_gem5
68
69namespace sc_core
70{
71
72sc_bind_proxy::sc_bind_proxy(const sc_interface &_interface) :
73 _interface(&_interface), _port(nullptr)
74{}

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

638
639void
640at_negedge(const sc_signal_in_if<sc_dt::sc_logic> &)
641{
642 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
643}
644
645const char *
69} // namespace sc_gem5
70
71namespace sc_core
72{
73
74sc_bind_proxy::sc_bind_proxy(const sc_interface &_interface) :
75 _interface(&_interface), _port(nullptr)
76{}

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

640
641void
642at_negedge(const sc_signal_in_if<sc_dt::sc_logic> &)
643{
644 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
645}
646
647const char *
646sc_gen_unique_name(const char *)
648sc_gen_unique_name(const char *seed)
647{
649{
648 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
649 return "";
650 ::sc_gem5::Module *mod = ::sc_gem5::currentModule();
651 return mod ? mod->uniqueName(seed) :
652 ::sc_gem5::nameGen.gen(seed);
650}
651
652bool
653sc_hierarchical_name_exists(const char *name)
654{
655 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
656 return false;
657}

--- 22 unchanged lines hidden ---
653}
654
655bool
656sc_hierarchical_name_exists(const char *name)
657{
658 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
659 return false;
660}

--- 22 unchanged lines hidden ---