Deleted Added
sdiff udiff text old ( 13292:0dc64d73b440 ) new ( 13296:7f0348c6e8cf )
full compact
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

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

817 wait();
818 while (s.read() == sc_dt::Log_1)
819 wait();
820}
821
822const char *
823sc_gen_unique_name(const char *seed)
824{
825 auto mod = sc_gem5::pickParentModule();
826 if (mod)
827 return mod->uniqueName(seed);
828 sc_gem5::Process *p = sc_gem5::scheduler.current();
829 if (p)
830 return p->uniqueName(seed);
831 return ::sc_gem5::nameGen.gen(seed);
832}
833
834bool
835sc_hierarchical_name_exists(const char *name)
836{
837 return sc_gem5::findEvent(name) != sc_gem5::allEvents.end() ||
838 ::sc_gem5::findObject(name, sc_gem5::allObjects);

--- 23 unchanged lines hidden ---