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/*
2 © 2015 Intel Corporation
3
4 This software and the related documents are Intel copyrighted materials, and
5 your use of them is governed by the express license under which they were
6 provided to you ("License"). Unless the License provides otherwise, you may
7 not use, modify, copy, publish, distribute, disclose or transmit this software
8 or the related documents without Intel's prior written permission.
9
10 This software and the related documents are provided as is, with no express or
11 implied warranties, other than those that are expressly stated in the License.
12*/
13
14#ifndef SIMICS_SYSTEMC_SIMICS2TLM_EXTENSION_SENDER_H
15#define SIMICS_SYSTEMC_SIMICS2TLM_EXTENSION_SENDER_H
16
17#include <simics/base/log.h>
22
23namespace simics {
24namespace systemc {
25namespace simics2tlm {
26
28//:: pre simics2tlm_ExtensionSender {{
30 public:
32 // coverity[copy_instead_of_move:SUPPRESS] Ptr is just a pointer
33 gasket_ = gasket;
34 // ExtensionSender gaskets must never use DMI, as that would
35 // bypass the dispatch logic
36 gasket_->set_dmi(false);
37 }
39 return pool_.acquire();
40 }
42 gasket_->trigger(transaction);
43 }
45 SIM_LOG_ERROR(gasket_->simics_obj(), Log_TLM,
46 "Extension not processed correctly.");
47 }
48
49 private:
52};
53// }}
54
55} // namespace simics2tlm
56} // namespace systemc
57} // namespace simics
58
59#endif
Interface used by Extension class to send the extension.
Definition: extension_sender_interface.h:24
A memory manager that implements the tlm::tlm_mm_interface providing a pool of transaction objects.
Definition: transaction_pool.h:32
Transaction acquire()
Definition: transaction_pool.h:78
Class that encapsulates a generic_payload and returns it to the TransactionPool when the Transaction ...
Definition: transaction.h:29
Specialized extension sender for simics2tlm gaskets.
Definition: extension_sender.h:29
void send_failed(iface::Transaction *transaction) override
Called by extension if method_call invocation was missing.
Definition: extension_sender.h:44
iface::Transaction transaction() override
Called by extension to get a new Transaction.
Definition: extension_sender.h:38
void send_extension(iface::Transaction *transaction) override
Called by extension after the extension is set on the payload.
Definition: extension_sender.h:41
void init(simics2tlm::GasketInterface::Ptr gasket)
Definition: extension_sender.h:31
std::shared_ptr< GasketInterface > Ptr
Definition: gasket_interface.h:35
@ Log_TLM
Definition: adapter_log_groups.h:22
Definition: adapter.h:79