gem5  v22.1.0.0
Classes | Namespaces | Typedefs | Functions | Variables
types.hh File Reference

Defines global host-dependent types: Counter, Tick, and (indirectly) {int,uint}{8,16,32,64}_t. More...

#include <inttypes.h>
#include <cassert>
#include <limits>
#include <memory>
#include <ostream>
#include <stdexcept>

Go to the source code of this file.


class  gem5::Cycles
 Cycles is a wrapper class for representing cycle counts, i.e. More...


 Reference material can be found at the JEDEC website: UFS standard UFS HCI specification


typedef int64_t gem5::Counter
 Statistics counter type. More...
typedef uint64_t gem5::Tick
 Tick count type. More...
typedef uint64_t gem5::Addr
 Address type This will probably be moved somewhere else in the near future. More...
typedef uint16_t gem5::MicroPC
using gem5::RegVal = uint64_t
using gem5::RegIndex = uint16_t
typedef int16_t gem5::ThreadID
 Thread index/ID type. More...
typedef int gem5::ContextID
 Globally unique thread context ID. More...
typedef int16_t gem5::PortID
 Port index/ID type, and a symbolic name for an invalid port id. More...
typedef std::shared_ptr< FaultBase > gem5::Fault


static MicroPC gem5::romMicroPC (MicroPC upc)
static MicroPC gem5::normalMicroPC (MicroPC upc)
static bool gem5::isRomMicroPC (MicroPC upc)
static uint32_t gem5::floatToBits32 (float val)
static uint64_t gem5::floatToBits64 (double val)
static uint64_t gem5::floatToBits (double val)
static uint32_t gem5::floatToBits (float val)
static float gem5::bitsToFloat32 (uint32_t val)
static double gem5::bitsToFloat64 (uint64_t val)
static double gem5::bitsToFloat (uint64_t val)
static float gem5::bitsToFloat (uint32_t val)


const Tick gem5::MaxTick = 0xffffffffffffffffULL
static const MicroPC gem5::MicroPCRomBit = 1 << (sizeof(MicroPC) * 8 - 1)
const Addr gem5::MaxAddr = (Addr)-1
const ThreadID gem5::InvalidThreadID = (ThreadID)-1
const ContextID gem5::InvalidContextID = (ContextID)-1
const PortID gem5::InvalidPortID = (PortID)-1
constexpr decltype(nullptr) gem5::NoFault = nullptr

Detailed Description

Defines global host-dependent types: Counter, Tick, and (indirectly) {int,uint}{8,16,32,64}_t.

Definition in file types.hh.

Generated on Wed Dec 21 2022 10:22:52 for gem5 by doxygen 1.9.1