summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cpu/simple/atomic.cc2
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);
}