diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2006-06-08 19:03:58 -0400 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2006-06-08 19:03:58 -0400 |
commit | 8ee856f1d53f9b181a06183c8c86855898b82ba7 (patch) | |
tree | 9566627ea771ec643b6736c8e83d6422a6e88092 /src/mem/port.hh | |
parent | 54d4220b004a385d04def37fa55c820366da0d4a (diff) | |
download | gem5-8ee856f1d53f9b181a06183c8c86855898b82ba7.tar.xz |
add write/read functions that have endian conversions in them
when we get a virtual port delete it (even though delete does nothing in these cases)
src/arch/alpha/linux/system.cc:
src/arch/alpha/stacktrace.cc:
src/base/remote_gdb.cc:
src/cpu/simple_thread.cc:
when we get a virtual port delete it (even though delete does nothing in this case)
src/mem/port.hh:
src/mem/vport.hh:
add write/read functions that have endian conversions in them
--HG--
extra : convert_revision : 163e05cc038c461f95c92f8ce55422033f9ea513
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) { |