From 413b4e7431b20d9b29dbf66d6677a60205ddd357 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Fri, 12 Oct 2018 04:57:29 -0700 Subject: 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 Maintainer: Gabe Black --- src/dev/x86/i8237.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dev/x86/i8237.cc') 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 command = pkt->getLE(); uint8_t select = bits(command, 1, 0); uint8_t bitVal = bits(command, 2); if (!bitVal) -- cgit v1.2.3