diff options
author | Gabe Black <gabeblack@google.com> | 2018-10-12 04:58:50 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-10-12 23:45:51 +0000 |
commit | 9125a43f624653e6238dbb8713658cae2c5d43cd (patch) | |
tree | 268bab703026e5d6497492c97b736f125e875c59 /src/dev/arm/amba_device.cc | |
parent | 413b4e7431b20d9b29dbf66d6677a60205ddd357 (diff) | |
download | gem5-9125a43f624653e6238dbb8713658cae2c5d43cd.tar.xz |
arm: Use little endian packet accessors.
We know data is little endian, so we can use those accessors
explicitly.
Change-Id: Iee337109fcda134e1ac5a700e5141fd7060f9c45
Reviewed-on: https://gem5-review.googlesource.com/c/13457
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src/dev/arm/amba_device.cc')
-rw-r--r-- | src/dev/arm/amba_device.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dev/arm/amba_device.cc b/src/dev/arm/amba_device.cc index d9acc9a00..a8404a42c 100644 --- a/src/dev/arm/amba_device.cc +++ b/src/dev/arm/amba_device.cc @@ -83,6 +83,6 @@ AmbaDevice::readId(PacketPtr pkt, uint64_t amba_id, Addr pio_addr) (amba_id >> byte) & 0xFF, pkt->getAddr() - pio_addr, byte); assert(pkt->getSize() == 4); - pkt->set<uint32_t>((amba_id >> byte) & 0xFF); + pkt->setLE<uint32_t>((amba_id >> byte) & 0xFF); return true; } |