From: Steve Reinhardt Date: Sun, 29 Jul 2007 01:00:05 +0000 (-0700) Subject: AtomicSimpleCPU: fix inadvertent loss of endian conversion on read. X-Git-Tag: m5_2.0_beta4~195^2~21 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aaf59949e58ceb617aa4efd04597a63c88638b9d;p=gem5.git AtomicSimpleCPU: fix inadvertent loss of endian conversion on read. --HG-- extra : convert_revision : 367bf2431bf4f4eb7c4d5723816e5db6f7233aed --- 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); }