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 --- 25 unchanged lines hidden (view full) --- 34#include <vector> 35 36#include "base/fiber.hh" 37#include "sim/eventq.hh" 38#include "systemc/core/bindinfo.hh" 39#include "systemc/core/list.hh" 40#include "systemc/core/object.hh" 41#include "systemc/ext/core/sc_event.hh" |
42#include "systemc/ext/core/sc_export.hh" |
43#include "systemc/ext/core/sc_interface.hh" 44#include "systemc/ext/core/sc_module.hh" 45#include "systemc/ext/core/sc_port.hh" 46#include "systemc/ext/core/sc_process_handle.hh" 47 48namespace sc_gem5 49{ 50 --- 169 unchanged lines hidden (view full) --- 220 for (int i = 0; i < port->size(); i++) { 221 const ::sc_core::sc_event *e = 222 &port->_gem5BindInfo[i]->interface->default_event(); 223 s.push_back(new SensitivityEvent(process, e)); 224 } 225 } 226}; 227 |
228class PendingSensitivityExport : public PendingSensitivity 229{ 230 private: 231 const sc_core::sc_export_base *exp; 232 233 public: 234 PendingSensitivityExport(Process *p, const sc_core::sc_export_base *exp) : 235 PendingSensitivity(p), exp(exp) 236 {} 237 238 void 239 finalize(Sensitivities &s) override 240 { 241 s.push_back(new SensitivityEvent(process, 242 &exp->get_interface()->default_event())); 243 } 244}; 245 |
246class PendingSensitivityFinder : public PendingSensitivity 247{ 248 private: 249 const sc_core::sc_event_finder *finder; 250 251 public: 252 PendingSensitivityFinder(Process *p, const sc_core::sc_event_finder *f) : 253 PendingSensitivity(p), finder(f) --- 128 unchanged lines hidden --- |