SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
process_stack.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_PROCESS_STACK_H
17#define SIMICS_SYSTEMC_PROCESS_STACK_H
18
21
22#include <systemc>
23#include <stack>
24
25namespace simics {
26namespace systemc {
27
30 public:
32 /* ProcessStackInterface */
33 void push(); /* override */
34 void pop(); /* override */
35 void waitForCurrentProcessOnTop(); /* override */
36 void runUntilStackEmpty(); /* override */
38 sc_core::sc_curr_proc_kind enter_process_kind); /* override */
39
40 private:
41 std::stack<sc_core::sc_process_handle> stack_;
42 sc_core::sc_event return_event_;
43 iface::SimulationInterface *simulation_;
44};
45
46} // namespace systemc
47} // namespace simics
48
49#endif
The process stack helps maintain a LIFO order of function calls that cross the SystemC/Simics border,...
Definition: process_stack_interface.h:27
Definition: process_stack.h:29
void waitForExitCondition(sc_core::sc_curr_proc_kind enter_process_kind)
ProcessStack(iface::SimulationInterface *simulation)
Interface to the SystemC simulation.
Definition: simulation_interface.h:27
Definition: pci_bus_interface.h:24