object.cc (13317:36c574a4036e) | object.cc (13334:b7b38ffa5863) |
---|---|
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 --- 24 unchanged lines hidden (view full) --- 33#include <stack> 34 35#include "base/logging.hh" 36#include "systemc/core/event.hh" 37#include "systemc/core/module.hh" 38#include "systemc/core/scheduler.hh" 39#include "systemc/ext/core/messages.hh" 40#include "systemc/ext/core/sc_module.hh" | 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 --- 24 unchanged lines hidden (view full) --- 33#include <stack> 34 35#include "base/logging.hh" 36#include "systemc/core/event.hh" 37#include "systemc/core/module.hh" 38#include "systemc/core/scheduler.hh" 39#include "systemc/ext/core/messages.hh" 40#include "systemc/ext/core/sc_module.hh" |
41#include "systemc/ext/core/sc_simcontext.hh" |
|
41 42namespace sc_gem5 43{ 44 45namespace 46{ 47 48ObjectsIt --- 189 unchanged lines hidden (view full) --- 238Object::attr_cltn() const 239{ 240 return cltn; 241} 242 243sc_core::sc_simcontext * 244Object::simcontext() const 245{ | 42 43namespace sc_gem5 44{ 45 46namespace 47{ 48 49ObjectsIt --- 189 unchanged lines hidden (view full) --- 239Object::attr_cltn() const 240{ 241 return cltn; 242} 243 244sc_core::sc_simcontext * 245Object::simcontext() const 246{ |
246 warn("%s not implemented.\n", __PRETTY_FUNCTION__); 247 return nullptr; | 247 return sc_core::sc_get_curr_simcontext(); |
248} 249 250EventsIt 251Object::addChildEvent(sc_core::sc_event *e) 252{ 253 return events.emplace(events.end(), e); 254} 255 --- 73 unchanged lines hidden --- | 248} 249 250EventsIt 251Object::addChildEvent(sc_core::sc_event *e) 252{ 253 return events.emplace(events.end(), e); 254} 255 --- 73 unchanged lines hidden --- |