diff options
author | Gabe Black <gabeblack@google.com> | 2019-04-24 17:19:23 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2019-04-28 03:09:09 +0000 |
commit | fce9c7a26f8c8a29d51c319c876a7bf0a32404a7 (patch) | |
tree | 61cf66e892473fafab9e0e7726750542a0be92b0 /src/arch/mips | |
parent | cdcc55a6a8fe9b4625b316a8d8845366ccfa71c9 (diff) | |
download | gem5-fce9c7a26f8c8a29d51c319c876a7bf0a32404a7.tar.xz |
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 <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'src/arch/mips')
-rw-r--r-- | src/arch/mips/stacktrace.cc | 7 |
1 files changed, 3 insertions, 4 deletions
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<Addr>(base + task_off); + tsk = vp.read<Addr>(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<uint16_t>(task + pid_off); + pd = vp.read<uint16_t>(task + pid_off, GuestByteOrder); return pd; } -string +std::string ProcessInfo::name(Addr ksp) const { Addr task = this->task(ksp); |