SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
extension_ignore_receiver.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_IFACE_EXTENSION_IGNORE_RECEIVER_H
15#define SIMICS_SYSTEMC_IFACE_EXTENSION_IGNORE_RECEIVER_H
16
17#include <tlm>
18
20
21namespace simics {
22namespace systemc {
23namespace iface {
24
26template<class TExtension>
28 public:
29 bool handle(tlm::tlm_generic_payload *payload) override {
30 TExtension *extension = payload->get_extension<TExtension>();
31 if (extension && extension->valid()) {
32 payload->set_response_status(tlm::TLM_OK_RESPONSE);
33 extension->method_call_ignore();
34 return true;
35 }
36
37 return false;
38 }
39 bool probe(tlm::tlm_generic_payload *payload) override {
40 return false;
41 }
42};
43
44} // namespace iface
45} // namespace systemc
46} // namespace simics
47
48#endif
Definition: extension_ignore_receiver.h:27
bool probe(tlm::tlm_generic_payload *payload) override
Definition: extension_ignore_receiver.h:39
bool handle(tlm::tlm_generic_payload *payload) override
Definition: extension_ignore_receiver.h:29
Interface implemented by the ExtensionReceiver class, used by the ExtensionDispatcher.
Definition: receiver_interface.h:27
Definition: adapter.h:79