stats: cleanup a few small problems in stats
[gem5.git] / src / mem / port_impl.hh
index b7980bdd2a3fe737d450089c85be58d8068e984f..bc95921647949241fb63ddcf4a1fe1022f0a9b1f 100644 (file)
@@ -28,6 +28,8 @@
  * Authors: Ali Saidi
  */
 
+#include "arch/isa_traits.hh"
+#include "config/the_isa.hh"
 #include "mem/port.hh"
 #include "sim/byteswap.hh"
 
@@ -35,7 +37,7 @@ template <typename T>
 void
 FunctionalPort::writeHtoG(Addr addr, T d)
 {
-    d = htog(d);
+    d = TheISA::htog(d);
     writeBlob(addr, (uint8_t*)&d, sizeof(T));
 }
 
@@ -46,6 +48,6 @@ FunctionalPort::readGtoH(Addr addr)
 {
     T d;
     readBlob(addr, (uint8_t*)&d, sizeof(T));
-    return gtoh(d);
+    return TheISA::gtoh(d);
 }