projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aef232a
)
Fix offset calculation. Now L2's work with timing&atomic.
author
Ron Dreslinski
<rdreslin@umich.edu>
Mon, 10 Jul 2006 16:35:18 +0000
(12:35 -0400)
committer
Ron Dreslinski
<rdreslin@umich.edu>
Mon, 10 Jul 2006 16:35:18 +0000
(12:35 -0400)
src/mem/packet.hh:
Offset is based on packet, not request.
--HG--
extra : convert_revision :
d85af5838370541328ca35072c612d8198020625
src/mem/packet.hh
patch
|
blob
|
history
diff --git
a/src/mem/packet.hh
b/src/mem/packet.hh
index 1325dfc5b8e65279afdfa34b52c0f3eb540e4b9e..534db00779fccfd2d6aa7776013ab2c7515fe959 100644
(file)
--- 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; }