diff options
author | Benjamin Nash <benash@umich.edu> | 2005-07-26 12:28:33 -0400 |
---|---|---|
committer | Benjamin Nash <benash@umich.edu> | 2005-07-26 12:28:33 -0400 |
commit | 6e0ad62fdc8c0518e54366e3bca25e75335f3198 (patch) | |
tree | f594828e38b1668ac55c6716564f8ac4955ae8fa /dev/ide_disk.cc | |
parent | 32b52fe7126091692c0a76314bb3692fa3f70d27 (diff) | |
download | gem5-6e0ad62fdc8c0518e54366e3bca25e75335f3198.tar.xz |
Various changes to I/O, addition of PciFake device to improve FreeBSD compatibility.
SConscript:
Include pcifake.cc, fix spacing.
dev/ide_ctrl.cc:
Consolidate switch-case blocks.
dev/ide_disk.cc:
Add comments.
dev/pciconfigall.cc:
Adjust spacing.
dev/pcidev.cc:
Adjust spacing, rearrange code.
dev/tsunami_io.cc:
Rearrange code.
dev/uart8250.cc:
Switch uart interrupt interval back to original value.
python/m5/objects/Pci.py:
Add PciFake class to be used as a PCI-ISA bridge device.
--HG--
extra : convert_revision : 8aea94318510079a310377f297aa161ba5f7864c
Diffstat (limited to 'dev/ide_disk.cc')
-rw-r--r-- | dev/ide_disk.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dev/ide_disk.cc b/dev/ide_disk.cc index 98f2ee7d5..74d2ae6de 100644 --- a/dev/ide_disk.cc +++ b/dev/ide_disk.cc @@ -226,10 +226,10 @@ IdeDisk::read(const Addr &offset, RegType_t type, uint8_t *data) switch (offset) { // Data transfers occur 16 bits at a time case DATA_OFFSET: - // use memcpy to preserve little-endianess + // use memcpy to preserve IDE's little-endianess memcpy(data, &cmdReg.data, sizeof(uint16_t)); break; - // All other transfers are 8 bit + // All other transfers are 8-bit case ERROR_OFFSET: *data = cmdReg.error; break; |