AtomicSimpleCPU: fix inadvertent loss of endian conversion on read.

--HG--
extra : convert_revision : 367bf2431bf4f4eb7c4d5723816e5db6f7233aed
This commit is contained in:
Steve Reinhardt 2007-07-28 18:00:05 -07:00
parent accc0d6972
commit aaf59949e5

View file

@ -293,6 +293,8 @@ AtomicSimpleCPU::read(Addr addr, T &data, unsigned flags)
dcache_access = true; dcache_access = true;
assert(!pkt.isError()); assert(!pkt.isError());
data = gtoh(data);
if (req->isLocked()) { if (req->isLocked()) {
TheISA::handleLockedRead(thread, req); TheISA::handleLockedRead(thread, req);
} }