gem5
v20.1.0.0
|
Go to the source code of this file.
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<typename T , size_t N> | |
std::array< T, N > | swap_byte (std::array< T, N > a) |
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 | htog (T value, ByteOrder guest_byte_order) |
template<typename T > | |
T | gtoh (T value, ByteOrder guest_byte_order) |
Variables | |
const ByteOrder | HostByteOrder = ByteOrder::big |
|
inline |
Definition at line 143 of file byteswap.hh.
Referenced by Trace::SparcNativeTrace::check(), Loader::DtbFile::findReleaseAddr(), Prefetcher::Base::PrefetchInfo::get(), Packet::getBE(), gtoh(), SparcISA::Decoder::moreBytes(), PowerISA::Decoder::moreBytes(), VncServer::recvCutText(), VncServer::recvKeyboardInput(), VncServer::recvPointerInput(), VncServer::requestFbUpdate(), UFSHostDevice::UFSSCSIDevice::SCSICMDHandle(), VncServer::setEncodings(), VncServer::setPixelFormat(), PowerISA::RemoteGDB::PowerGdbRegCache::setRegs(), and SparcISA::TLB::translateFunctional().
|
inline |
|
inline |
Definition at line 162 of file byteswap.hh.
References betoh(), and letoh().
Referenced by amoMemAtomic(), dumpDmesgEntry(), GuestABI::Argument< Aapcs32, Composite, typename std::enable_if< IsAapcs32Composite< Composite >::value >::type >::get(), GuestABI::Argument< Aapcs64, Composite, typename std::enable_if< IsAapcs64Composite< Composite >::value &&!IsAapcs64Hxa< Composite >::value >::type >::get(), GuestABI::Aapcs32ArgumentBase::loadFromStack(), PortProxy::read(), VirtQueue::VirtRing< struct vring_used_elem >::read(), VirtQueue::VirtRing< struct vring_used_elem >::readHeader(), readMemAtomic(), readvFunc(), GuestABI::Result< Aapcs32, Composite, typename std::enable_if< IsAapcs32Composite< Composite >::value >::type >::store(), GuestABI::Result< Aapcs64, Composite, typename std::enable_if< IsAapcs64Composite< Composite >::value &&!IsAapcs64Hxa< Composite >::value >::type >::store(), TEST(), VirtDescriptor::update(), utimesFunc(), writeMemAtomic(), and writevFunc().
|
inline |
Definition at line 142 of file byteswap.hh.
Referenced by PowerProcess::argsInit(), SparcProcess::argsInit(), VncServer::checkProtocolVersion(), VncServer::checkSecurity(), Loader::ElfObject::determineOpSys(), Sparc32Process::flushWindows(), Sparc64Process::flushWindows(), PowerISA::RemoteGDB::PowerGdbRegCache::getRegs(), SparcISA::RemoteGDB::SPARCGdbRegCache::getRegs(), SparcISA::RemoteGDB::SPARC64GdbRegCache::getRegs(), SparcISA::getresuidFunc(), htog(), VncServer::sendFrameBufferResized(), VncServer::sendFrameBufferUpdate(), VncServer::sendServerInit(), Packet::setBE(), and MmDisk::write().
|
inline |
Definition at line 155 of file byteswap.hh.
References htobe(), and htole().
Referenced by _llseekFunc(), clock_gettimeFunc(), copyOutStat64Buf(), copyOutStatBuf(), copyOutStatfsBuf(), copyStringArray(), ArmISA::TableWalker::doL1Descriptor(), ArmISA::TableWalker::doL2Descriptor(), ArmISA::TableWalker::doLongDescriptor(), GuestABI::Argument< Aapcs32, Composite, typename std::enable_if< IsAapcs32Composite< Composite >::value >::type >::get(), GuestABI::Argument< Aapcs64, Composite, typename std::enable_if< IsAapcs64Composite< Composite >::value &&!IsAapcs64Hxa< Composite >::value >::type >::get(), getcpuFunc(), getrlimitFunc(), getrusageFunc(), gettimeofdayFunc(), VirtIOBlock::RequestQueue::onNotifyDescriptor(), prlimitFunc(), VirtIOConsole::readConfig(), VirtIOBlock::readConfig(), readvFunc(), GuestABI::Result< Aapcs32, Composite, typename std::enable_if< IsAapcs32Composite< Composite >::value >::type >::store(), GuestABI::Result< Aapcs64, Composite, typename std::enable_if< IsAapcs64Composite< Composite >::value &&!IsAapcs64Hxa< Composite >::value >::type >::store(), TEST(), timeFunc(), timesFunc(), VirtIO9PBase::VirtIO9PBase(), PortProxy::write(), VirtQueue::VirtRing< struct vring_used_elem >::write(), VirtQueue::VirtRing< struct vring_used_elem >::writeHeader(), writeMemAtomic(), and writeMemTiming().
|
inline |
Definition at line 140 of file byteswap.hh.
References swap_byte().
Referenced by MipsProcess::argsInit(), ArmProcess::argsInit(), X86ISA::X86Process::argsInit(), ArmISA::ArmStaticInst::cSwap(), Loader::ElfObject::determineOpSys(), htog(), htop9(), IdeController::IdeController(), X86ISA::FsLinux::initState(), X86ISA::FsWorkload::initState(), PciDevice::PciDevice(), PciVirtIO::PciVirtIO(), IGbE::RxDescCache::pktComplete(), X86ISA::Interrupts::read(), IdeController::readConfig(), Packet::setLE(), IdeController::writeConfig(), PciDevice::writeConfig(), X86ISA::writeMemAtomic(), X86ISA::writeMemTiming(), X86ISA::SMBios::SMBiosStructure::writeOut(), X86ISA::SMBios::BiosInformation::writeOut(), X86ISA::SMBios::SMBiosTable::writeOut(), writeOutField(), X86ISA::writePackedMem(), IGbE::RxDescCache::writePacket(), X86ISA::E820Table::writeTo(), and writeVal().
|
inline |
Definition at line 134 of file byteswap.hh.
References swap_byte().
Referenced by ArmISA::ArmStaticInst::cSwap(), and TEST().
|
inline |
Definition at line 141 of file byteswap.hh.
References swap_byte().
Referenced by ArmISA::ArmStaticInst::cSwap(), Prefetcher::Base::PrefetchInfo::get(), Packet::getLE(), gtoh(), PseudoInst::initParam(), PciDevice::interruptLine(), MipsISA::Decoder::moreBytes(), RiscvISA::Decoder::moreBytes(), ArmISA::Decoder::moreBytes(), X86ISA::Decoder::moreBytes(), p9toh(), PciDevice::PciDevice(), X86ISA::readMemAtomic(), X86ISA::readPackedMemAtomic(), SafeReadSwap(), SafeWriteSwap(), sys_setsysinfoFunc(), Trace::InstPBTrace::traceInst(), Trace::X86NativeTrace::ThreadState::update(), Trace::ArmNativeTrace::ThreadState::update(), X86ISA::Interrupts::write(), PciDevice::writeConfig(), X86ISA::writeMemAtomic(), and X86ISA::SMBios::SMBiosTable::writeOut().
|
inline |
Definition at line 124 of file byteswap.hh.
References ArmISA::a, swap_byte(), and ArmISA::v.
|
inline |
Definition at line 109 of file byteswap.hh.
References panic, swap_byte16(), swap_byte32(), swap_byte64(), and RiscvISA::x.
Referenced by betole(), htole(), letobe(), letoh(), and swap_byte().
|
inline |
Definition at line 92 of file byteswap.hh.
References RiscvISA::x.
Referenced by swap_byte(), and TEST().
|
inline |
Definition at line 78 of file byteswap.hh.
References RiscvISA::x.
Referenced by swap_byte(), and TEST().
|
inline |
Definition at line 59 of file byteswap.hh.
References ULL, and RiscvISA::x.
Referenced by swap_byte(), and TEST().
const ByteOrder HostByteOrder = ByteOrder::big |
Definition at line 139 of file byteswap.hh.