summaryrefslogtreecommitdiff
path: root/src/systemc
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2019-01-03 14:30:14 -0800
committerGabe Black <gabeblack@google.com>2019-01-09 01:36:08 +0000
commitde51d7c4e784416f993cc192c96b2a6ca98d838a (patch)
treedf925e82d9b981b93e3f768a0ba4642c2a8dc256 /src/systemc
parent29318390b5163c973878c859b8e769c96fa205e8 (diff)
downloadgem5-de51d7c4e784416f993cc192c96b2a6ca98d838a.tar.xz
systemc: Stop using the sc_string_view type.
It doesn't seem to provide anything more that std::string, and comes with extra dependencies/baggage. Change-Id: I2c599bcc93fa4a944ff249410d24e8f8be981afe Reviewed-on: https://gem5-review.googlesource.com/c/15298 Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com> Maintainer: Anthony Gutierrez <anthony.gutierrez@amd.com>
Diffstat (limited to 'src/systemc')
-rw-r--r--src/systemc/tlm_core/2/generic_payload/phase.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/systemc/tlm_core/2/generic_payload/phase.cc b/src/systemc/tlm_core/2/generic_payload/phase.cc
index a3fb93749..8f9172296 100644
--- a/src/systemc/tlm_core/2/generic_payload/phase.cc
+++ b/src/systemc/tlm_core/2/generic_payload/phase.cc
@@ -19,12 +19,11 @@
#include <cstring>
#include <map>
+#include <string>
#include <systemc>
#include <tlm>
#include <typeindex>
-using sc_core::sc_string_view;
-
namespace tlm
{
@@ -43,7 +42,7 @@ struct tlm_phase_registry
}
unsigned int
- register_phase(std::type_index type, sc_string_view name)
+ register_phase(std::type_index type, std::string name)
{
type_map::const_iterator it = ids_.find(type);