From 096598c05a6c352bfd4b93adf06143a43a8f4e11 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 1 May 2019 21:43:09 -0700 Subject: arch, base, sim: Replace Copy(String)?(In|Out) with equivalent code. This expands those functions into code which extracts the virt proxy and then uses the appropriate method on it. This has two benefits. First, the Copy* functions where mostly redundant wrappers around the methods the proxy port already had. Second, using them forced a particular port which might not actually be what the user wanted. Change-Id: I62084631dd080061e3c74997125164f40da2d77c Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18575 Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power Tested-by: kokoro --- src/arch/arm/stacktrace.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/arch/arm') diff --git a/src/arch/arm/stacktrace.cc b/src/arch/arm/stacktrace.cc index b4dbf728b..837b6ad8b 100644 --- a/src/arch/arm/stacktrace.cc +++ b/src/arch/arm/stacktrace.cc @@ -104,7 +104,7 @@ ProcessInfo::name(Addr ksp) const return "unknown"; char comm[256]; - CopyStringOut(tc, comm, task + name_off, sizeof(comm)); + tc->getVirtProxy().readString(comm, task + name_off, sizeof(comm)); if (!comm[0]) return "startup"; -- cgit v1.2.3