From 29318390b5163c973878c859b8e769c96fa205e8 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Thu, 3 Jan 2019 13:57:27 -0800 Subject: 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 Maintainer: Anthony Gutierrez --- src/systemc/tlm_utils/instance_specific_extensions.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/systemc/tlm_utils') diff --git a/src/systemc/tlm_utils/instance_specific_extensions.cc b/src/systemc/tlm_utils/instance_specific_extensions.cc index c0836cd67..91610dd02 100644 --- a/src/systemc/tlm_utils/instance_specific_extensions.cc +++ b/src/systemc/tlm_utils/instance_specific_extensions.cc @@ -23,6 +23,7 @@ #include #include #include +#include namespace tlm { @@ -40,7 +41,7 @@ namespace class ispex_registry // Copied from tlm_gp.cpp. { typedef unsigned int key_type; - typedef std::map type_map; + typedef std::map type_map; public: static ispex_registry & @@ -54,7 +55,7 @@ class ispex_registry // Copied from tlm_gp.cpp. } unsigned int - register_extension(sc_core::sc_type_index type) + register_extension(std::type_index type) { type_map::const_iterator it = ids_.find(type); -- cgit v1.2.3