diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2006-01-31 14:20:39 -0500 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2006-01-31 14:20:39 -0500 |
commit | 4875b3346709d72e0be99fb6ccede65550b91f94 (patch) | |
tree | bd71ec62c7a5a74e40ca226a2ac5b4f26c71f81d /mem/request.hh | |
parent | a1033448ead67ea2819d67609c0390aefc865b0f (diff) | |
download | gem5-4875b3346709d72e0be99fb6ccede65550b91f94.tar.xz |
changed sendresult -> bool,tick,void as appropriate
first crack at io devices code
made CpuRequest that derives from Request
dev/io_device.cc:
dev/io_device.hh:
first crack at the classes for Pio and Dma devices
dev/platform.hh:
We are going to a system pointer to get info about the memory system
mem/bus.hh:
changed sendresult -> bool,tick,void as appropriate
mem/port.hh:
changed sendresult -> bool,tick,void as appropriate;
removed the sendTiming(pkt,t) call since it is not really
implementable in a generic fashion
mem/request.hh:
pulled items from Request into CpuRequest
--HG--
extra : convert_revision : 6213cf2b66417fa023b80884d9e623e78f5aa891
Diffstat (limited to 'mem/request.hh')
-rw-r--r-- | mem/request.hh | 37 |
1 files changed, 22 insertions, 15 deletions
diff --git a/mem/request.hh b/mem/request.hh index 331f76698..31f5b1921 100644 --- a/mem/request.hh +++ b/mem/request.hh @@ -37,34 +37,41 @@ class Request { - /** The virtual address of the request. */ - Addr vaddr; /** The physical address of the request. */ Addr paddr; - /** whether this req came from the CPU or not */ - bool nic_req; - - /** The address space ID. */ - int asid; - /** The related execution context. */ - ExecContext *xc; + /** whether this req came from the CPU or not **DO we need this??***/ + bool nicReq; /** The size of the request. */ int size; + /** The time this request was started. Used to calculate latencies. */ + Tick time; + + /** Destination address if this is a block copy. */ + Addr copyDest; +}; + +class CpuRequest : public Request +{ + /** The virtual address of the request. */ + Addr vaddr; + + /** The address space ID. */ + int asid; + /** The return value of store conditional. */ - uint64_t result; + uint64_t scResult; /** The cpu number for statistics. */ - int cpu_num; + int cpuNum; + /** The requesting thread id. */ - int thread_num; - /** The time this request was started. Used to calculate latencies. */ - Tick time; + int threadNum; /** program counter of initiating access; for tracing/debugging */ Addr pc; -} +}; #endif // __MEM_REQUEST_HH__ |