diff options
author | Gabe Black <gabeblack@google.com> | 2018-10-12 04:57:29 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-10-12 23:44:38 +0000 |
commit | 413b4e7431b20d9b29dbf66d6677a60205ddd357 (patch) | |
tree | 8fb40a98f4b5b14e78240e2a3f5907344ff83658 /src/dev/x86/i8237.cc | |
parent | 2b979bd8913450355006fc9d9ccfa9dda21bbbb3 (diff) | |
download | gem5-413b4e7431b20d9b29dbf66d6677a60205ddd357.tar.xz |
x86: Use little endian packet accessors.
We know data is little endian, so we can use those accessors
explicitly.
Change-Id: I09aa7f1e525ad1346e932ce4a772b64bf59dc350
Reviewed-on: https://gem5-review.googlesource.com/c/13456
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/dev/x86/i8237.cc')
-rw-r--r-- | src/dev/x86/i8237.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dev/x86/i8237.cc b/src/dev/x86/i8237.cc index a9ef53c2c..2f17fae4a 100644 --- a/src/dev/x86/i8237.cc +++ b/src/dev/x86/i8237.cc @@ -100,7 +100,7 @@ X86ISA::I8237::write(PacketPtr pkt) panic("Write to i8237 request register unimplemented.\n"); case 0xa: { - uint8_t command = pkt->get<uint8_t>(); + uint8_t command = pkt->getLE<uint8_t>(); uint8_t select = bits(command, 1, 0); uint8_t bitVal = bits(command, 2); if (!bitVal) |