diff options
author | Steve Reinhardt <stever@eecs.umich.edu> | 2006-05-31 00:12:29 -0400 |
---|---|---|
committer | Steve Reinhardt <stever@eecs.umich.edu> | 2006-05-31 00:12:29 -0400 |
commit | d77d39daee5c3ba8483d58911a1d5b12c4707040 (patch) | |
tree | 55b0fd6943a73d115d6dccad29ff875b60d65726 /src/mem/port.cc | |
parent | 91e3aa629550fcdaa03173f94674a74ac906ae4c (diff) | |
download | gem5-d77d39daee5c3ba8483d58911a1d5b12c4707040.tar.xz |
Streamline interface to Request object.
src/SConscript:
mem/request.cc no longer needed (all functions inline).
src/cpu/simple/atomic.cc:
src/cpu/simple/base.cc:
src/cpu/simple/timing.cc:
src/dev/io_device.cc:
src/mem/port.cc:
Modified Request object interface.
src/mem/packet.hh:
Modified Request object interface.
Address & size are always set together now, so track
with single flag.
src/mem/request.hh:
Streamline interface to support a handful of calls that set
multiple fields reflecting common usage patterns.
Reduce number of validFoo booleans by combining flags for fields
which must be set together.
--HG--
extra : convert_revision : 3b499de90d6d5f12f0cc7a9a788663265677fe10
Diffstat (limited to 'src/mem/port.cc')
-rw-r--r-- | src/mem/port.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mem/port.cc b/src/mem/port.cc index 651cb739a..e216ffe71 100644 --- a/src/mem/port.cc +++ b/src/mem/port.cc @@ -45,13 +45,12 @@ Port::setPeer(Port *port) void Port::blobHelper(Addr addr, uint8_t *p, int size, Packet::Command cmd) { - Request req(false); + Request req; Packet pkt(&req, cmd, Packet::Broadcast); for (ChunkGenerator gen(addr, size, peerBlockSize()); !gen.done(); gen.next()) { - req.setPaddr(gen.addr()); - req.setSize(gen.size()); + req.setPhys(gen.addr(), gen.size(), 0); pkt.reinitFromRequest(); pkt.dataStatic(p); sendFunctional(&pkt); |