diff options
author | Gabe Black <gabeblack@google.com> | 2018-10-12 05:01:06 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-10-12 23:47:36 +0000 |
commit | cc33e2e3494b1aef3649e25456437aa9eb8cf767 (patch) | |
tree | 918be9ec96ccdbb764c282884f5d784fd1a25a6c /src/dev/sparc/dtod.cc | |
parent | 9125a43f624653e6238dbb8713658cae2c5d43cd (diff) | |
download | gem5-cc33e2e3494b1aef3649e25456437aa9eb8cf767.tar.xz |
sparc: Use big endian packet accessors.
We know data is big endian, so we can use those accessors
explicitly.
Change-Id: I06fe35254433b20db05f5f10d0ca29a44d47c301
Reviewed-on: https://gem5-review.googlesource.com/c/13458
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/dev/sparc/dtod.cc')
-rw-r--r-- | src/dev/sparc/dtod.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dev/sparc/dtod.cc b/src/dev/sparc/dtod.cc index b87d2813a..9a709730f 100644 --- a/src/dev/sparc/dtod.cc +++ b/src/dev/sparc/dtod.cc @@ -64,7 +64,7 @@ DumbTOD::read(PacketPtr pkt) assert(pkt->getAddr() >= pioAddr && pkt->getAddr() < pioAddr + pioSize); assert(pkt->getSize() == 8); - pkt->set(todTime); + pkt->setBE(todTime); todTime += 1000; pkt->makeAtomicResponse(); |