AtomicSimpleCPU: fix inadvertent loss of endian conversion on read.
authorSteve Reinhardt <stever@eecs.umich.edu>
Sun, 29 Jul 2007 01:00:05 +0000 (18:00 -0700)
committerSteve 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

index 054f67d6915a528052ce2e9af14d6b572e14c9d8..b830cbf3a10a05025a6ff24729b569106da06ab3 100644 (file)
@@ -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);
         }