Deleted Added
sdiff udiff text old ( 13248:a07071974510 ) new ( 13260:4d18f1d20093 )
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

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

30#include <memory>
31#include <string>
32#include <vector>
33
34#include "base/logging.hh"
35#include "systemc/core/kernel.hh"
36#include "systemc/core/module.hh"
37#include "systemc/core/process_types.hh"
38#include "systemc/ext/channel/sc_signal_in_if.hh"
39#include "systemc/ext/core/sc_module.hh"
40#include "systemc/ext/core/sc_module_name.hh"
41#include "systemc/ext/dt/bit/sc_logic.hh"
42#include "systemc/ext/utils/sc_report_handler.hh"
43
44namespace sc_gem5
45{

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

239
240void
241sc_module::end_module()
242{
243 _gem5_module->endModule();
244}
245
246void
247sc_module::reset_signal_is(const sc_in<bool> &, bool)
248{
249 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
250}
251
252void
253sc_module::reset_signal_is(const sc_inout<bool> &, bool)
254{
255 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
256}
257
258void
259sc_module::reset_signal_is(const sc_out<bool> &, bool)
260{
261 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
262}
263
264void
265sc_module::reset_signal_is(const sc_signal_in_if<bool> &, bool)
266{
267 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
268}
269
270
271void
272sc_module::async_reset_signal_is(const sc_in<bool> &, bool)
273{
274 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
275}
276
277void
278sc_module::async_reset_signal_is(const sc_inout<bool> &, bool)
279{
280 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
281}
282
283void
284sc_module::async_reset_signal_is(const sc_out<bool> &, bool)
285{
286 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
287}
288
289void
290sc_module::async_reset_signal_is(const sc_signal_in_if<bool> &, bool)
291{
292 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
293}
294
295
296void
297sc_module::dont_initialize()
298{
299 ::sc_gem5::Process::newest()->dontInitialize(true);
300}

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

621
622void
623wait(int n)
624{
625 if (n <= 0) {
626 std::string msg = csprintf("n = %d", n);
627 SC_REPORT_ERROR("(E525) wait(n) is only valid for n > 0", msg.c_str());
628 }
629 for (int i = 0; i < n; i++)
630 wait();
631}
632
633void
634wait(const sc_event &e)
635{
636 sc_gem5::Process *p = sc_gem5::scheduler.current();
637 if (waitErrorCheck(p))
638 return;

--- 174 unchanged lines hidden ---