summaryrefslogtreecommitdiff
path: root/src/systemc/ext/tlm_core/2/sockets
diff options
context:
space:
mode:
Diffstat (limited to 'src/systemc/ext/tlm_core/2/sockets')
-rw-r--r--src/systemc/ext/tlm_core/2/sockets/base_socket_if.hh3
-rw-r--r--src/systemc/ext/tlm_core/2/sockets/initiator_socket.hh4
-rw-r--r--src/systemc/ext/tlm_core/2/sockets/target_socket.hh4
3 files changed, 8 insertions, 3 deletions
diff --git a/src/systemc/ext/tlm_core/2/sockets/base_socket_if.hh b/src/systemc/ext/tlm_core/2/sockets/base_socket_if.hh
index 29f3397b9..a494b683f 100644
--- a/src/systemc/ext/tlm_core/2/sockets/base_socket_if.hh
+++ b/src/systemc/ext/tlm_core/2/sockets/base_socket_if.hh
@@ -21,6 +21,7 @@
#define __SYSTEMC_EXT_TLM_CORE_2_SOCKETS_BASE_SOCKET_IF_H__
#include <systemc>
+#include <typeindex>
namespace tlm
{
@@ -45,7 +46,7 @@ class tlm_base_socket_if
virtual sc_core::sc_export_base &get_export_base() = 0;
virtual sc_core::sc_export_base const &get_export_base() const = 0;
virtual unsigned int get_bus_width() const = 0;
- virtual sc_core::sc_type_index get_protocol_types() const = 0;
+ virtual std::type_index get_protocol_types() const = 0;
virtual tlm_socket_category get_socket_category() const = 0;
protected:
diff --git a/src/systemc/ext/tlm_core/2/sockets/initiator_socket.hh b/src/systemc/ext/tlm_core/2/sockets/initiator_socket.hh
index 91c147bc9..a7c53cc33 100644
--- a/src/systemc/ext/tlm_core/2/sockets/initiator_socket.hh
+++ b/src/systemc/ext/tlm_core/2/sockets/initiator_socket.hh
@@ -20,6 +20,8 @@
#ifndef __SYSTEMC_EXT_TLM_CORE_2_SOCKETS_INITIATOR_SOCKET_HH__
#define __SYSTEMC_EXT_TLM_CORE_2_SOCKETS_INITIATOR_SOCKET_HH__
+#include <typeindex>
+
#include "tlm_core/2/interfaces/fw_bw_ifs.hh"
#include "tlm_core/2/sockets/base_socket_if.hh"
@@ -192,7 +194,7 @@ class tlm_initiator_socket : public tlm_base_initiator_socket<
virtual const char *kind() const { return "tlm_initiator_socket"; }
- virtual sc_core::sc_type_index
+ virtual std::type_index
get_protocol_types() const
{
return typeid(TYPES);
diff --git a/src/systemc/ext/tlm_core/2/sockets/target_socket.hh b/src/systemc/ext/tlm_core/2/sockets/target_socket.hh
index b412a7d5c..4ca31c9b9 100644
--- a/src/systemc/ext/tlm_core/2/sockets/target_socket.hh
+++ b/src/systemc/ext/tlm_core/2/sockets/target_socket.hh
@@ -20,6 +20,8 @@
#ifndef __SYSTEMC_EXT_TLM_CORE_2_SOCKETS_TARGET_SOCKET_HH__
#define __SYSTEMC_EXT_TLM_CORE_2_SOCKETS_TARGET_SOCKET_HH__
+#include <typeindex>
+
#include "tlm_core/2/interfaces/fw_bw_ifs.hh"
#include "tlm_core/2/sockets/base_socket_if.hh"
@@ -211,7 +213,7 @@ class tlm_target_socket :
virtual const char* kind() const { return "tlm_target_socket"; }
- virtual sc_core::sc_type_index
+ virtual std::type_index
get_protocol_types() const
{
return typeid(TYPES);