Deleted Added
sdiff udiff text old ( 2665:a124942bacb8 ) new ( 2684:71f3cabf891f )
full compact
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 235 unchanged lines hidden (view full) ---

244 : Port(_name)
245 {}
246
247 virtual bool recvTiming(Packet *pkt) { panic("FuncPort is UniDir"); }
248 virtual Tick recvAtomic(Packet *pkt) { panic("FuncPort is UniDir"); }
249 virtual void recvFunctional(Packet *pkt) { panic("FuncPort is UniDir"); }
250 virtual void recvStatusChange(Status status) {}
251
252 template <typename T>
253 inline void write(Addr addr, T d)
254 {
255 writeBlob(addr, (uint8_t*)&d, sizeof(T));
256 }
257
258 template <typename T>
259 inline T read(Addr addr)
260 {
261 T d;
262 readBlob(addr, (uint8_t*)&d, sizeof(T));
263 return d;
264 }
265};
266
267#endif //__MEM_PORT_HH__