From aaf59949e58ceb617aa4efd04597a63c88638b9d Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Sat, 28 Jul 2007 18:00:05 -0700 Subject: [PATCH] AtomicSimpleCPU: fix inadvertent loss of endian conversion on read. --HG-- extra : convert_revision : 367bf2431bf4f4eb7c4d5723816e5db6f7233aed --- src/cpu/simple/atomic.cc | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.30.2