AtomicSimpleCPU: fix inadvertent loss of endian conversion on read.
--HG-- extra : convert_revision : 367bf2431bf4f4eb7c4d5723816e5db6f7233aed
This commit is contained in:
parent
accc0d6972
commit
aaf59949e5
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue