summaryrefslogtreecommitdiff
path: root/src/systemc/tlm_utils/instance_specific_extensions.cc
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/tlm_utils/instance_specific_extensions.cc
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/tlm_utils/instance_specific_extensions.cc')
-rw-r--r--src/systemc/tlm_utils/instance_specific_extensions.cc5
1 files changed, 3 insertions, 2 deletions
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 <map>
#include <systemc>
#include <tlm>
+#include <typeindex>
namespace tlm
{
@@ -40,7 +41,7 @@ namespace
class ispex_registry // Copied from tlm_gp.cpp.
{
typedef unsigned int key_type;
- typedef std::map<sc_core::sc_type_index, key_type> type_map;
+ typedef std::map<std::type_index, key_type> 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);