kernel.cc (13042:8c1fb556547e) kernel.cc (13045:ccedccd0d93d)
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) ---

59 // Install ourselves as the scheduler's event manager.
60 ::sc_gem5::scheduler.setEventQueue(eventQueue());
61}
62
63void
64Kernel::init()
65{
66 status(::sc_core::SC_BEFORE_END_OF_ELABORATION);
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) ---

59 // Install ourselves as the scheduler's event manager.
60 ::sc_gem5::scheduler.setEventQueue(eventQueue());
61}
62
63void
64Kernel::init()
65{
66 status(::sc_core::SC_BEFORE_END_OF_ELABORATION);
67 for (auto m: sc_gem5::allModules)
67 for (auto m: sc_gem5::allModules) {
68 callbackModule(m);
68 m->sc_mod()->before_end_of_elaboration();
69 m->sc_mod()->before_end_of_elaboration();
70 }
71 callbackModule(nullptr);
69
70 if (stopAfterCallbacks)
71 stopWork();
72}
73
74void
75Kernel::regStats()
76{

--- 78 unchanged lines hidden ---
72
73 if (stopAfterCallbacks)
74 stopWork();
75}
76
77void
78Kernel::regStats()
79{

--- 78 unchanged lines hidden ---