SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
error_transaction_handler.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_TLM2SIMICS_ERROR_TRANSACTION_HANDLER_H
17#define SIMICS_SYSTEMC_TLM2SIMICS_ERROR_TRANSACTION_HANDLER_H
18
22
23namespace simics {
24namespace systemc {
25namespace tlm2simics {
26
29 public:
31 TransactionHandlerInterface *transaction_handler,
36
37 // TransactionHandlerInterface
38 bool get_direct_mem_ptr(ConfObjectRef &simics_obj,
39 tlm::tlm_generic_payload &trans,
40 tlm::tlm_dmi &dmi_data) override;
41 tlm::tlm_response_status simics_transaction(
42 ConfObjectRef &simics_obj,
43 tlm::tlm_generic_payload *trans) override;
44 unsigned int debug_transaction(ConfObjectRef &simics_obj,
45 tlm::tlm_generic_payload *trans) override;
46 void update_dmi_allowed(ConfObjectRef &simics_obj,
47 tlm::tlm_generic_payload *trans) override;
48 bool byte_enable_supported(ConfObjectRef &simics_obj,
49 tlm::tlm_generic_payload *trans) override;
50 const GasketOwner *gasket_owner() const override;
51 const InterfaceProvider *interface_provider() const override;
53
54 private:
55 InterfaceProvider *interface_provider_;
56 TransactionHandlerInterface *transaction_handler_;
57 iface::ReceiverInterface *receiver_;
58 void error(ConfObjectRef *simics_obj, const char *message,
59 tlm::tlm_generic_payload *trans);
60 void log_error(ConfObjectRef *simics_obj, const char *message);
61};
62
63} // namespace tlm2simics
64} // namespace systemc
65} // namespace simics
66
67#endif
Returns the interface provided by the associated Simics object.
Definition: interface_provider.h:32
Interface implemented by the ExtensionReceiver class, used by the ExtensionDispatcher.
Definition: receiver_interface.h:29
Definition: error_transaction_handler.h:28
iface::ReceiverInterface * receiver() override
const InterfaceProvider * interface_provider() const override
bool byte_enable_supported(ConfObjectRef &simics_obj, tlm::tlm_generic_payload *trans) override
bool get_direct_mem_ptr(ConfObjectRef &simics_obj, tlm::tlm_generic_payload &trans, tlm::tlm_dmi &dmi_data) override
void update_dmi_allowed(ConfObjectRef &simics_obj, tlm::tlm_generic_payload *trans) override
ErrorTransactionHandler(const ErrorTransactionHandler &)=delete
unsigned int debug_transaction(ConfObjectRef &simics_obj, tlm::tlm_generic_payload *trans) override
ErrorTransactionHandler(InterfaceProvider *interface_provider, TransactionHandlerInterface *transaction_handler, iface::ReceiverInterface *receiver)
ErrorTransactionHandler & operator=(const ErrorTransactionHandler &)=delete
tlm::tlm_response_status simics_transaction(ConfObjectRef &simics_obj, tlm::tlm_generic_payload *trans) override
const GasketOwner * gasket_owner() const override
Base class, responsible for handling a gasket.
Definition: gasket_owner.h:31
Interface used by Gasket, implemented by protocol specific transaction handlers.
Definition: transaction_handler_interface.h:36
Definition: pci_bus_interface.h:24