sc_simcontext.cc (13335:299a16ef8e3c) sc_simcontext.cc (13518:6168e030b4c7)
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

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

72{
73 objIndex++;
74 if (::sc_gem5::allObjects.size() > objIndex)
75 return ::sc_gem5::allObjects[objIndex];
76 else
77 return nullptr;
78}
79
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

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

72{
73 objIndex++;
74 if (::sc_gem5::allObjects.size() > objIndex)
75 return ::sc_gem5::allObjects[objIndex];
76 else
77 return nullptr;
78}
79
80bool
81sc_simcontext::elaboration_done()
82{
83 return ::sc_gem5::scheduler.elaborationDone();
84}
85
80sc_simcontext *
81sc_get_curr_simcontext()
82{
83 return &currContext;
84}
85
86} // namespace sc_core
86sc_simcontext *
87sc_get_curr_simcontext()
88{
89 return &currContext;
90}
91
92} // namespace sc_core