projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
accc0d6
)
AtomicSimpleCPU: fix inadvertent loss of endian conversion on read.
author
Steve Reinhardt
<stever@eecs.umich.edu>
Sun, 29 Jul 2007 01:00:05 +0000
(18:00 -0700)
committer
Steve Reinhardt
<stever@eecs.umich.edu>
Sun, 29 Jul 2007 01:00:05 +0000
(18:00 -0700)
--HG--
extra : convert_revision :
367bf2431bf4f4eb7c4d5723816e5db6f7233aed
src/cpu/simple/atomic.cc
patch
|
blob
|
history
diff --git
a/src/cpu/simple/atomic.cc
b/src/cpu/simple/atomic.cc
index 054f67d6915a528052ce2e9af14d6b572e14c9d8..b830cbf3a10a05025a6ff24729b569106da06ab3 100644
(file)
--- a/
src/cpu/simple/atomic.cc
+++ b/
src/cpu/simple/atomic.cc
@@
-293,6
+293,8
@@
AtomicSimpleCPU::read(Addr addr, T &data, unsigned flags)
dcache_access = true;
assert(!pkt.isError());
+ data = gtoh(data);
+
if (req->isLocked()) {
TheISA::handleLockedRead(thread, req);
}