diff options
Diffstat (limited to 'src/mem/port.hh')
-rw-r--r-- | src/mem/port.hh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mem/port.hh b/src/mem/port.hh index b89c7dbd3..2edad095e 100644 --- a/src/mem/port.hh +++ b/src/mem/port.hh @@ -249,6 +249,14 @@ class FunctionalPort : public Port virtual void recvFunctional(Packet *pkt) { panic("FuncPort is UniDir"); } virtual void recvStatusChange(Status status) {} + /** a write function that also does an endian conversion. */ + template <typename T> + inline void writeHtoG(Addr addr, T d); + + /** a read function that also does an endian conversion. */ + template <typename T> + inline T readGtoH(Addr addr); + template <typename T> inline void write(Addr addr, T d) { |