SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
report_handler.h
Go to the documentation of this file.
1/*
2 © 2014 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_REPORT_HANDLER_H
15#define SIMICS_SYSTEMC_REPORT_HANDLER_H
16
17#include <simics/cc-api.h>
18
19#include <systemc>
20
21namespace simics {
22namespace systemc {
23
26 public:
27 explicit ReportHandler(ConfObjectRef log_object);
28 virtual ~ReportHandler();
29
30 static void init();
31
32 private:
33 static void onReport(const sc_core::sc_report& report,
34 const sc_core::sc_actions& action);
35
36 conf_object_t *prev_log_object_;
37 static conf_object_t *log_object_;
38};
39
40} // namespace systemc
41} // namespace simics
42
43#endif
Routes any sc_core::sc_report emitted by the SystemC model to Simics.
Definition: report_handler.h:25
ReportHandler(ConfObjectRef log_object)
Definition: adapter.h:79