summaryrefslogtreecommitdiff
path: root/src/systemc/ext/tlm_core/2/sockets/base_socket_if.hh
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2019-01-03 13:57:27 -0800
committerGabe Black <gabeblack@google.com>2019-01-09 01:35:51 +0000
commit29318390b5163c973878c859b8e769c96fa205e8 (patch)
treefb26ea313a8797e440c825351db1621a25dde632 /src/systemc/ext/tlm_core/2/sockets/base_socket_if.hh
parent5701aab0f17aec5d2f857fa00a75b8f5db617ec1 (diff)
downloadgem5-29318390b5163c973878c859b8e769c96fa205e8.tar.xz
systemc: Replace sc_core::sc_type_index with std::type_index.
The former is either the same as the later, or a custom wrapper if C++11 isn't supported. Since we generally expect C++11 support, we can skip the indirection. Change-Id: I9a45e3854bb7cc56d094e3fe2773fe4b5c94403b Reviewed-on: https://gem5-review.googlesource.com/c/15297 Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com> Maintainer: Anthony Gutierrez <anthony.gutierrez@amd.com>
Diffstat (limited to 'src/systemc/ext/tlm_core/2/sockets/base_socket_if.hh')
-rw-r--r--src/systemc/ext/tlm_core/2/sockets/base_socket_if.hh3
1 files changed, 2 insertions, 1 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: