SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
utility.h
Go to the documentation of this file.
1/*
2 © 2016 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_UTILITY_H
15#define SIMICS_SYSTEMC_UTILITY_H
16
17#include <tlm>
18
19namespace simics {
20namespace systemc {
21namespace utility {
22
25static void reset_payload(tlm::tlm_generic_payload *gp) {
26 gp->set_address(0);
27 gp->set_command(tlm::TLM_IGNORE_COMMAND);
28 gp->set_data_ptr(NULL);
29 gp->set_data_length(0);
30 gp->set_response_status(tlm::TLM_INCOMPLETE_RESPONSE);
31 gp->set_dmi_allowed(false);
32 gp->set_byte_enable_ptr(NULL);
33 gp->set_byte_enable_length(0);
34 gp->set_streaming_width(0);
35 gp->set_gp_option(tlm::TLM_MIN_PAYLOAD);
36 // m_extensions, m_mm and m_ref_count left unchannged
37}
38
39} // namespace utility
40} // namespace systemc
41} // namespace simics
42
43#endif
Definition: adapter.h:79