SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
extension_sender.h
Go to the documentation of this file.
1// -*- mode: C++; c-file-style: "virtutech-c++" -*-
2
3/*
4 © 2015 Intel Corporation
5
6 This software and the related documents are Intel copyrighted materials, and
7 your use of them is governed by the express license under which they were
8 provided to you ("License"). Unless the License provides otherwise, you may
9 not use, modify, copy, publish, distribute, disclose or transmit this software
10 or the related documents without Intel's prior written permission.
11
12 This software and the related documents are provided as is, with no express or
13 implied warranties, other than those that are expressly stated in the License.
14*/
15
16#ifndef SIMICS_SYSTEMC_SIMICS2TLM_EXTENSION_SENDER_H
17#define SIMICS_SYSTEMC_SIMICS2TLM_EXTENSION_SENDER_H
18
19#include <simics/base/log.h>
24
25namespace simics {
26namespace systemc {
27namespace simics2tlm {
28
30//:: pre simics2tlm_ExtensionSender {{
32 public:
34 gasket_ = gasket; // coverity[copy_instead_of_move]
35 }
37 return pool_.acquire();
38 }
40 gasket_->trigger(transaction);
41 }
43 SIM_LOG_ERROR(gasket_->simics_obj(), Log_TLM,
44 "Extension not processed correctly.");
45 }
46
47 private:
50};
51// }}
52
53} // namespace simics2tlm
54} // namespace systemc
55} // namespace simics
56
57#endif
Interface used by Extension class to send the extension.
Definition: extension_sender_interface.h:26
A memory manager that implements the tlm::tlm_mm_interface providing a pool of transaction objects.
Definition: transaction_pool.h:34
Transaction acquire()
Definition: transaction_pool.h:63
Class that encapsulates a generic_payload and returns it to the TransactionPool when the Transaction ...
Definition: transaction.h:31
Specialized extension sender for simics2tlm gaskets.
Definition: extension_sender.h:31
virtual void send_failed(iface::Transaction *transaction)
Called by extension if method_call invocation was missing.
Definition: extension_sender.h:42
virtual void send_extension(iface::Transaction *transaction)
Called by extension after the extension is set on the payload.
Definition: extension_sender.h:39
virtual iface::Transaction transaction()
Called by extension to get a new Transaction.
Definition: extension_sender.h:36
void init(simics2tlm::GasketInterface::Ptr gasket)
Definition: extension_sender.h:33
std::shared_ptr< GasketInterface > Ptr
Definition: gasket_interface.h:37
@ Log_TLM
Definition: adapter_log_groups.h:24
Definition: pci_bus_interface.h:24