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// -*- mode: C++; c-file-style: "virtutech-c++" -*-
2
3/*
4 © 2016 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_UTILITY_H
17#define SIMICS_SYSTEMC_UTILITY_H
18
19#include <tlm>
20
21namespace simics {
22namespace systemc {
23namespace utility {
24
27static void reset_payload(tlm::tlm_generic_payload *gp) {
28 gp->set_address(0);
29 gp->set_command(tlm::TLM_IGNORE_COMMAND);
30 gp->set_data_ptr(NULL);
31 gp->set_data_length(0);
32 gp->set_response_status(tlm::TLM_INCOMPLETE_RESPONSE);
33 gp->set_dmi_allowed(false);
34 gp->set_byte_enable_ptr(NULL);
35 gp->set_byte_enable_length(0);
36 gp->set_streaming_width(0);
37 gp->set_gp_option(tlm::TLM_MIN_PAYLOAD);
38 // m_extensions, m_mm and m_ref_count left unchannged
39}
40
41} // namespace utility
42} // namespace systemc
43} // namespace simics
44
45#endif
Definition: pci_bus_interface.h:24