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/x86/stacktrace.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/arch/x86') diff --git a/src/arch/x86/stacktrace.cc b/src/arch/x86/stacktrace.cc index cdfd64b78..2d9eaea73 100644 --- a/src/arch/x86/stacktrace.cc +++ b/src/arch/x86/stacktrace.cc @@ -54,7 +54,7 @@ readSymbol(ThreadContext *tc, const std::string name) if (!symtab->findAddress(name, addr)) panic("thread info not compiled into kernel\n"); - return vp.readGtoH(addr); + return vp.read(addr, GuestByteOrder); } ProcessInfo::ProcessInfo(ThreadContext *_tc) : tc(_tc) @@ -76,7 +76,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; } @@ -91,7 +91,7 @@ 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; } -- cgit v1.2.3