gem5
|
Go to the source code of this file.
Namespaces | |
BigEndianGuest | |
LittleEndianGuest | |
Functions | |
uint64_t | swap_byte64 (uint64_t x) |
uint32_t | swap_byte32 (uint32_t x) |
uint16_t | swap_byte16 (uint16_t x) |
template<typename T > | |
T | swap_byte (T x) |
template<> | |
Twin64_t | swap_byte< Twin64_t > (Twin64_t x) |
template<> | |
Twin32_t | swap_byte< Twin32_t > (Twin32_t x) |
template<typename T > | |
T | betole (T value) |
template<typename T > | |
T | letobe (T value) |
template<typename T > | |
T | htole (T value) |
template<typename T > | |
T | letoh (T value) |
template<typename T > | |
T | htobe (T value) |
template<typename T > | |
T | betoh (T value) |
template<typename T > | |
T | BigEndianGuest::gtole (T value) |
template<typename T > | |
T | BigEndianGuest::letog (T value) |
template<typename T > | |
T | BigEndianGuest::gtobe (T value) |
template<typename T > | |
T | BigEndianGuest::betog (T value) |
template<typename T > | |
T | BigEndianGuest::htog (T value) |
template<typename T > | |
T | BigEndianGuest::gtoh (T value) |
template<typename T > | |
T | LittleEndianGuest::gtole (T value) |
template<typename T > | |
T | LittleEndianGuest::letog (T value) |
template<typename T > | |
T | LittleEndianGuest::gtobe (T value) |
template<typename T > | |
T | LittleEndianGuest::betog (T value) |
template<typename T > | |
T | LittleEndianGuest::htog (T value) |
template<typename T > | |
T | LittleEndianGuest::gtoh (T value) |
Variables | |
const ByteOrder | HostByteOrder = BigEndianByteOrder |
const ByteOrder | BigEndianGuest::GuestByteOrder = BigEndianByteOrder |
const ByteOrder | LittleEndianGuest::GuestByteOrder = LittleEndianByteOrder |
|
inline |
Definition at line 154 of file byteswap.hh.
Referenced by DtbObject::findReleaseAddr(), Packet::getBE(), BigEndianGuest::gtoh(), VncServer::recvCutText(), VncServer::recvKeyboardInput(), VncServer::recvPointerInput(), VncServer::requestFbUpdate(), UFSHostDevice::UFSSCSIDevice::SCSICMDHandle(), VncServer::setEncodings(), VncServer::setPixelFormat(), PowerISA::RemoteGDB::PowerGdbRegCache::setRegs(), and SparcISA::vtophys().
|
inline |
Definition at line 144 of file byteswap.hh.
References swap_byte().
Referenced by LittleEndianGuest::betog(), and BigEndianGuest::gtole().
|
inline |
Definition at line 153 of file byteswap.hh.
Referenced by VncServer::checkProtocolVersion(), VncServer::checkSecurity(), PowerISA::RemoteGDB::PowerGdbRegCache::getRegs(), SparcISA::RemoteGDB::SPARCGdbRegCache::getRegs(), SparcISA::RemoteGDB::SPARC64GdbRegCache::getRegs(), BigEndianGuest::htog(), IGbE::IGbE(), MmDisk::read(), VncServer::sendFrameBufferResized(), VncServer::sendFrameBufferUpdate(), VncServer::sendServerInit(), Packet::setBE(), ElfObject::tryFile(), and MmDisk::write().
|
inline |
Definition at line 151 of file byteswap.hh.
References swap_byte().
Referenced by LittleEndianGuest::htog(), htop9(), IdeController::IdeController(), PciDevice::PciDevice(), PciVirtIO::PciVirtIO(), IGbE::RxDescCache::pktComplete(), IdeController::readConfig(), Packet::setLE(), ElfObject::tryFile(), IdeController::writeConfig(), PciDevice::writeConfig(), and IGbE::RxDescCache::writePacket().
|
inline |
Definition at line 145 of file byteswap.hh.
References swap_byte().
Referenced by LittleEndianGuest::gtobe(), and BigEndianGuest::letog().
|
inline |
Definition at line 152 of file byteswap.hh.
References swap_byte().
Referenced by Packet::getLE(), LittleEndianGuest::gtoh(), PciDevice::interruptLine(), p9toh(), PciDevice::PciDevice(), SafeReadSwap(), SafeWriteSwap(), and PciDevice::writeConfig().
|
inline |
Definition at line 113 of file byteswap.hh.
References panic, swap_byte16(), swap_byte32(), swap_byte64(), and X86ISA::x.
Referenced by betole(), htole(), letobe(), letoh(), swap_byte< Twin32_t >(), and swap_byte< Twin64_t >().
|
inline |
|
inline |
|
inline |
Definition at line 63 of file byteswap.hh.
References ULL, and X86ISA::x.
Referenced by swap_byte().
Definition at line 135 of file byteswap.hh.
References swap_byte(), and X86ISA::x.
Definition at line 127 of file byteswap.hh.
References swap_byte(), and X86ISA::x.
const ByteOrder HostByteOrder = BigEndianByteOrder |
Definition at line 150 of file byteswap.hh.