summaryrefslogtreecommitdiff
path: root/src/mem
diff options
context:
space:
mode:
authorRon Dreslinski <rdreslin@umich.edu>2006-07-10 12:35:18 -0400
committerRon Dreslinski <rdreslin@umich.edu>2006-07-10 12:35:18 -0400
commit39ffd24b648d45cf4e2b130ea5465ae9f57ac125 (patch)
tree643e2bf5af5febe2dbbb3f75cd98bf1b42aae5bd /src/mem
parentaef232a942935e01c26522c20cc7fb3609075a7d (diff)
downloadgem5-39ffd24b648d45cf4e2b130ea5465ae9f57ac125.tar.xz
Fix offset calculation. Now L2's work with timing&atomic.
src/mem/packet.hh: Offset is based on packet, not request. --HG-- extra : convert_revision : d85af5838370541328ca35072c612d8198020625
Diffstat (limited to 'src/mem')
-rw-r--r--src/mem/packet.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/packet.hh b/src/mem/packet.hh
index 1325dfc5b..534db0077 100644
--- a/src/mem/packet.hh
+++ b/src/mem/packet.hh
@@ -247,7 +247,7 @@ class Packet
Addr getAddr() const { assert(addrSizeValid); return addr; }
int getSize() const { assert(addrSizeValid); return size; }
- Addr getOffset(int blkSize) const { return req->getPaddr() & (Addr)(blkSize - 1); }
+ Addr getOffset(int blkSize) const { return addr & (Addr)(blkSize - 1); }
void addrOverride(Addr newAddr) { assert(addrSizeValid); addr = newAddr; }
void cmdOverride(Command newCmd) { cmd = newCmd; }