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 // coverity[copy_instead_of_move]
35 gasket_ = gasket;
36 // ExtensionSender gaskets must never use DMI, as that would
37 // bypass the dispatch logic
38 gasket_->set_dmi(false);
39 }
41 return pool_.acquire();
42 }
44 gasket_->trigger(transaction);
45 }
47 SIM_LOG_ERROR(gasket_->simics_obj(), Log_TLM,
48 "Extension not processed correctly.");
49 }
50
51 private:
54};
55// }}
56
57} // namespace simics2tlm
58} // namespace systemc
59} // namespace simics
60
61#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:80
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
void send_failed(iface::Transaction *transaction) override
Called by extension if method_call invocation was missing.
Definition: extension_sender.h:46
iface::Transaction transaction() override
Called by extension to get a new Transaction.
Definition: extension_sender.h:40
void send_extension(iface::Transaction *transaction) override
Called by extension after the extension is set on the payload.
Definition: extension_sender.h:43
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: adapter.h:81