x86: Get rid of some unnecessary TheISA-es in x86.
authorGabe Black <gabeblack@google.com>
Mon, 29 Apr 2019 23:32:37 +0000 (16:32 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 30 Apr 2019 18:52:13 +0000 (18:52 +0000)
The X86ISA namespace is already available.

Change-Id: I5774968fdfb30b01eba52cdec5e6ef2c75cb66e4
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18471
Reviewed-by: Brandon Potter <Brandon.Potter@amd.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/x86/memhelpers.hh

index 416439b9e3c9719184a1150543d4d49917ea9b74..59db401c196ad050033d6730b24280d381cbde4a 100644 (file)
@@ -179,7 +179,7 @@ writeMemTiming(ExecContext *xc, Trace::InstRecord *traceData, uint64_t mem,
 {
     if (traceData)
         traceData->setData(mem);
-    mem = TheISA::htog(mem);
+    mem = htog(mem);
     return xc->writeMem((uint8_t *)&mem, dataSize, addr, flags, res);
 }
 
@@ -209,7 +209,7 @@ writeMemAtomic(ExecContext *xc, Trace::InstRecord *traceData, uint64_t mem,
 {
     if (traceData)
         traceData->setData(mem);
-    uint64_t host_mem = TheISA::htog(mem);
+    uint64_t host_mem = htog(mem);
     Fault fault =
           xc->writeMem((uint8_t *)&host_mem, dataSize, addr, flags, res);
     if (fault == NoFault && res)