diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2006-11-08 00:52:04 -0500 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2006-11-08 00:52:04 -0500 |
commit | f1a55570d305dd15d7bc9667453a0ca14bf16462 (patch) | |
tree | e3c1cbc993cc44287cdc80032adb3643cc1b3dd6 /src/mem | |
parent | 16a012e80da8beb2e147bf62ed0d054ed1c0d600 (diff) | |
download | gem5-f1a55570d305dd15d7bc9667453a0ca14bf16462.tar.xz |
Put the ProcessInfo and StackTrace objects into the ISA namespaces.
--HG--
extra : convert_revision : 1626703583f02a1c9823874290462c1b6bdb6c3c
Diffstat (limited to 'src/mem')
-rw-r--r-- | src/mem/port_impl.hh | 7 |
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); } |