summaryrefslogtreecommitdiff
path: root/src/mem/port_impl.hh
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2006-11-08 00:52:04 -0500
committerGabe Black <gblack@eecs.umich.edu>2006-11-08 00:52:04 -0500
commitf1a55570d305dd15d7bc9667453a0ca14bf16462 (patch)
treee3c1cbc993cc44287cdc80032adb3643cc1b3dd6 /src/mem/port_impl.hh
parent16a012e80da8beb2e147bf62ed0d054ed1c0d600 (diff)
downloadgem5-f1a55570d305dd15d7bc9667453a0ca14bf16462.tar.xz
Put the ProcessInfo and StackTrace objects into the ISA namespaces.
--HG-- extra : convert_revision : 1626703583f02a1c9823874290462c1b6bdb6c3c
Diffstat (limited to 'src/mem/port_impl.hh')
-rw-r--r--src/mem/port_impl.hh7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mem/port_impl.hh b/src/mem/port_impl.hh
index b7980bdd2..989cfd338 100644
--- a/src/mem/port_impl.hh
+++ b/src/mem/port_impl.hh
@@ -28,6 +28,9 @@
* Authors: Ali Saidi
*/
+//To get endianness
+#include "arch/isa_traits.hh"
+
#include "mem/port.hh"
#include "sim/byteswap.hh"
@@ -35,7 +38,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 +49,6 @@ FunctionalPort::readGtoH(Addr addr)
{
T d;
readBlob(addr, (uint8_t*)&d, sizeof(T));
- return gtoh(d);
+ return TheISA::gtoh(d);
}