diff options
author | Steve Reinhardt <stever@eecs.umich.edu> | 2007-07-28 18:00:05 -0700 |
---|---|---|
committer | Steve Reinhardt <stever@eecs.umich.edu> | 2007-07-28 18:00:05 -0700 |
commit | aaf59949e58ceb617aa4efd04597a63c88638b9d (patch) | |
tree | 05d317871ee09edf3e8389172a1bddc3aba996c8 /src/cpu | |
parent | accc0d69720382f1c14451cd67e7b11197747c20 (diff) | |
download | gem5-aaf59949e58ceb617aa4efd04597a63c88638b9d.tar.xz |
AtomicSimpleCPU: fix inadvertent loss of endian conversion on read.
--HG--
extra : convert_revision : 367bf2431bf4f4eb7c4d5723816e5db6f7233aed
Diffstat (limited to 'src/cpu')
-rw-r--r-- | src/cpu/simple/atomic.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cpu/simple/atomic.cc b/src/cpu/simple/atomic.cc index 054f67d69..b830cbf3a 100644 --- 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); } |