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/i82094aa.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/i82094aa.cc')
-rw-r--r-- | src/dev/x86/i82094aa.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dev/x86/i82094aa.cc b/src/dev/x86/i82094aa.cc index 51304f25a..2b09f14a5 100644 --- a/src/dev/x86/i82094aa.cc +++ b/src/dev/x86/i82094aa.cc @@ -103,10 +103,10 @@ X86ISA::I82094AA::read(PacketPtr pkt) Addr offset = pkt->getAddr() - pioAddr; switch(offset) { case 0: - pkt->set<uint32_t>(regSel); + pkt->setLE<uint32_t>(regSel); break; case 16: - pkt->set<uint32_t>(readReg(regSel)); + pkt->setLE<uint32_t>(readReg(regSel)); break; default: panic("Illegal read from I/O APIC.\n"); @@ -122,10 +122,10 @@ X86ISA::I82094AA::write(PacketPtr pkt) Addr offset = pkt->getAddr() - pioAddr; switch(offset) { case 0: - regSel = pkt->get<uint32_t>(); + regSel = pkt->getLE<uint32_t>(); break; case 16: - writeReg(regSel, pkt->get<uint32_t>()); + writeReg(regSel, pkt->getLE<uint32_t>()); break; default: panic("Illegal write to I/O APIC.\n"); |