From fce9c7a26f8c8a29d51c319c876a7bf0a32404a7 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 24 Apr 2019 17:19:23 -0700 Subject: mem: Remove the ISA specialized versions of port proxy's read/write. These selected their behavior based on ifdefs and had to be disabled when on the NULL ISA. The versions which take an explicit endianness have been renamed to just read/write instead of readGtoH and writeHtoG since the direction of the translation is obvious from context. Change-Id: I6cfbfda6c4481962d442d3370534e50532d41814 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18372 Reviewed-by: Gabe Black Maintainer: Gabe Black Tested-by: kokoro --- src/arch/mips/stacktrace.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/arch/mips') diff --git a/src/arch/mips/stacktrace.cc b/src/arch/mips/stacktrace.cc index f584855dc..da492f12f 100644 --- a/src/arch/mips/stacktrace.cc +++ b/src/arch/mips/stacktrace.cc @@ -41,7 +41,6 @@ #include "mem/fs_translating_port_proxy.hh" #include "sim/system.hh" -using namespace std; using namespace MipsISA; ProcessInfo::ProcessInfo(ThreadContext *_tc) : tc(_tc) @@ -57,7 +56,7 @@ ProcessInfo::task(Addr ksp) const Addr tsk; FSTranslatingPortProxy &vp = tc->getVirtProxy(); - tsk = vp.readGtoH(base + task_off); + tsk = vp.read(base + task_off, GuestByteOrder); return tsk; } @@ -72,12 +71,12 @@ ProcessInfo::pid(Addr ksp) const uint16_t pd; FSTranslatingPortProxy &vp = tc->getVirtProxy(); - pd = vp.readGtoH(task + pid_off); + pd = vp.read(task + pid_off, GuestByteOrder); return pd; } -string +std::string ProcessInfo::name(Addr ksp) const { Addr task = this->task(ksp); -- cgit v1.2.3