Deleted Added
sdiff udiff text old ( 13059:4be5f408e128 ) new ( 13067:3d6ef32002ef )
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

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

158
159 if (stopAfterCallbacks)
160 fatal("Simulation called sc_stop during elaboration.\n");
161}
162
163void
164Kernel::t0Handler()
165{
166 ::sc_gem5::scheduler.initPhase();
167
168 status(::sc_core::SC_RUNNING);
169}
170
171Kernel *kernel;
172
173} // namespace sc_gem5
174
175sc_gem5::Kernel *
176SystemC_KernelParams::create()
177{
178 panic_if(sc_gem5::kernel,
179 "Only one systemc kernel object may be defined.\n");
180 sc_gem5::kernel = new sc_gem5::Kernel(this);
181 return sc_gem5::kernel;
182}