X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmem%2Fport_impl.hh;h=bc95921647949241fb63ddcf4a1fe1022f0a9b1f;hb=2a1309f2134986edcbff846aff5951ec1e8df6e1;hp=b7980bdd2a3fe737d450089c85be58d8068e984f;hpb=74546aac0124a5ba09a0e6bfef18dc3e0b7509b8;p=gem5.git diff --git a/src/mem/port_impl.hh b/src/mem/port_impl.hh index b7980bdd2..bc9592164 100644 --- a/src/mem/port_impl.hh +++ b/src/mem/port_impl.hh @@ -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 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); }