summaryrefslogtreecommitdiff
path: root/src/dev/x86/cmos.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/dev/x86/cmos.cc')
-rw-r--r--src/dev/x86/cmos.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dev/x86/cmos.cc b/src/dev/x86/cmos.cc
index 16286f07e..41009c6d1 100644
--- a/src/dev/x86/cmos.cc
+++ b/src/dev/x86/cmos.cc
@@ -50,10 +50,10 @@ X86ISA::Cmos::read(PacketPtr pkt)
switch(pkt->getAddr() - pioAddr)
{
case 0x0:
- pkt->set(address);
+ pkt->setLE(address);
break;
case 0x1:
- pkt->set(readRegister(address));
+ pkt->setLE(readRegister(address));
break;
default:
panic("Read from undefined CMOS port.\n");
@@ -69,10 +69,10 @@ X86ISA::Cmos::write(PacketPtr pkt)
switch(pkt->getAddr() - pioAddr)
{
case 0x0:
- address = pkt->get<uint8_t>();
+ address = pkt->getLE<uint8_t>();
break;
case 0x1:
- writeRegister(address, pkt->get<uint8_t>());
+ writeRegister(address, pkt->getLE<uint8_t>());
break;
default:
panic("Write to undefined CMOS port.\n");