gem5
v21.1.0.0
|
Reference material can be found at the JEDEC website: UFS standard http://www.jedec.org/standards-documents/results/jesd220 UFS HCI specification http://www.jedec.org/standards-documents/results/jesd223. More...
Namespaces | |
AMBA | |
ArmISA | |
ArmISAInst | |
auxv | |
bitfield_backend | |
bloom_filter | |
branch_prediction | |
compression | |
context_switch_task_id | |
copy_engine_reg | |
cp | |
debug | |
decode_cache | |
fastmodel | |
free_bsd | |
Gcn3ISA | |
classes that represnt vector/scalar operands in GCN3 ISA. | |
Gem5Internal | |
GenericISA | |
guest_abi | |
igbreg | |
Iris | |
linux | |
loader | |
memory | |
minor | |
MipsISA | |
networking | |
NullISA | |
o3 | |
PowerISA | |
prefetch | |
probing | |
ps2 | |
pseudo_inst | |
QARMA | |
replacement_policy | |
RiscvISA | |
ruby | |
scmi | |
sim_clock | |
sinic | |
SparcISA | |
statistics | |
stl_helpers | |
TheISA | |
Trace | |
VegaISA | |
classes that represnt vector/scalar operands in VEGA ISA. | |
X86ISA | |
This is exposed globally, independent of the ISA. | |
X86ISAInst | |
Classes | |
class | __SchedulingPolicy |
Intermediate class that derives from the i-face class, and implements its API. More... | |
struct | _amd_queue_t |
struct | _hsa_agent_dispatch_packet_t |
struct | _hsa_barrier_and_packet_t |
struct | _hsa_barrier_or_packet_t |
struct | _hsa_dispatch_packet_t |
struct | _hsa_queue_t |
struct | _hsa_signal_t |
class | A9SCU |
struct | Aapcs32 |
struct | Aapcs32Vfp |
struct | Aapcs64 |
class | AbstractNVM |
This is an interface between the disk interface (which will handle the disk data transactions) and the timing model. More... | |
class | ActivityRecorder |
ActivityRecorder helper class that informs the CPU if it can switch over to being idle or not. More... | |
class | AddressManager |
struct | AddressMonitor |
class | AddrMapper |
An address mapper changes the packet addresses in going from the response port side of the mapper to the request port side. More... | |
class | AddrRange |
The AddrRange class encapsulates an address range, and supports a number of tests to check if two ranges intersect, if a range contains a specific address etc. More... | |
class | AddrRangeMap |
The AddrRangeMap uses an STL map to implement an interval tree for address decoding. More... | |
class | AmbaDevice |
class | AmbaDmaDevice |
class | AmbaFake |
class | AmbaIntDevice |
class | AmbaPioDevice |
struct | amd_signal_s |
class | AMDGPUDevice |
Device model for an AMD GPU. More... | |
struct | AMDKernelCode |
class | AMDMMIOReader |
Helper class to read Linux kernel MMIO trace from amdgpu modprobes. More... | |
class | Ap2ScpDoorbell |
struct | ApertureRegister |
class | AQLRingBuffer |
Internal ring buffer which is used to prefetch/store copies of the in-memory HSA ring buffer. More... | |
class | ArchTimer |
Per-CPU architected timer. More... | |
class | ArchTimerKvm |
class | ARMArchTLB |
class | ArmFreebsd |
class | ArmFreebsd32 |
class | ArmFreebsd64 |
class | ArmInterruptPin |
Generic representation of an Arm interrupt pin. More... | |
class | ArmInterruptPinGen |
This SimObject is instantiated in the python world and serves as an ArmInterruptPin generator. More... | |
class | ArmKvmCPU |
ARM implementation of a KVM-based hardware virtualized CPU. More... | |
class | ArmLinux |
class | ArmLinux32 |
class | ArmLinux64 |
class | ArmLinuxProcess32 |
A process with emulated Arm/Linux syscalls. More... | |
class | ArmLinuxProcess64 |
A process with emulated Arm/Linux syscalls. More... | |
class | ArmPPI |
class | ArmPPIGen |
Private Peripheral Interrupt Generator Since PPIs are banked in the GIC, this class is capable of generating more than one interrupt (one per ContextID). More... | |
class | ArmProcess |
class | ArmProcess32 |
class | ArmProcess64 |
class | ArmSemihosting |
Semihosting for AArch32 and AArch64. More... | |
class | ArmSigInterruptPin |
class | ArmSigInterruptPinGen |
class | ArmSPI |
class | ArmSPIGen |
Shared Peripheral Interrupt Generator It is capable of generating one interrupt only: it maintains a pointer to it and returns it every time it is asked for it (via the get metod) More... | |
class | ArmSystem |
class | ArmV8KvmCPU |
This is an implementation of a KVM-based ARMv8-compatible CPU. More... | |
class | AssociativeSet |
Associative container based on the previosuly defined Entry type Each element is indexed by a key of type Addr, an additional bool value is used as an additional tag data of the entry. More... | |
class | AtagCmdline |
class | AtagCore |
class | AtagHeader |
class | AtagMem |
class | AtagNone |
class | AtagRev |
class | AtagSerial |
class | AtomicGeneric2Op |
class | AtomicGeneric3Op |
class | AtomicGenericPair3Op |
class | AtomicOpAdd |
class | AtomicOpAnd |
class | AtomicOpCAS |
class | AtomicOpDec |
class | AtomicOpExch |
struct | AtomicOpFunctor |
class | AtomicOpInc |
class | AtomicOpMax |
class | AtomicOpMin |
class | AtomicOpOr |
class | AtomicOpSub |
class | AtomicOpXor |
class | AtomicRequestProtocol |
class | AtomicResponseProtocol |
class | AtomicSimpleCPU |
class | BadDevice |
BadDevice This device just panics when accessed. More... | |
class | Barrier |
class | BaseArmKvmCPU |
class | BaseBufferArg |
Base class for BufferArg and TypedBufferArg, Not intended to be used directly. More... | |
class | BaseCache |
A basic cache interface. More... | |
class | BaseCPU |
class | BaseGdbRegCache |
Concrete subclasses of this abstract class represent how the register values are transmitted on the wire. More... | |
class | BaseGen |
Base class for all generators, with the shared functionality and virtual functions for entering, executing and leaving the generator. More... | |
class | BaseGic |
class | BaseGicRegisters |
class | BaseGlobalEvent |
Common base class for GlobalEvent and GlobalSyncEvent. More... | |
class | BaseGlobalEventTemplate |
Funky intermediate class to support CRTP so that we can have a common constructor to create the local events, even though the types of the local events are defined in the derived classes. More... | |
class | BaseHTMCheckpoint |
Transactional Memory checkpoint. More... | |
class | BaseIndexingPolicy |
A common base class for indexing table locations. More... | |
class | BaseInterrupts |
class | BaseISA |
class | BaseKvmCPU |
Base class for KVM based CPU models. More... | |
class | BaseKvmTimer |
Timer functions to interrupt VM execution after a number of simulation ticks. More... | |
class | BaseMemProbe |
Base class for memory system probes accepting Packet instances. More... | |
class | BaseMMU |
class | BasePixelPump |
Timing generator for a pixel-based display. More... | |
class | BaseRemoteGDB |
class | BaseSetAssoc |
A basic cache tag store. More... | |
class | BaseSimpleCPU |
class | BaseStackTrace |
class | BaseTags |
A common base class of Cache tagstore objects. More... | |
class | BaseTLB |
class | BaseTrafficGen |
The traffic generator is a module that generates stimuli for the memory system, based on a collection of simple generator behaviours that are either probabilistic or based on traces. More... | |
class | BaseXBar |
The base crossbar contains the common elements of the non-coherent and coherent crossbar. More... | |
class | BasicPioDevice |
class | BasicSignal |
class | BitfieldROType |
class | BitfieldType |
class | BitfieldTypeImpl |
class | BitfieldWOType |
class | BmpWriter |
class | BreakPCEvent |
class | Bridge |
A bridge is used to interface two different crossbars (or in general a memory-mapped requestor and responder), with buffering for requests and responses. More... | |
class | BufferArg |
BufferArg represents an untyped buffer in target user space that is passed by reference to an (emulated) system call. More... | |
class | Cache |
A coherent cache that can be arranged in flexible topologies. More... | |
class | CacheBlk |
A Basic Cache block. More... | |
class | CacheBlkPrintWrapper |
Simple class to provide virtual print() method on cache blocks without allocating a vtable pointer for every single cache block. More... | |
class | CallbackQueue |
class | ChannelAddr |
Class holding a guest address in a contiguous channel-local address space. More... | |
class | ChannelAddrRange |
The ChanneelAddrRange class describes a contiguous range of addresses in a contiguous channel-local address space. More... | |
class | Check |
class | Checker |
Templated Checker class. More... | |
class | CheckerCPU |
CheckerCPU class. More... | |
class | CheckerThreadContext |
Derived ThreadContext class for use with the Checker. More... | |
class | CheckpointIn |
class | CheckTable |
class | ChunkGenerator |
This class takes an arbitrary memory region (address/length pair) and generates a series of appropriately (e.g. More... | |
class | CircleBuf |
Circular buffer backed by a vector. More... | |
class | CircularQueue |
Circular queue. More... | |
class | Clint |
NOTE: This implementation of CLINT is based on the SiFive U54MC datasheet: https://sifive.cdn.prismic.io/sifive/fab000f6- 0e07-48d0-9602-e437d5367806_sifive_U54MC_rtl_ full_20G1.03.00_manual.pdf. More... | |
class | ClockDomain |
The ClockDomain provides clock to group of clocked objects bundled under the same clock domain. More... | |
class | Clocked |
Helper class for objects that need to be clocked. More... | |
class | ClockedObject |
The ClockedObject class extends the SimObject with a clock and accessor functions to relate ticks to the cycles of the object. More... | |
class | ClockRateControlBwIf |
struct | ClockRateControlDummyProtocolType |
class | ClockRateControlFwIf |
class | ClockRateControlInitiatorSocket |
class | ClockRateControlSlaveBase |
class | ClockRateControlTargetSocket |
class | CoherentXBar |
A coherent crossbar connects a number of (potentially) snooping requestors and responders, and routes the request and response packets based on the address, and also forwards all requests to the snoopers and deals with the snoop responses. More... | |
struct | CommandReg_t |
class | CommMonitor |
The communication monitor is a SimObject which can monitor statistics of the communication happening between two ports in the memory system. More... | |
class | CompressedTags |
A CompressedTags cache tag store. More... | |
class | CompressionBlk |
A superblock is composed of sub-blocks, and each sub-block has information regarding its superblock and a pointer to its superblock tag. More... | |
class | ComputeUnit |
class | ConfigCache |
class | ConstProxyPtr |
struct | ContextDescriptor |
class | CopyEngine |
class | Coroutine |
This template defines a Coroutine wrapper type with a Boost-like interface. More... | |
class | CountedExitEvent |
class | CowDiskImage |
Specialization for accessing a copy-on-write disk image layer. More... | |
class | CpuLocalTimer |
class | CPUProgressEvent |
class | CpuThread |
class | CustomNoMaliGpu |
class | CxxConfigDirectoryEntry |
Config details entry for a SimObject. More... | |
class | CxxConfigFileBase |
Config file wrapper providing a common interface to CxxConfigManager. More... | |
class | CxxConfigManager |
This class allows a config file to be read into gem5 (generating the appropriate SimObjects) from C++. More... | |
class | CxxConfigParams |
Base for peer classes of SimObjectParams derived classes with parameter modifying member functions. More... | |
class | CxxIniFile |
CxxConfigManager interface for using .ini files. More... | |
class | Cycles |
Cycles is a wrapper class for representing cycle counts, i.e. More... | |
class | DataTranslation |
This class represents part of a data address translation. More... | |
struct | DebugBreakEvent |
class | DebugStep |
class | DecoderFaultInst |
class | DerivedClockDomain |
The derived clock domains provides the notion of a clock domain that is connected to a parent clock domain that can either be a source clock domain or a derived clock domain. More... | |
class | DeviceFDEntry |
Holds file descriptors needed to simulate devices opened with pseudo files (commonly with calls to ioctls). More... | |
class | DirectedGenerator |
class | DiskImage |
Basic interface for accessing a disk image. More... | |
class | Display |
struct | DisplayTimings |
class | DistEtherLink |
Model for a fixed bandwidth full duplex ethernet link. More... | |
class | DistHeaderPkt |
class | DistIface |
The interface class to talk to peer gem5 processes. More... | |
class | DmaCallback |
DMA callback class. More... | |
class | DmaDevice |
class | DmaPort |
class | DmaReadFifo |
Buffered DMA engine helper class. More... | |
class | DmaThread |
class | DmaVirtDevice |
struct | DmesgEntry |
class | Doorbell |
Generic doorbell interface. More... | |
struct | dp_regs |
Ethernet device registers. More... | |
struct | dp_rom |
class | Drainable |
Interface for objects that might require draining before checkpointing. More... | |
class | DrainManager |
class | DramGen |
DRAM specific generator is for issuing request with variable page hit length and bank utilization. More... | |
class | DRAMPower |
DRAMPower is a standalone tool which calculates the power consumed by a DRAM in the system. More... | |
class | DramRotGen |
class | Dueler |
A dueler is an entry that may or may not be accounted for sampling. More... | |
class | DuelingMonitor |
Duel between two sampled options to determine which is the winner. More... | |
class | DumbTOD |
DumbTOD simply returns some idea of time when read. More... | |
class | DummyChecker |
Specific non-templated derived class used for SimObject configuration. More... | |
class | DVFSHandler |
DVFS Handler class, maintains a list of all the domains it can handle. More... | |
class | DynPoolManager |
class | EmbeddedPyBind |
struct | EmbeddedPython |
class | EmulatedDriver |
EmulatedDriver is an abstract base class for fake SE-mode device drivers. More... | |
class | EmulationPageTable |
class | EnergyCtrl |
class | Episode |
class | EtherBus |
class | EtherDevBase |
Dummy class to keep the Python class hierarchy in sync with the C++ object hierarchy. More... | |
class | EtherDevice |
class | EtherDump |
class | EtherInt |
class | EtherLink |
class | EtherSwitch |
class | EtherTapBase |
class | EtherTapInt |
class | EtherTapStub |
class | EthPacketData |
class | Event |
class | EventBase |
Common base class for Event and GlobalEvent, so they can share flag and priority definitions and accessor functions. More... | |
class | EventFunctionWrapper |
class | EventManager |
class | EventQueue |
Queue of events sorted in time order. More... | |
class | EventWrapper |
class | ExecContext |
The ExecContext is an abstract base class the provides the interface used by the ISA to manipulate the state of the CPU model. More... | |
class | ExecStage |
class | ExitGen |
The exit generator exits from the simulation once entered. More... | |
class | ExternalMaster |
class | ExternalSlave |
class | FailUnimplemented |
Static instruction class for unimplemented instructions that cause simulator termination. More... | |
class | FALRU |
A fully associative LRU cache. More... | |
class | FALRUBlk |
A fully associative cache block. More... | |
class | FaultBase |
class | FDArray |
class | FDEntry |
Holds a single file descriptor mapping and that mapping's data for processes running in syscall emulation mode. More... | |
class | FetchStage |
class | FetchUnit |
class | Fiber |
This class represents a fiber, which is a light weight sort of thread which is cooperatively scheduled and runs sequentially with other fibers, swapping in and out of a single actual thread of execution. More... | |
class | Fifo |
Simple FIFO implementation backed by a circular buffer. More... | |
class | FileFDEntry |
Holds file descriptors for host-backed files; host-backed files are files which were opened on the physical machine where the simulation is running (probably the thing on/under your desk). More... | |
class | FixedStreamGen |
class | Flags |
Wrapper that groups a few flag bits under the same undelying container. More... | |
class | FlashDevice |
Flash Device model The Flash Device model is a timing model for a NAND flash device. More... | |
class | Float16 |
class | FrameBuffer |
Internal gem5 representation of a frame buffer. More... | |
class | FreeBSD |
This class encapsulates the types, structures, constants, functions, and syscall-number mappings specific to the Alpha FreeBSD syscall interface. More... | |
class | FUDesc |
class | FunctionalRequestProtocol |
class | FunctionalResponseProtocol |
class | FunctionProfile |
class | FuncUnit |
class | FutexKey |
FutexKey class defines an unique identifier for a particular futex in the system. More... | |
class | FutexMap |
FutexMap class holds a map of all futexes used in the system. More... | |
class | FVPBasePwrCtrl |
struct | FXSave |
class | GarnetSyntheticTraffic |
class | GenericAlignmentFault |
class | GenericArmPciHost |
class | GenericHtmFailureFault |
class | GenericPageTableFault |
class | GenericPciHost |
Configurable generic PCI host interface. More... | |
class | GenericSatCounter |
Implements an n bit saturating counter and provides methods to increment, decrement, and read it. More... | |
struct | GenericSyscallABI |
struct | GenericSyscallABI32 |
struct | GenericSyscallABI64 |
class | GenericTimer |
class | GenericTimerFrame |
class | GenericTimerISA |
class | GenericTimerMem |
class | GenericWatchdog |
class | GicV2 |
class | Gicv2m |
class | Gicv2mFrame |
Ultimately this class should be embedded in the Gicv2m class, but this confuses Python as 'Gicv2m::Frame' gets interpreted as 'Frame' in namespace Gicv2m. More... | |
class | Gicv3 |
class | Gicv3CPUInterface |
class | Gicv3Distributor |
class | Gicv3Its |
GICv3 ITS module. More... | |
class | Gicv3Redistributor |
class | GlobalEvent |
The main global event class. More... | |
class | GlobalMemPipeline |
class | Globals |
Container for serializing global variables (not associated with any serialized object). More... | |
class | GlobalSimLoopExitEvent |
class | GlobalSyncEvent |
A special global event that synchronizes all threads and forces them to process asynchronously enqueued events. More... | |
class | GoodbyeObject |
class | GPUCommandProcessor |
class | GPUComputeDriver |
class | GPUDispatcher |
class | GPUDynInst |
class | GPUExecContext |
class | GPURenderDriver |
class | GPUStaticInst |
class | GpuWavefront |
class | GTestLogOutput |
class | GTestTickHandler |
class | HardBreakpoint |
class | HBFDEntry |
Extends the base class to include a host-backed file descriptor field that records the integer used to represent the file descriptor on the host and the file's flags. More... | |
class | HDLcd |
class | HelloObject |
class | HiFive |
class | HMCController |
HMC Controller, in general, is responsible for translating the host protocol (AXI for example) to serial links protocol. More... | |
struct | hsa_packet_header_bitfield_t |
class | HSAPacketProcessor |
class | HSAQueueDescriptor |
class | HSAQueueEntry |
class | HWScheduler |
class | HybridGen |
Hybrid NVM + DRAM specific generator is for issuing request with variable buffer hit length and bank utilization. More... | |
class | I2CBus |
class | I2CDevice |
class | IdeController |
Device model for an Intel PIIX4 IDE controller. More... | |
class | IdeDisk |
IDE Disk device model. More... | |
class | IdleGen |
The idle generator does nothing. More... | |
class | IdleStartEvent |
class | IGbE |
class | IGbEInt |
class | IllegalExecInst |
This class is modelling instructions which are not going to be executed since they are flagged as Illegal Execution Instructions (PSTATE.IL = 1 or CPSR.IL = 1). More... | |
class | ImgWriter |
class | ImmOp |
class | ImmOp64 |
class | IniFile |
This class represents the contents of a ".ini" file. More... | |
class | InstDecoder |
class | InstResult |
class | Intel8254Timer |
Programmable Interval Timer (Intel 8254) More... | |
class | IntSinkPin |
class | IntSinkPinBase |
class | IntSourcePin |
class | IntSourcePinBase |
class | InvalidateGenerator |
class | Iob |
class | IPACache |
class | IsaFake |
IsaFake is a device that returns, BadAddr, 1 or 0 on all reads and rites. More... | |
struct | ItsAction |
class | ItsCommand |
An ItsCommand is created whenever there is a new command in the command queue. More... | |
class | ItsProcess |
ItsProcess is a base coroutine wrapper which is spawned by the Gicv3Its module when the latter needs to perform different actions, like translating a peripheral's MSI into an LPI (See derived ItsTranslation) or processing a Command from the ITS queue (ItsCommand). More... | |
class | ItsTranslation |
An ItsTranslation is created whenever a peripheral writes a message in GITS_TRANSLATER (MSI). More... | |
class | KernelLaunchStaticInst |
class | KernelWorkload |
struct | kfd_event_data |
struct | kfd_hsa_hw_exception_data |
struct | kfd_hsa_memory_exception_data |
struct | kfd_ioctl_acquire_vm_args |
struct | kfd_ioctl_alloc_memory_of_gpu_args |
struct | kfd_ioctl_alloc_queue_gws_args |
struct | kfd_ioctl_create_event_args |
struct | kfd_ioctl_create_queue_args |
struct | kfd_ioctl_dbg_address_watch_args |
struct | kfd_ioctl_dbg_register_args |
struct | kfd_ioctl_dbg_unregister_args |
struct | kfd_ioctl_dbg_wave_control_args |
struct | kfd_ioctl_destroy_event_args |
struct | kfd_ioctl_destroy_queue_args |
struct | kfd_ioctl_free_memory_of_gpu_args |
struct | kfd_ioctl_get_clock_counters_args |
struct | kfd_ioctl_get_dmabuf_info_args |
struct | kfd_ioctl_get_process_apertures_args |
struct | kfd_ioctl_get_process_apertures_new_args |
struct | kfd_ioctl_get_queue_wave_state_args |
struct | kfd_ioctl_get_tile_config_args |
struct | kfd_ioctl_get_version_args |
struct | kfd_ioctl_import_dmabuf_args |
struct | kfd_ioctl_map_memory_to_gpu_args |
struct | kfd_ioctl_reset_event_args |
struct | kfd_ioctl_set_cu_mask_args |
struct | kfd_ioctl_set_event_args |
struct | kfd_ioctl_set_memory_policy_args |
struct | kfd_ioctl_set_scratch_backing_va_args |
struct | kfd_ioctl_set_trap_handler_args |
struct | kfd_ioctl_smi_events_args |
struct | kfd_ioctl_unmap_memory_from_gpu_args |
struct | kfd_ioctl_update_queue_args |
struct | kfd_ioctl_wait_events_args |
struct | kfd_memory_exception_failure |
struct | kfd_process_device_apertures |
class | Kvm |
KVM parent interface. More... | |
class | KvmDevice |
KVM device wrapper. More... | |
union | KvmFPReg |
class | KvmKernelGicV2 |
KVM in-kernel GIC abstraction. More... | |
class | KvmVM |
KVM VM container. More... | |
class | LdsChunk |
this represents a slice of the overall LDS, intended to be associated with an individual workgroup More... | |
class | LdsState |
class | LinearEquation |
This class describes a linear equation with constant coefficients. More... | |
class | LinearGen |
The linear generator generates sequential requests from a start to an end address, with a fixed block size. More... | |
class | LinearSystem |
class | Linux |
This class encapsulates the types, structures, constants, functions, and syscall-number mappings specific to the Alpha Linux syscall interface. More... | |
class | ListenSocket |
class | LocalMemPipeline |
class | LocalSimLoopExitEvent |
class | Logger |
class | Malta |
Top level class for Malta Chipset emulation. More... | |
class | MaltaCChip |
Malta CChip CSR Emulation. More... | |
class | MaltaIO |
Malta I/O device is a catch all for all the south bridge stuff we care to implement. More... | |
class | MasterPort |
class | MathExpr |
class | MathExprPowerModel |
A Equation power model. More... | |
class | MC146818 |
Real-Time Clock (MC146818) More... | |
class | McrMrcImplDefined |
This class is also used for IMPLEMENTATION DEFINED registers, whose mcr/mrc behaviour is trappable even for unimplemented registers. More... | |
class | McrMrcMiscInst |
Certain mrc/mcr instructions act as nops or flush the pipe based on what register the instruction is trying to access. More... | |
class | McrrOp |
class | MemBackdoor |
class | MemChecker |
MemChecker. More... | |
class | MemCheckerMonitor |
Implements a MemChecker monitor, to be inserted between two ports. More... | |
class | MemCmd |
class | MemDelay |
This abstract component provides a mechanism to delay packets. More... | |
class | MemFootprintProbe |
Probe to track footprint of accessed memory Two granularity of footprint measurement i.e. More... | |
class | MemPool |
Class for handling allocation of physical pages in SE mode. More... | |
class | MemState |
This class holds the memory state for the Process class and all of its derived, architecture-specific children. More... | |
class | MemTest |
The MemTest class tests a cache coherent memory system by generating false sharing and verifying the read data against a reference updated on the completion of writes. More... | |
class | MemTraceProbe |
class | MHU |
Message Handling Unit. More... | |
class | MhuDoorbell |
class | MinorCPU |
MinorCPU is an in-order CPU model with four fixed pipeline stages: More... | |
class | MinorFU |
A functional unit that can execute any of opClasses operations with a single op(eration)Lat(ency) and issueLat(ency) associated with the unit rather than each operation (as in src/FuncUnit). More... | |
class | MinorFUPool |
A collection of MinorFUs. More... | |
class | MinorFUTiming |
Extra timing capability to allow individual ops to have their source register dependency latencies tweaked based on the ExtMachInst of the source instruction. More... | |
class | MinorOpClass |
Boxing for MinorOpClass to get around a build problem with C++11 but also allow for future additions to op class checking. More... | |
class | MinorOpClassSet |
Wrapper for a matchable set of op classes. More... | |
class | MipsLinux |
class | MipsProcess |
class | MiscRegImmOp64 |
class | MiscRegImplDefined64 |
class | MiscRegOp64 |
This class is implementing the Base class for a generic AArch64 instruction which is making use of system registers (MiscReg), like MSR,MRS,SYS. More... | |
class | MiscRegRegImmOp |
class | MiscRegRegImmOp64 |
class | MmDisk |
class | MmioVirtIO |
class | MrrcOp |
class | MrsOp |
class | MSHR |
Miss Status and handling Register. More... | |
class | MSHRQueue |
A Class for maintaining a list of pending and allocated memory requests. More... | |
class | MsrBase |
class | MsrImmOp |
class | MsrRegOp |
class | MultiLevelPageTable |
class | MuxingKvmGic |
class | Named |
Interface for things with names. More... | |
class | NoMaliGpu |
class | NonCachingSimpleCPU |
The NonCachingSimpleCPU is an AtomicSimpleCPU using the 'atomic_noncaching' memory mode instead of just 'atomic'. More... | |
class | NoncoherentCache |
A non-coherent cache. More... | |
class | NoncoherentXBar |
A non-coherent crossbar connects a number of non-snooping memory-side ports and cpu_sides, and routes the request and response packets based on the address. More... | |
struct | ns_desc32 |
struct | ns_desc64 |
class | NSGigE |
NS DP83820 Ethernet device model. More... | |
class | NSGigEInt |
class | NvmGen |
NVM specific generator is for issuing request with variable buffer hit length and bank utilization. More... | |
class | ObjectMatch |
ObjectMatch contains a vector of expressions. More... | |
class | OFSchedulingPolicy |
class | OpDesc |
class | OpenFlagTable |
class | OperandInfo |
class | OperatingSystem |
This class encapsulates the types, structures, constants, functions, and syscall-number mappings specific to an operating system syscall interface. More... | |
class | OutputDirectory |
Interface for creating files in a gem5 output directory. More... | |
class | OutputFile |
class | OutputStream |
struct | P9MsgHeader |
struct | P9MsgInfo |
class | Packet |
A Packet is used to encapsulate a transfer between two objects in the memory system (e.g., the L1 and L2 cache). More... | |
class | PacketFifo |
struct | PacketFifoEntry |
class | PacketQueue |
A packet queue is a class that holds deferred packets and later sends them using the associated CPU-side port or memory-side port. More... | |
struct | PageTableOps |
class | PanicPCEvent |
struct | ParseParam |
struct | ParseParam< BitUnionType< T > > |
struct | ParseParam< bool > |
struct | ParseParam< std::string > |
struct | ParseParam< T, decltype(to_number("", std::declval< T & >()), void())> |
struct | ParseParam< T, std::enable_if_t< std::is_base_of< typename RegisterBankBase::RegisterBaseBase, T >::value > > |
struct | ParseParam< VecPredRegContainer< NumBits, Packed > > |
struct | ParseParam< VecRegContainer< Sz > > |
Calls required for serialization/deserialization. More... | |
class | Pc |
struct | pcap_file_header |
struct | pcap_pkthdr |
class | PCEvent |
class | PCEventQueue |
class | PCEventScope |
class | PciBar |
class | PciBarNone |
struct | PciBusAddr |
class | PciDevice |
PCI device, base implementation is only config space. More... | |
class | PciHost |
The PCI host describes the interface between PCI devices and a simulated system. More... | |
class | PciIoBar |
class | PciLegacyIoBar |
class | PciMemBar |
class | PciMemUpperBar |
class | PciVirtIO |
class | PerfKvmCounter |
An instance of a performance counter. More... | |
class | PerfKvmCounterConfig |
PerfEvent counter configuration. More... | |
class | PerfKvmTimer |
PerfEvent based timer using the host's CPU cycle counter. More... | |
class | PhysRegId |
Physical register ID. More... | |
class | PioDevice |
This device is the base class which all devices senstive to an address range inherit from. More... | |
class | PioPort |
The PioPort class is a programmed i/o port that all devices that are sensitive to an address range use. More... | |
class | PipeFDEntry |
Holds the metadata needed to maintain the mappings for file descriptors allocated with the pipe() system calls and its variants. More... | |
class | PipeStageIFace |
struct | Pixel |
Internal gem5 representation of a Pixel. More... | |
class | PixelConverter |
Configurable RGB pixel converter. More... | |
class | Pl011 |
class | PL031 |
class | Pl050 |
class | Pl111 |
class | Platform |
class | Plic |
class | PlicIntDevice |
struct | PlicOutput |
NOTE: This implementation of CLINT is based on the SiFive U54MC datasheet: https://sifive.cdn.prismic.io/sifive/fab000f6- 0e07-48d0-9602-e437d5367806_sifive_U54MC_rtl_ full_20G1.03.00_manual.pdf. More... | |
class | PMAChecker |
Based on the RISC-V ISA privileged specifications V1.11, there is no implementation guidelines on the Physical Memory Attributes. More... | |
class | PMP |
This class helps to implement RISCV's physical memory protection (pmp) primitive. More... | |
class | PngWriter |
Image writer implementing support for PNG. More... | |
class | PollEvent |
class | PollQueue |
class | PoolManager |
class | Port |
Ports are used to interface objects to each other. More... | |
class | PortProxy |
This object is a proxy for a port or other object which implements the functional response protocol, to be used for debug accesses. More... | |
class | PosixKvmTimer |
Timer based on standard POSIX timers. More... | |
class | PowerDomain |
The PowerDomain groups PowerState objects together to regulate their power states. More... | |
class | PowerLinux |
class | PowerModel |
class | PowerModelState |
A PowerModelState is an abstract class used as interface to get power figures out of SimObjects. More... | |
class | PowerProcess |
class | PowerState |
Helper class for objects that have power states. More... | |
struct | PrdEntry_t |
class | PrdTableEntry |
class | Printable |
Abstract base class for objects which support being printed to a stream for debugging. More... | |
class | ProbeListener |
ProbeListener base class; here to simplify things like containers containing multiple types of ProbeListener. More... | |
class | ProbeListenerArg |
ProbeListenerArg generates a listener for the class of Arg and the class type T which is the class containing the function that notify will call. More... | |
class | ProbeListenerArgBase |
ProbeListenerArgBase is used to define the base interface to a ProbeListenerArg (i.e the notify method on specific type). More... | |
class | ProbeListenerObject |
This class is a minimal wrapper around SimObject. More... | |
class | ProbeManager |
ProbeManager is a conduit class that lives on each SimObject, and is used to match up probe listeners with probe points. More... | |
class | ProbePoint |
ProbeListener base class; again used to simplify use of ProbePoints in containers and used as to define interface for adding removing listeners to the ProbePoint. More... | |
class | ProbePointArg |
ProbePointArg generates a point for the class of Arg. More... | |
class | Process |
class | ProfileNode |
class | ProtocolTester |
class | ProxyPtr |
class | ProxyPtr< void, Proxy > |
class | ProxyPtrBuffer |
class | PybindSimObjectResolver |
Resolve a SimObject name using the Pybind configuration. More... | |
class | PyEvent |
PyBind wrapper for Events. More... | |
class | PyTrafficGen |
struct | QCntxt |
class | Queue |
A high-level queue interface, to be used by both the MSHR queue and the write buffer. More... | |
class | QueuedRequestPort |
The QueuedRequestPort combines two queues, a request queue and a snoop response queue, that both share the same port. More... | |
class | QueuedResponsePort |
A queued port is a port that has an infinite queue for outgoing packets and thus decouples the module that wants to send request/responses from the flow control (retry mechanism) of the port. More... | |
class | QueueEntry |
A queue entry base class, to be used by both the MSHRs and write-queue entries. More... | |
class | Random |
class | RandomGen |
The random generator is similar to the linear one, but does not generate sequential addresses. More... | |
class | RandomStreamGen |
class | RangeAddrMapper |
Range address mapper that maps a set of original ranges to a set of remapped ranges, where a specific range is of the same size (original and remapped), only with an offset. More... | |
class | RawDiskImage |
Specialization for accessing a raw disk image. More... | |
class | RealView |
class | RealViewCtrl |
class | RealViewOsc |
This is an implementation of a programmable oscillator on the that can be configured through the RealView/Versatile Express configuration interface. More... | |
class | RealViewTemperatureSensor |
This device implements the temperature sensor used in the RealView/Versatile Express platform. More... | |
class | RedirectPath |
RedirectPath stores a mapping from one 'appPath' to a vector of 'hostPath'. More... | |
class | ReExec |
class | RefCounted |
Derive from RefCounted if you want to enable reference counting of this class. More... | |
class | RefCountingPtr |
If you want a reference counting pointer to a mutable object, create it like this: More... | |
class | RegClassInfo |
class | RegId |
Register ID: describe an architectural register with its class and index. More... | |
class | RegImmImmOp |
class | RegImmOp |
class | RegImmRegOp |
class | RegImmRegShiftOp |
class | RegisterBank |
class | RegisterBankBase |
class | RegisterFile |
class | RegisterManager |
class | RegisterManagerPolicy |
Register Manager Policy abstract class. More... | |
class | RegisterOperandInfo |
class | RegMiscRegImmOp |
class | RegMiscRegImmOp64 |
class | RegNone |
class | RegOp |
class | RegRegImmImmOp |
class | RegRegImmImmOp64 |
class | RegRegImmOp |
class | RegRegOp |
class | RegRegRegImmOp |
class | RegRegRegImmOp64 |
class | RegRegRegOp |
class | RegRegRegRegOp |
class | ReplaceableEntry |
A replaceable entry is a basic entry in a 2d table-like structure that needs to have replacement functionality. More... | |
class | ReqPacketQueue |
class | Request |
struct | RequestorInfo |
The RequestorInfo class contains data about a specific requestor. More... | |
class | RequestPort |
A RequestPort is a specialisation of a Port, which implements the default protocol for the three different level of transport functions. More... | |
class | ResponsePort |
A ResponsePort is a specialization of a port. More... | |
class | RespPacketQueue |
class | RiscvLinux |
class | RiscvLinux32 |
class | RiscvLinux64 |
class | RiscvProcess |
class | RiscvProcess32 |
class | RiscvProcess64 |
class | RiscvRTC |
NOTE: This is a generic wrapper around the MC146818 RTC. More... | |
class | Root |
class | RRSchedulingPolicy |
class | RubyDirectedTester |
class | RubyTester |
class | ScalarMemPipeline |
class | ScalarRegisterFile |
class | Scheduler |
class | ScheduleStage |
class | ScheduleToExecute |
Communication interface between Schedule and Execute stages. More... | |
class | SchedulingPolicy |
Interface class for the wave scheduling policy. More... | |
class | ScoreboardCheckStage |
class | ScoreboardCheckToSchedule |
Communication interface between ScoreboardCheck and Schedule stages. More... | |
class | Scp |
class | Scp2ApDoorbell |
class | SectorBlk |
A Basic Sector block. More... | |
class | SectorSubBlk |
A sector is composed of sub-blocks, and each sub-block has information regarding its sector and a pointer to its sector tag. More... | |
class | SectorTags |
A SectorTags cache tag store. More... | |
struct | SemiPseudoAbi32 |
struct | SemiPseudoAbi64 |
class | SerialDevice |
Base class for serial devices such as terminals. More... | |
class | Serializable |
Basic support for object serialization. More... | |
class | SerialLink |
SerialLink is a simple variation of the Bridge class, with the ability to account for the latency of packet serialization. More... | |
class | SerialNullDevice |
Dummy serial device that discards all data sent to it. More... | |
class | SeriesRequestGenerator |
class | SESyscallFault |
class | SetAssociative |
A set associative indexing policy. More... | |
class | SETranslatingPortProxy |
class | SEWorkload |
class | Shader |
struct | ShowParam |
struct | ShowParam< BitUnionType< T > > |
struct | ShowParam< bool > |
struct | ShowParam< T, std::enable_if_t< std::is_base_of< typename RegisterBankBase::RegisterBaseBase, T >::value > > |
struct | ShowParam< T, std::enable_if_t< std::is_same< char, T >::value||std::is_same< unsigned char, T >::value||std::is_same< signed char, T >::value > > |
struct | ShowParam< VecPredRegContainer< NumBits, Packed > > |
struct | ShowParam< VecRegContainer< Sz > > |
class | SignalInterruptBwIf |
struct | SignalInterruptDummyProtocolType |
class | SignalInterruptFwIf |
class | SignalInterruptInitiatorSocket |
class | SignalInterruptSlaveBase |
class | SignalInterruptTargetSocket |
class | SimObject |
Abstract superclass for simulation objects. More... | |
class | SimObjectResolver |
Base class to wrap object resolving functionality. More... | |
class | SimpleCache |
A very simple cache object. More... | |
class | SimpleDisk |
class | SimpleExecContext |
class | SimpleMemDelay |
Delay packets by a constant time. More... | |
class | SimpleMemobj |
A very simple memory object. More... | |
class | SimpleObject |
class | SimplePoolManager |
class | SimpleThread |
The SimpleThread object provides a combination of the ThreadState object and the ThreadContext interface. More... | |
class | SimpleTimingPort |
The simple timing port uses a queued port to implement recvFunctional and recvTimingReq through recvAtomic. More... | |
class | SimpleUart |
class | SimPoint |
class | SkewedAssociative |
A skewed associative indexing policy. More... | |
class | SkipFuncBase |
class | SlavePort |
struct | SMMUAction |
class | SMMUATSDevicePort |
class | SMMUATSMemoryPort |
struct | SMMUCommand |
class | SMMUCommandExecProcess |
class | SMMUControlPort |
class | SMMUDevicePort |
class | SMMUDeviceRetryEvent |
struct | SMMUEvent |
class | SMMUProcess |
union | SMMURegs |
class | SMMURequestPort |
struct | SMMUSemaphore |
struct | SMMUSignal |
class | SMMUTableWalkPort |
class | SMMUTLB |
class | SMMUTranslationProcess |
struct | SMMUTranslRequest |
class | SMMUv3 |
class | SMMUv3BaseCache |
class | SMMUv3DeviceInterface |
struct | SNHash |
class | SnoopFilter |
This snoop filter keeps track of which connected port has a particular line of data. More... | |
class | SnoopRespPacketQueue |
class | SocketFDEntry |
class | Solaris |
This class encapsulates the types, structures, constants, functions, and syscall-number mappings specific to the Solaris syscall interface. More... | |
class | SouthBridge |
class | Sp804 |
class | Sp805 |
class | Sparc32Linux |
class | Sparc32Process |
class | Sparc64Process |
class | SparcLinux |
class | SparcProcess |
struct | SparcPseudoInstABI |
class | SparcSolaris |
class | SrcClockDomain |
The source clock domains provides the notion of a clock domain that is connected to a tunable clock source. More... | |
class | StackDistCalc |
The stack distance calculator is a passive object that merely observes the addresses pass to it. More... | |
class | StackDistProbe |
class | StaticInst |
Base, ISA-independent static instruction class. More... | |
class | StaticRegisterManagerPolicy |
class | StochasticGen |
class | StreamGen |
struct | StreamTableEntry |
class | StridedGen |
The strided generator generates sequential requests from a start to an end address, with a fixed block size. More... | |
struct | StringWrap |
class | StubSlavePort |
Implement a ‘stub’ port which just responds to requests by printing a message. More... | |
class | StubSlavePortHandler |
class | SubSystem |
The SubSystem simobject does nothing, it is just a container for other simobjects used by the configuration system. More... | |
class | SuperBlk |
A basic compression superblock. More... | |
class | SyscallDesc |
This class provides the wrapper interface for the system call implementations which are defined in the sim/syscall_emul files and bound to the ISAs in the architecture specific code (i.e. More... | |
class | SyscallDescABI |
class | SyscallDescTable |
class | SyscallRetryFault |
class | SyscallReturn |
This class represents the return value from an emulated system call, including any errno setting. More... | |
class | System |
class | SystemCounter |
Global system counter. More... | |
class | SystemCounterListener |
Abstract class for elements whose events depend on the counting speed of the System Counter. More... | |
class | T1000 |
class | TaggedEntry |
A tagged entry is an entry containing a tag. More... | |
class | TapEvent |
class | TapListener |
class | TCPIface |
class | TempCacheBlk |
Special instance of CacheBlk for use with tempBlk that deals with its block address regeneration. More... | |
class | Temperature |
The class stores temperatures in Kelvin and provides helper methods to convert to/from Celsius. More... | |
class | Terminal |
class | TesterDma |
class | TesterThread |
class | ThermalCapacitor |
A ThermalCapacitor is used to model a thermal capacitance between two thermal domains. More... | |
class | ThermalDomain |
A ThermalDomain is used to group objects under that operate under the same temperature. More... | |
class | ThermalEntity |
An abstract class that represents any thermal entity which is used in the circuital thermal equivalent model. More... | |
class | ThermalModel |
class | ThermalNode |
A ThermalNode is used to connect thermal entities, such as resistors, capacitors, references and domains. More... | |
class | ThermalReference |
A ThermalReference is a thermal domain with fixed temperature. More... | |
class | ThermalResistor |
A ThermalResistor is used to model a thermal resistance between two thermal domains. More... | |
class | ThreadContext |
ThreadContext is the external interface to all thread state for anything outside of the CPU. More... | |
struct | ThreadState |
Struct for holding general thread state that is needed across CPU models. More... | |
class | Ticked |
Ticked attaches gem5's event queue/scheduler to evaluate calls and provides a start/stop interface to ticking. More... | |
class | TickedObject |
TickedObject attaches Ticked to ClockedObject and can be used as a base class where ticked operation. More... | |
class | Time |
class | TimeBuffer |
class | TimingExpr |
class | TimingExprBin |
class | TimingExprEvalContext |
Object to gather the visible context for evaluation. More... | |
class | TimingExprIf |
class | TimingExprLet |
class | TimingExprLiteral |
class | TimingExprReadIntReg |
class | TimingExprRef |
class | TimingExprSrcReg |
class | TimingExprUn |
class | TimingRequestProtocol |
class | TimingResponseProtocol |
class | TimingSimpleCPU |
class | TLBCoalescer |
The TLBCoalescer is a ClockedObject sitting on the front side (CPUSide) of each TLB. More... | |
class | TokenManager |
class | TokenRequestPort |
class | TokenResponsePort |
class | TraceCPU |
The trace cpu replays traces generated using the elastic trace probe attached to the O3 CPU model. More... | |
class | TraceGen |
The trace replay generator reads a trace file and plays back the transactions. More... | |
class | TrafficGen |
The traffic generator is a module that generates stimuli for the memory system, based on a collection of simple behaviours that are either probabilistic or based on traces. More... | |
class | TranslatingPortProxy |
This proxy attempts to translate virtual addresses using the TLBs. More... | |
class | Trie |
A trie is a tree-based data structure used for data retrieval. More... | |
struct | TypedAtomicOpFunctor |
class | TypedBufferArg |
TypedBufferArg is a class template; instances of this template represent typed buffers in target user space that are passed by reference to an (emulated) system call. More... | |
class | Uart |
class | Uart8250 |
class | UFSHostDevice |
Host controller layer: This is your Host controller This layer handles the UFS functionality. More... | |
class | UncontendedMutex |
class | UnimpFault |
class | UnknownOp |
class | UnknownOp64 |
struct | V7LPageTableOps |
struct | V8PageTableOps16k |
struct | V8PageTableOps4k |
struct | V8PageTableOps64k |
class | VecPredRegContainer |
Generic predicate register container. More... | |
class | VecPredRegT |
Predicate register view. More... | |
class | VecRegContainer |
Vector Register Abstraction This generic class is the model in a particularization of MVC, to vector registers. More... | |
class | VectorRegisterFile |
class | VGic |
class | VirtDescriptor |
VirtIO descriptor (chain) wrapper. More... | |
class | VirtIO9PBase |
This class implements a VirtIO transport layer for the 9p network file system. More... | |
class | VirtIO9PDiod |
VirtIO 9p proxy that communicates with the diod 9p server using pipes. More... | |
class | VirtIO9PProxy |
VirtIO 9p proxy base class. More... | |
class | VirtIO9PSocket |
VirtIO 9p proxy that communicates with a 9p server over tcp sockets. More... | |
class | VirtIOBlock |
VirtIO block device. More... | |
class | VirtIOConsole |
VirtIO console. More... | |
class | VirtIODeviceBase |
Base class for all VirtIO-based devices. More... | |
class | VirtIODummyDevice |
class | VirtQueue |
Base wrapper around a virtqueue. More... | |
class | VMA |
class | VncInput |
class | VncKeyboard |
A device that expects to receive input from the vnc server should derrive (through mulitple inheritence if necessary from VncKeyboard or VncMouse and call setKeyboard() or setMouse() respectively on the vnc server. More... | |
class | VncMouse |
class | VncServer |
class | VoltageDomain |
A VoltageDomain is used to group clock domains that operate under the same voltage. More... | |
class | WaitClass |
class | WaiterState |
WaiterState defines internal state of a waiter thread. More... | |
class | WalkCache |
class | WarnUnimplemented |
Base class for unimplemented instructions that cause a warning to be printed (but do not terminate simulation). More... | |
class | Wavefront |
class | WFBarrier |
WF barrier slots. More... | |
class | WholeTranslationState |
This class captures the state of an address translation. More... | |
class | Workload |
class | WriteAllocator |
The write allocator inspects write packets and detects streaming patterns. More... | |
class | WriteQueue |
A write queue for all eviction packets, i.e. More... | |
class | WriteQueueEntry |
Write queue entry. More... | |
class | X86KvmCPU |
x86 implementation of a KVM-based hardware virtualized CPU. More... | |
class | X86Linux |
class | X86Linux32 |
class | X86Linux64 |
struct | X86PseudoInstABI |
Typedefs | |
typedef std::unique_ptr< BaseHTMCheckpoint > | BaseHTMCheckpointPtr |
typedef Trie< Addr, X86ISA::TlbEntry > | TlbEntryTrie |
typedef MultiLevelPageTable< LongModePTE< 47, 39 >, LongModePTE< 38, 30 >, LongModePTE< 29, 21 >, LongModePTE< 20, 12 > > | ArchPageTable |
typedef std::list< AddrRange > | AddrRangeList |
Convenience typedef for a collection of address ranges. More... | |
typedef std::unique_ptr< AtomicOpFunctor > | AtomicOpFunctorPtr |
template<typename T > | |
using | BitUnionType = bitfield_backend::BitUnionOperators< T > |
template<typename T > | |
using | BitUnionBaseType = typename bitfield_backend::BitUnionBaseType< T >::Type |
typedef SatCounter8 | SatCounter |
typedef int64_t | Counter |
Statistics counter type. More... | |
typedef uint64_t | Tick |
Tick count type. More... | |
typedef uint64_t | Addr |
Address type This will probably be moved somewhere else in the near future. More... | |
typedef uint16_t | MicroPC |
using | RegVal = uint64_t |
using | RegIndex = uint16_t |
using | ElemIndex = uint16_t |
Logical vector register elem index type. More... | |
typedef int16_t | ThreadID |
Thread index/ID type. More... | |
typedef int | ContextID |
Globally unique thread context ID. More... | |
typedef int16_t | PortID |
Port index/ID type, and a symbolic name for an invalid port id. More... | |
typedef std::shared_ptr< FaultBase > | Fault |
typedef std::vector< OpDesc * >::const_iterator | OPDDiterator |
typedef std::vector< FUDesc * >::const_iterator | FUDDiterator |
typedef uint64_t | InstSeqNum |
typedef unsigned int | InstTag |
using | PhysRegIdPtr = PhysRegId * |
typedef std::pair< Addr, Addr > | BasicBlockRange |
Probe for SimPoints BBV generation. More... | |
typedef RefCountingPtr< StaticInst > | StaticInstPtr |
typedef RubyTester::SenderState | SenderState |
using | PacketPtr = Packet * |
typedef uint32_t | _amd_queue_properties32_t |
typedef int64_t | amd_signal_kind64_t |
typedef struct gem5::amd_signal_s | amd_signal_t |
typedef std::shared_ptr< EthPacketData > | EthPacketPtr |
using | RegisterBankLE = RegisterBank< ByteOrder::little > |
using | RegisterBankBE = RegisterBank< ByteOrder::big > |
typedef std::map< P9MsgType, P9MsgInfo > | P9MsgInfoMap |
typedef uint8_t | P9MsgType |
typedef uint16_t | P9Tag |
typedef std::bitset< std::numeric_limits< unsigned long long >::digits > | VectorMask |
typedef std::shared_ptr< GPUDynInst > | GPUDynInstPtr |
typedef MemBackdoor * | MemBackdoorPtr |
typedef std::vector< ReplaceableEntry * > | ReplacementCandidates |
Replacement candidates as chosen by the indexing policy. More... | |
typedef uint32_t | CachesMask |
typedef uint8_t * | PacketDataPtr |
typedef std::list< PacketPtr > | PacketList |
typedef uint64_t | PacketId |
typedef std::shared_ptr< Request > | RequestPtr |
typedef uint16_t | RequestorID |
using | namespace = gem5::auxv::AuxVector< IntType > |
typedef statistics::Scalar | FaultStat |
typedef std::list< WaiterState > | WaiterList |
template<typename T > | |
using | ConstVPtr = ConstProxyPtr< T, SETranslatingPortProxy > |
template<typename T = void> | |
using | VPtr = ProxyPtr< T, SETranslatingPortProxy > |
typedef std::ostream | CheckpointOut |
typedef struct statfs | hst_statfs |
typedef struct stat | hst_stat |
typedef struct stat64 | hst_stat64 |
Functions | |
template<typename T , int N> | |
void | initMemReqHelper (GPUDynInstPtr gpuDynInst, MemCmd mem_req_type, bool is_atomic=false) |
Helper function for instructions declared in op_encodings. More... | |
template<typename T , int N> | |
void | initMemReqScalarHelper (GPUDynInstPtr gpuDynInst, MemCmd mem_req_type) |
Helper function for scalar instructions declared in op_encodings. More... | |
GEM5_DEPRECATED_NAMESPACE (GuestABI, guest_abi) | |
GEM5_DEPRECATED_NAMESPACE (FastModel, fastmodel) | |
const static uint64_t | KVM_REG64_TTBR0 (regCp64(15, 0, 2)) |
const static uint64_t | KVM_REG64_TTBR1 (regCp64(15, 1, 2)) |
constexpr uint64_t | kvmXReg (const int num) |
constexpr uint64_t | kvmFPReg (const int num) |
static bool | tryTranslate (ThreadContext *tc, Addr addr) |
std::ostream & | operator<< (std::ostream &os, const ArmSemihosting::InPlaceArg &ipa) |
GEM5_DEPRECATED_NAMESPACE (FreeBSD, free_bsd) | |
GEM5_DEPRECATED_NAMESPACE (Linux, linux) | |
template<class XC > | |
Fault | initiateMemRead (XC *xc, Addr addr, std::size_t size, Request::Flags flags, const std::vector< bool > &byte_enable) |
template<class XC , class MemT > | |
Fault | initiateMemRead (XC *xc, Trace::InstRecord *traceData, Addr addr, MemT &mem, Request::Flags flags) |
Initiate a read from memory in timing mode. More... | |
template<ByteOrder Order, class MemT > | |
void | getMem (PacketPtr pkt, MemT &mem, Trace::InstRecord *traceData) |
Extract the data returned from a timing mode read. More... | |
template<class MemT > | |
void | getMemLE (PacketPtr pkt, MemT &mem, Trace::InstRecord *traceData) |
template<class MemT > | |
void | getMemBE (PacketPtr pkt, MemT &mem, Trace::InstRecord *traceData) |
template<class XC > | |
Fault | readMemAtomic (XC *xc, Addr addr, uint8_t *mem, std::size_t size, Request::Flags flags, const std::vector< bool > &byte_enable) |
Read from memory in atomic mode. More... | |
template<ByteOrder Order, class XC , class MemT > | |
Fault | readMemAtomic (XC *xc, Trace::InstRecord *traceData, Addr addr, MemT &mem, Request::Flags flags) |
Read from memory in atomic mode. More... | |
template<class XC , class MemT > | |
Fault | readMemAtomicLE (XC *xc, Trace::InstRecord *traceData, Addr addr, MemT &mem, Request::Flags flags) |
template<class XC , class MemT > | |
Fault | readMemAtomicBE (XC *xc, Trace::InstRecord *traceData, Addr addr, MemT &mem, Request::Flags flags) |
template<class XC > | |
Fault | writeMemTiming (XC *xc, uint8_t *mem, Addr addr, std::size_t size, Request::Flags flags, uint64_t *res, const std::vector< bool > &byte_enable) |
Write to memory in timing mode. More... | |
template<ByteOrder Order, class XC , class MemT > | |
Fault | writeMemTiming (XC *xc, Trace::InstRecord *traceData, MemT mem, Addr addr, Request::Flags flags, uint64_t *res) |
template<class XC , class MemT > | |
Fault | writeMemTimingLE (XC *xc, Trace::InstRecord *traceData, MemT mem, Addr addr, Request::Flags flags, uint64_t *res) |
template<class XC , class MemT > | |
Fault | writeMemTimingBE (XC *xc, Trace::InstRecord *traceData, MemT mem, Addr addr, Request::Flags flags, uint64_t *res) |
template<class XC > | |
Fault | writeMemAtomic (XC *xc, uint8_t *mem, Addr addr, std::size_t size, Request::Flags flags, uint64_t *res, const std::vector< bool > &byte_enable) |
Write to memory in atomic mode. More... | |
template<ByteOrder Order, class XC , class MemT > | |
Fault | writeMemAtomic (XC *xc, Trace::InstRecord *traceData, const MemT &mem, Addr addr, Request::Flags flags, uint64_t *res) |
template<class XC , class MemT > | |
Fault | writeMemAtomicLE (XC *xc, Trace::InstRecord *traceData, const MemT &mem, Addr addr, Request::Flags flags, uint64_t *res) |
template<class XC , class MemT > | |
Fault | writeMemAtomicBE (XC *xc, Trace::InstRecord *traceData, const MemT &mem, Addr addr, Request::Flags flags, uint64_t *res) |
template<ByteOrder Order, class XC , class MemT > | |
Fault | amoMemAtomic (XC *xc, Trace::InstRecord *traceData, MemT &mem, Addr addr, Request::Flags flags, AtomicOpFunctor *_amo_op) |
Do atomic read-modify-write (AMO) in atomic mode. More... | |
template<class XC , class MemT > | |
Fault | amoMemAtomicLE (XC *xc, Trace::InstRecord *traceData, MemT &mem, Addr addr, Request::Flags flags, AtomicOpFunctor *_amo_op) |
template<class XC , class MemT > | |
Fault | amoMemAtomicBE (XC *xc, Trace::InstRecord *traceData, MemT &mem, Addr addr, Request::Flags flags, AtomicOpFunctor *_amo_op) |
template<class XC , class MemT > | |
Fault | initiateMemAMO (XC *xc, Trace::InstRecord *traceData, Addr addr, MemT &mem, Request::Flags flags, AtomicOpFunctor *_amo_op) |
Do atomic read-modify-wrote (AMO) in timing mode. More... | |
typedef | GEM5_ALIGNED (8) uint64_t uint64_ta |
GEM5_DEPRECATED_NAMESPACE (Loader, loader) | |
static Addr | buildKey (Addr vpn, uint16_t asid) |
static std::string | getMiscRegName (RegIndex index) |
template<class T > | |
void | writeVal (T val, PortProxy &proxy, Addr &addr) |
template<class T > | |
uint8_t | writeOutField (PortProxy &proxy, Addr addr, T val) |
uint8_t | writeOutString (PortProxy &proxy, Addr addr, std::string str, int length) |
template<class T > | |
uint64_t | composeBitVector (T vec) |
int | divideFromConf (uint32_t conf) |
template<> | |
void | paramOut (CheckpointOut &cp, const std::string &name, ExtMachInst const &machInst) |
template<> | |
void | paramIn (CheckpointIn &cp, const std::string &name, ExtMachInst &machInst) |
AddrRange | RangeEx (Addr start, Addr end) |
AddrRange | RangeIn (Addr start, Addr end) |
AddrRange | RangeSize (Addr start, Addr size) |
ssize_t | atomic_read (int fd, void *s, size_t n) |
ssize_t | atomic_write (int fd, const void *s, size_t n) |
constexpr uint64_t | mask (unsigned nbits) |
Generate a 64-bit mask of 'nbits' 1s, right justified. More... | |
template<class T > | |
constexpr T | bits (T val, unsigned first, unsigned last) |
Extract the bitfield from position 'first' to 'last' (inclusive) from 'val' and right justify it. More... | |
template<class T > | |
constexpr T | bits (T val, unsigned bit) |
Extract the bit from this position from 'val' and right justify it. More... | |
template<class T > | |
constexpr T | mbits (T val, unsigned first, unsigned last) |
Mask off the given bits in place like bits() but without shifting. More... | |
constexpr uint64_t | mask (unsigned first, unsigned last) |
template<int N> | |
constexpr uint64_t | sext (uint64_t val) |
Sign-extend an N-bit value to 64 bits. More... | |
template<int N> | |
constexpr uint64_t | szext (uint64_t val) |
Sign-extend an N-bit value to 64 bits. More... | |
template<class T , class B > | |
constexpr T | insertBits (T val, unsigned first, unsigned last, B bit_val) |
Returns val with bits first to last set to the LSBs of bit_val. More... | |
template<class T , class B > | |
constexpr T | insertBits (T val, unsigned bit, B bit_val) |
Overloaded for access to only one bit in value. More... | |
template<class T , class B > | |
constexpr void | replaceBits (T &val, unsigned first, unsigned last, B bit_val) |
A convenience function to replace bits first to last of val with bit_val in place. More... | |
template<class T , class B > | |
constexpr void | replaceBits (T &val, unsigned bit, B bit_val) |
Overloaded function to allow to access only 1 bit. More... | |
template<class T > | |
std::enable_if_t< std::is_integral< T >::value &&sizeof(T) !=1, T > | reverseBits (T val, size_t size=sizeof(T)) |
Takes a value and returns the bit reversed version. More... | |
template<class T > | |
std::enable_if_t< std::is_integral< T >::value &&sizeof(T)==1, T > | reverseBits (T val, size_t size=sizeof(T)) |
constexpr int | findMsbSet (uint64_t val) |
Returns the bit position of the MSB that is set in the input. More... | |
constexpr int | findLsbSet (uint64_t val) |
Returns the bit position of the LSB that is set in the input. More... | |
constexpr int | popCount (uint64_t val) |
Returns the number of set ones in the provided value. More... | |
constexpr uint64_t | alignToPowerOfTwo (uint64_t val) |
Align to the next highest power of two. More... | |
constexpr int | ctz32 (uint32_t value) |
Count trailing zeros in a 32-bit value. More... | |
constexpr int | ctz64 (uint64_t value) |
Count trailing zeros in a 64-bit value. More... | |
template<typename T > | |
std::ostream & | operator<< (std::ostream &os, const BitUnionType< T > &bu) |
A default << operator which casts a bitunion to its underlying type and passes it to bitfield_backend::bitfieldBackendPrinter. More... | |
template<class T , class U > | |
T | safe_cast (U ptr) |
std::ostream & | operator<< (std::ostream &out, const ChannelAddr &addr) |
template<typename T > | |
void | arrayParamOut (CheckpointOut &cp, const std::string &name, const CircleBuf< T > ¶m) |
template<typename T > | |
void | arrayParamIn (CheckpointIn &cp, const std::string &name, CircleBuf< T > ¶m) |
template<typename T > | |
void | arrayParamOut (CheckpointOut &cp, const std::string &name, const Fifo< T > ¶m) |
template<typename T > | |
void | arrayParamIn (CheckpointIn &cp, const std::string &name, Fifo< T > ¶m) |
static bool | findCarry (int width, uint64_t dest, uint64_t src1, uint64_t src2) |
Calculate the carry flag from an addition. More... | |
static bool | findOverflow (int width, uint64_t dest, uint64_t src1, uint64_t src2) |
Calculate the overflow flag from an addition. More... | |
static bool | findParity (int width, uint64_t dest) |
Calculate the parity of a value. More... | |
static bool | findNegative (int width, uint64_t dest) |
Calculate the negative flag. More... | |
static bool | findZero (int width, uint64_t dest) |
Calculate the zero flag. More... | |
void | ccprintf (cp::Print &print) |
template<typename T , typename ... Args> | |
void | ccprintf (cp::Print &print, const T &value, const Args &...args) |
template<typename ... Args> | |
void | ccprintf (std::ostream &stream, const char *format, const Args &...args) |
template<typename ... Args> | |
void | cprintf (const char *format, const Args &...args) |
template<typename ... Args> | |
std::string | csprintf (const char *format, const Args &...args) |
template<typename ... Args> | |
void | ccprintf (std::ostream &stream, const std::string &format, const Args &...args) |
template<typename ... Args> | |
void | cprintf (const std::string &format, const Args &...args) |
template<typename ... Args> | |
std::string | csprintf (const std::string &format, const Args &...args) |
void | handle_alarm (int signal) |
void | do_test (int seconds) |
int | main () |
template<uint32_t Poly> | |
uint32_t | crc32 (const uint8_t *data, uint32_t crc, std::size_t size) |
Evaluate the CRC32 of the first size bytes of a data buffer, using a specific polynomium and an initial value. More... | |
GEM5_DEPRECATED_NAMESPACE (Debug, debug) | |
void | setDebugFlag (const char *string) |
void | clearDebugFlag (const char *string) |
void | dumpDebugFlags (std::ostream &os) |
void | setFpRound (RoundingMode rm) |
RoundingMode | getFpRound () |
GEM5_DEPRECATED_NAMESPACE (BloomFilter, bloom_filter) | |
uint64_t | procInfo (const char *filename, const char *target) |
uint64_t | memUsage () |
Determine the simulator process' total virtual memory usage. More... | |
std::unique_ptr< ImgWriter > | createImgWriter (enums::ImageFormat type, const FrameBuffer *fb) |
Factory Function which allocates a ImgWriter object and returns a smart pointer to it. More... | |
GEM5_DEPRECATED_NAMESPACE (Net, networking) | |
template<class T > | |
static constexpr std::enable_if_t< std::is_integral< T >::value, int > | floorLog2 (T x) |
template<class T > | |
static constexpr int | ceilLog2 (const T &n) |
template<class T > | |
static constexpr bool | isPowerOf2 (const T &n) |
template<class T , class U > | |
static constexpr T | divCeil (const T &a, const U &b) |
template<typename T > | |
static constexpr std::enable_if_t< sizeof(T)==sizeof(uint64_t)> | mulUnsigned (std::make_unsigned_t< T > &high, std::make_unsigned_t< T > &low, std::make_unsigned_t< T > val_a, std::make_unsigned_t< T > val_b) |
template<typename T > | |
static constexpr std::enable_if_t< sizeof(T)==sizeof(uint64_t)> | mulSignedManual (std::make_signed_t< T > &high, std::make_signed_t< T > &low, std::make_signed_t< T > val_a, std::make_signed_t< T > val_b) |
template<typename T > | |
static constexpr std::enable_if_t< sizeof(T)==sizeof(uint64_t)> | mulSigned (std::make_signed_t< T > &high, std::make_signed_t< T > &low, std::make_signed_t< T > val_a, std::make_signed_t< T > val_b) |
template<typename T > | |
static constexpr std::pair< std::make_unsigned_t< T >, std::make_unsigned_t< T > > | mulUnsigned (std::make_unsigned_t< T > val_a, std::make_unsigned_t< T > val_b) |
template<typename T > | |
static constexpr std::pair< std::make_signed_t< T >, std::make_signed_t< T > > | mulSigned (std::make_signed_t< T > val_a, std::make_signed_t< T > val_b) |
template<class T , class U > | |
static constexpr T | roundUp (const T &val, const U &align) |
This function is used to align addresses in memory. More... | |
template<class T , class U > | |
static constexpr T | roundDown (const T &val, const U &align) |
This function is used to align addresses in memory. More... | |
static constexpr int | log2i (int value) |
Calculate the log2 of a power of 2 integer. More... | |
bool | operator== (const Pixel &lhs, const Pixel &rhs) |
bool | to_number (const std::string &value, Pixel &retval) |
std::ostream & | operator<< (std::ostream &os, const Pixel &pxl) |
static void | writePng (png_structp pngPtr, png_bytep data, png_size_t length) |
Write callback to use with libpng APIs. More... | |
template<class ArgT > | |
static int | fcntlHelper (int fd, int cmd, ArgT arg) |
static int | fcntlHelper (int fd, int cmd) |
template<class T > | |
bool | operator== (const RefCountingPtr< T > &l, const RefCountingPtr< T > &r) |
Check for equality of two reference counting pointers. More... | |
template<class T > | |
bool | operator== (const RefCountingPtr< T > &l, const T *r) |
Check for equality of of a reference counting pointers and a regular pointer. More... | |
template<class T > | |
bool | operator== (const T *l, const RefCountingPtr< T > &r) |
Check for equality of of a reference counting pointers and a regular pointer. More... | |
template<class T > | |
bool | operator!= (const RefCountingPtr< T > &l, const RefCountingPtr< T > &r) |
Check for inequality of two reference counting pointers. More... | |
template<class T > | |
bool | operator!= (const RefCountingPtr< T > &l, const T *r) |
Check for inequality of of a reference counting pointers and a regular pointer. More... | |
template<class T > | |
bool | operator!= (const T *l, const RefCountingPtr< T > &r) |
Check for inequality of of a reference counting pointers and a regular pointer. More... | |
GEM5_DEPRECATED_NAMESPACE (Stats, statistics) | |
void | debugDumpStats () |
template<typename T > | |
bool | emptyStrings (const T &labels) |
Check if all strings in a container are empty. More... | |
bool | split_first (const std::string &s, std::string &lhs, std::string &rhs, char c) |
bool | split_last (const std::string &s, std::string &lhs, std::string &rhs, char c) |
void | tokenize (std::vector< std::string > &v, const std::string &s, char token, bool ignore) |
void | eat_lead_white (std::string &s) |
void | eat_end_white (std::string &s) |
void | eat_white (std::string &s) |
std::string | to_lower (const std::string &s) |
template<class T > | |
std::enable_if_t<(std::is_integral< T >::value||std::is_floating_point< T >::value||std::is_enum< T >::value) &&!std::is_same< bool, T >::value, bool > | to_number (const std::string &value, T &retval) |
Turn a string representation of a number, either integral, floating point, or enum into an actual number. More... | |
bool | to_bool (const std::string &value, bool &retval) |
Turn a string representation of a boolean into a boolean value. More... | |
std::string | quote (const std::string &s) |
bool | startswith (const char *s, const char *prefix) |
Return true if 's' starts with the prefix string 'prefix'. More... | |
bool | startswith (const std::string &s, const char *prefix) |
Return true if 's' starts with the prefix string 'prefix'. More... | |
bool | startswith (const std::string &s, const std::string &prefix) |
Return true if 's' starts with the prefix string 'prefix'. More... | |
std::ostream & | operator<< (std::ostream &out, const Temperature &temp) |
constexpr Temperature | operator* (const Temperature &lhs, const double &rhs) |
constexpr Temperature | operator* (const double &lhs, const Temperature &rhs) |
constexpr Temperature | operator/ (const Temperature &lhs, const double &rhs) |
void | sleep (const Time &time) |
time_t | mkutctime (struct tm *time) |
bool | operator== (const Time &l, const Time &r) |
bool | operator!= (const Time &l, const Time &r) |
bool | operator< (const Time &l, const Time &r) |
bool | operator<= (const Time &l, const Time &r) |
bool | operator> (const Time &l, const Time &r) |
bool | operator>= (const Time &l, const Time &r) |
Time | operator+ (const Time &l, const Time &r) |
Time | operator- (const Time &l, const Time &r) |
std::ostream & | operator<< (std::ostream &out, const Time &time) |
std::ostream & | operator<< (std::ostream &out, const Cycles &cycles) |
static MicroPC | romMicroPC (MicroPC upc) |
static MicroPC | normalMicroPC (MicroPC upc) |
static bool | isRomMicroPC (MicroPC upc) |
static uint32_t | floatToBits32 (float val) |
static uint64_t | floatToBits64 (double val) |
static uint64_t | floatToBits (double val) |
static uint32_t | floatToBits (float val) |
static float | bitsToFloat32 (uint32_t val) |
static double | bitsToFloat64 (uint64_t val) |
static double | bitsToFloat (uint64_t val) |
static float | bitsToFloat (uint32_t val) |
GEM5_DEPRECATED_NAMESPACE (DecodeCache, decode_cache) | |
static void | onKickSignal (int signo, siginfo_t *si, void *data) |
Dummy handler for KVM kick signals. More... | |
static pid_t | sysGettid () |
template<typename STRUCT , typename ENTRY > | |
static STRUCT * | newVarStruct (size_t entries) |
static void | dumpKvm (const struct kvm_regs ®s) |
static void | dumpKvm (const char *reg_name, const struct kvm_segment &seg) |
static void | dumpKvm (const char *reg_name, const struct kvm_dtable &dtable) |
static void | dumpKvm (const struct kvm_sregs &sregs) |
static void | dumpFpuSpec (const struct FXSave &xs) |
static void | dumpFpuSpec (const struct kvm_fpu &fpu) |
template<typename T > | |
static void | dumpFpuCommon (const T &fpu) |
static void | dumpKvm (const struct kvm_fpu &fpu) |
static void | dumpKvm (const struct kvm_xsave &xsave) |
static void | dumpKvm (const struct kvm_msrs &msrs) |
static void | dumpKvm (const struct kvm_xcrs ®s) |
static void | dumpKvm (const struct kvm_vcpu_events &events) |
static bool | isCanonicalAddress (uint64_t addr) |
static void | checkSeg (const char *name, const int idx, const struct kvm_segment &seg, struct kvm_sregs sregs) |
static void | setKvmSegmentReg (ThreadContext *tc, struct kvm_segment &kvm_seg, const int index) |
static void | setKvmDTableReg (ThreadContext *tc, struct kvm_dtable &kvm_dtable, const int index) |
static void | forceSegAccessed (struct kvm_segment &seg) |
template<typename T > | |
static void | updateKvmStateFPUCommon (ThreadContext *tc, T &fpu) |
void | setContextSegment (ThreadContext *tc, const struct kvm_segment &kvm_seg, const int index) |
void | setContextSegment (ThreadContext *tc, const struct kvm_dtable &kvm_dtable, const int index) |
template<typename T > | |
static void | updateThreadContextFPUCommon (ThreadContext *tc, const T &fpu) |
static struct kvm_cpuid_entry2 | makeKvmCpuid (uint32_t function, uint32_t index, CpuidResult &result) |
GEM5_DEPRECATED_NAMESPACE (Minor, minor) | |
void | change_thread_state (ThreadID tid, int activate, int priority) |
Changes the status and priority of the thread with the given number. More... | |
std::ostream & | operator<< (std::ostream &out, const Check &obj) |
std::ostream & | operator<< (std::ostream &out, const CheckTable &obj) |
std::ostream & | operator<< (std::ostream &out, const RubyTester &obj) |
void | pybind_init_tracers (py::module_ &m_native) |
void | takeOverFrom (ThreadContext &new_tc, ThreadContext &old_tc) |
Copy state between thread contexts in preparation for CPU handover. More... | |
Addr | addrBlockOffset (Addr addr, Addr block_size) |
Calculates the offset of a given address wrt aligned fixed-size blocks. More... | |
Addr | addrBlockAlign (Addr addr, Addr block_size) |
Returns the address of the closest aligned fixed-size block to the given address. More... | |
bool | transferNeedsBurst (Addr addr, unsigned int size, unsigned int block_size) |
Returns true if the given memory access (address, size) needs to be fragmented across aligned fixed-size blocks. More... | |
bool | isAnyActiveElement (const std::vector< bool >::const_iterator &it_start, const std::vector< bool >::const_iterator &it_end) |
Test if there is any active element in an enablement range. More... | |
GEM5_DEPRECATED_NAMESPACE (SCMI, scmi) | |
static uint8_t | bcdize (uint8_t val) |
static uint8_t | unbcdize (uint8_t val) |
GEM5_DEPRECATED_NAMESPACE (iGbReg, igbreg) | |
static int | SPDSTS_POLARITY (int lnksts) |
GEM5_DEPRECATED_NAMESPACE (Sinic, sinic) | |
GEM5_DEPRECATED_NAMESPACE (CopyEngineReg, copy_engine_reg) | |
GEM5_DEPRECATED_NAMESPACE (Ps2, ps2) | |
void | SafeRead (std::ifstream &stream, void *data, int count) |
template<class T > | |
void | SafeRead (std::ifstream &stream, T &data) |
template<class T > | |
void | SafeReadSwap (std::ifstream &stream, T &data) |
void | SafeWrite (std::ofstream &stream, const void *data, int count) |
template<class T > | |
void | SafeWrite (std::ofstream &stream, const T &data) |
template<class T > | |
void | SafeWriteSwap (std::ofstream &stream, const T &data) |
template<typename T > | |
T | p9toh (T v) |
Convert p9 byte order (LE) to host byte order. More... | |
template<typename T > | |
T | htop9 (T v) |
Convert host byte order to p9 byte order (LE) More... | |
template<> | |
P9MsgHeader | p9toh (P9MsgHeader v) |
template<> | |
P9MsgHeader | htop9 (P9MsgHeader v) |
static int | dumpDmesgEntry (const uint8_t *base, const uint8_t *end, const ByteOrder bo, std::ostream &os) |
GEM5_DEPRECATED_NAMESPACE (Prefetcher, prefetch) | |
GEM5_DEPRECATED_NAMESPACE (Compressor, compression) | |
static void | replaceUpgrade (PacketPtr pkt) |
GEM5_DEPRECATED_NAMESPACE (ReplacementPolicy, replacement_policy) | |
void | printSize (std::ostream &stream, size_t size) |
std::string | htmFailureToStr (HtmFailureFaultCause cause) |
Convert enum into string to be used for debug purposes. More... | |
std::string | htmFailureToStr (HtmCacheFailure rc) |
Convert enum into string to be used for debug purposes. More... | |
GEM5_DEPRECATED_NAMESPACE (ContextSwitchTaskId, context_switch_task_id) | |
Special TaskIds that are used for per-context-switch stats dumps and Cache Occupancy. More... | |
static void | init_drain (py::module_ &m_native) |
static void | init_serialize (py::module_ &m_native) |
static void | init_range (py::module_ &m_native) |
static void | init_net (py::module_ &m_native) |
static void | init_loader (py::module_ &m_native) |
void | pybind_init_core (py::module_ &m_native) |
static void | output (const char *filename) |
static void | ignore (const char *expr) |
void | pybind_init_debug (py::module_ &m_native) |
void | pybind_init_event (py::module_ &m_native) |
void | pybind_init_core (pybind11::module_ &m_native) |
void | pybind_init_debug (pybind11::module_ &m_native) |
void | pybind_init_event (pybind11::module_ &m_native) |
void | pybind_init_stats (pybind11::module_ &m_native) |
static const py::object | cast_stat_info (const statistics::Info *info) |
void | pybind_init_stats (py::module_ &m_native) |
void | print_backtrace () |
Print a gem5 post-mortem report. More... | |
uint64_t | swap_byte64 (uint64_t x) |
uint32_t | swap_byte32 (uint32_t x) |
uint16_t | swap_byte16 (uint16_t x) |
template<typename T > | |
std::enable_if_t< sizeof(T)==8 &&std::is_convertible< T, uint64_t >::value, T > | swap_byte (T x) |
template<typename T > | |
std::enable_if_t< sizeof(T)==4 &&std::is_convertible< T, uint32_t >::value, T > | swap_byte (T x) |
template<typename T > | |
std::enable_if_t< sizeof(T)==2 &&std::is_convertible< T, uint16_t >::value, T > | swap_byte (T x) |
template<typename T > | |
std::enable_if_t< sizeof(T)==1 &&std::is_convertible< T, uint8_t >::value, 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) |
void | fixClockFrequency () |
bool | clockFrequencyFixed () |
void | setClockFrequency (Tick tps) |
Tick | getClockFrequency () |
void | setOutputDir (const std::string &dir) |
CallbackQueue & | exitCallbacks () |
Queue of C++ callbacks to invoke on simulator exit. More... | |
void | registerExitCallback (const std::function< void()> &callback) |
Register an exit callback. More... | |
void | doExitCleanup () |
Do C++ simulator exit processing. More... | |
Tick | curTick () |
The universal simulation clock. More... | |
void | cxxConfigInit () |
Initialise cxx_config_directory. More... | |
static std::string | formatParamList (const std::vector< std::string > ¶m_values) |
void | schedBreak (Tick when) |
Cause the simulator to execute a breakpoint. More... | |
void | schedRelBreak (Tick delta) |
Cause the simulator to execute a breakpoint relative to the current tick. More... | |
void | takeCheckpoint (Tick when) |
Function to cause the simulator to take a checkpoint from the debugger. More... | |
void | eventqDump () |
Dump all the events currently on the event queue. More... | |
int | getRemoteGDBPort () |
void | setRemoteGDBPort (int port) |
EventQueue * | getEventQueue (uint32_t index) |
Function for returning eventq queue for the provided index. More... | |
void | dumpMainQueue () |
EventQueue * | curEventQueue () |
void | curEventQueue (EventQueue *q) |
bool | operator< (const Event &l, const Event &r) |
bool | operator> (const Event &l, const Event &r) |
bool | operator<= (const Event &l, const Event &r) |
bool | operator>= (const Event &l, const Event &r) |
bool | operator== (const Event &l, const Event &r) |
bool | operator!= (const Event &l, const Event &r) |
template<typename ABI , bool store_ret, typename Ret , typename ... Args> | |
Ret | invokeSimcall (ThreadContext *tc, std::function< Ret(ThreadContext *, Args...)> target) |
template<typename ABI , typename Ret , typename ... Args> | |
Ret | invokeSimcall (ThreadContext *tc, std::function< Ret(ThreadContext *, Args...)> target) |
template<typename ABI , bool store_ret, typename Ret , typename ... Args> | |
Ret | invokeSimcall (ThreadContext *tc, Ret(*target)(ThreadContext *, Args...)) |
template<typename ABI , typename Ret , typename ... Args> | |
Ret | invokeSimcall (ThreadContext *tc, Ret(*target)(ThreadContext *, Args...)) |
template<typename ABI , typename ... Args> | |
void | invokeSimcall (ThreadContext *tc, std::function< void(ThreadContext *, Args...)> target) |
template<typename ABI , typename ... Args> | |
void | invokeSimcall (ThreadContext *tc, void(*target)(ThreadContext *, Args...)) |
template<typename ABI , typename Ret , typename ... Args> | |
std::string | dumpSimcall (std::string name, ThreadContext *tc, std::function< Ret(ThreadContext *, Args...)> target=std::function< Ret(ThreadContext *, Args...)>()) |
template<typename ABI , typename Ret , typename ... Args> | |
std::string | dumpSimcall (std::string name, ThreadContext *tc, Ret(*target)(ThreadContext *, Args...)) |
void | registerNativeModules () |
int | m5Main (int argc, char **_argv) |
static bool | setupAltStack () |
static void | installSignalHandler (int signal, void(*handler)(int sigtype), int flags=SA_RESTART) |
static void | raiseFatalSignal (int signo) |
void | dumpStatsHandler (int sigtype) |
Stats signal handler. More... | |
void | dumprstStatsHandler (int sigtype) |
void | exitNowHandler (int sigtype) |
Exit signal handler. More... | |
void | abortHandler (int sigtype) |
Abort signal handler. More... | |
static void | segvHandler (int sigtype) |
Segmentation fault signal handler. More... | |
static void | ioHandler (int sigtype) |
void | initSignals () |
static std::ostream & | operator<< (std::ostream &os, const Port &port) |
GEM5_DEPRECATED_NAMESPACE (ProbePoints, probing) | |
Name space containing shared probe point declarations. More... | |
static std::string | normalize (const std::string &directory) |
template<class AddrType > | |
void | copyStringArray (std::vector< std::string > &strings, AddrType array_ptr, AddrType data_ptr, const ByteOrder bo, PortProxy &memProxy) |
template<typename T , typename Proxy , typename A > | |
std::enable_if_t< std::is_integral< A >::value, ConstProxyPtr< T, Proxy > > | operator+ (A a, const ConstProxyPtr< T, Proxy > &other) |
template<typename T , typename Proxy , typename A > | |
std::enable_if_t< std::is_integral< A >::value, ProxyPtr< T, Proxy > > | operator+ (A a, const ProxyPtr< T, Proxy > &other) |
template<typename T , typename Proxy > | |
std::ostream & | operator<< (std::ostream &os, const ConstProxyPtr< T, Proxy > &vptr) |
GEM5_DEPRECATED_NAMESPACE (PseudoInst, pseudo_inst) | |
void | py_interact () |
static std::string | normalizePath (std::string path) |
template<class T > | |
void | paramOut (CheckpointOut &os, const std::string &name, const T ¶m) |
This function is used for writing parameters to a checkpoint. More... | |
template<class T > | |
bool | paramInImpl (CheckpointIn &cp, const std::string &name, T ¶m) |
template<class T > | |
bool | optParamIn (CheckpointIn &cp, const std::string &name, T ¶m, bool do_warn=true) |
This function is used for restoring optional parameters from the checkpoint. More... | |
template<class T > | |
void | paramIn (CheckpointIn &cp, const std::string &name, T ¶m) |
This function is used for restoring parameters from a checkpoint. More... | |
template<class InputIterator > | |
void | arrayParamOut (CheckpointOut &os, const std::string &name, InputIterator start, InputIterator end) |
template<class T > | |
void | arrayParamOut (CheckpointOut &os, const std::string &name, const T *param, unsigned size) |
template<class T , class InsertIterator > | |
void | arrayParamIn (CheckpointIn &cp, const std::string &name, InsertIterator inserter, ssize_t fixed_size=-1) |
Extract values stored in the checkpoint, and assign them to the provided array container. More... | |
template<class T > | |
decltype(std::declval< T >().insert(std::declval< typename T::value_type >()), void()) | arrayParamIn (CheckpointIn &cp, const std::string &name, T ¶m) |
template<class T > | |
decltype(std::declval< T >().push_back(std::declval< typename T::value_type >()), void()) | arrayParamIn (CheckpointIn &cp, const std::string &name, T ¶m) |
template<class T > | |
void | arrayParamIn (CheckpointIn &cp, const std::string &name, T *param, unsigned size) |
template<class T > | |
void | mappingParamOut (CheckpointOut &os, const char *sectionName, const char *const names[], const T *param, unsigned size) |
Serialize a mapping represented as two arrays: one containing names and the other containing values. More... | |
template<class T > | |
void | mappingParamIn (CheckpointIn &cp, const char *sectionName, const char *const names[], T *param, unsigned size) |
Restore mappingParamOut. More... | |
void | exitSimLoop (const std::string &message, int exit_code=0, Tick when=curTick(), Tick repeat=0, bool serialize=false) |
Schedule an event to exit the simulation loop (returning to Python) at the end of the current cycle (curTick()). More... | |
void | exitSimLoopNow (const std::string &message, int exit_code=0, Tick repeat=0, bool serialize=false) |
Schedule an event as above, but make it high priority so it runs before any normal events which are schedule at the current time. More... | |
void | objParamIn (CheckpointIn &cp, const std::string &name, SimObject *¶m) |
To avoid circular dependencies the unserialization of SimObjects must be implemented here. More... | |
void | debug_serialize (const std::string &cpt_dir) |
Event * | doSimLoop (EventQueue *) |
forward declaration More... | |
static void | thread_loop (EventQueue *queue) |
The main function for all subordinate threads (i.e., all threads other than the main thread). More... | |
GlobalSimLoopExitEvent * | simulate (Tick num_cycles) |
Simulate for num_cycles additional cycles. More... | |
static bool | testAndClearAsyncEvent () |
Test and clear the global async_event flag, such that each time the flag is cleared, only one thread returns true (and thus is assigned to handle the corresponding async event(s)). More... | |
SyscallReturn | unimplementedFunc (SyscallDesc *desc, ThreadContext *tc) |
Handler for unimplemented syscalls that we haven't thought about. More... | |
void | warnUnsupportedOS (std::string syscall_name) |
SyscallReturn | ignoreFunc (SyscallDesc *desc, ThreadContext *tc) |
Handler for unimplemented syscalls that we never intend to implement (signal handling, etc.) and should not affect the correct behavior of the program. More... | |
SyscallReturn | ignoreWarnOnceFunc (SyscallDesc *desc, ThreadContext *tc) |
Like above, but only prints a warning once per syscall desc it's used with. More... | |
static void | exitFutexWake (ThreadContext *tc, VPtr<> addr, uint64_t tgid) |
static SyscallReturn | exitImpl (SyscallDesc *desc, ThreadContext *tc, bool group, int status) |
SyscallReturn | exitFunc (SyscallDesc *desc, ThreadContext *tc, int status) |
Target exit() handler: terminate current context. More... | |
SyscallReturn | exitGroupFunc (SyscallDesc *desc, ThreadContext *tc, int status) |
Target exit_group() handler: terminate simulation. (exit all threads) More... | |
SyscallReturn | getpagesizeFunc (SyscallDesc *desc, ThreadContext *tc) |
Target getpagesize() handler. More... | |
SyscallReturn | brkFunc (SyscallDesc *desc, ThreadContext *tc, VPtr<> new_brk) |
Target brk() handler: set brk address. More... | |
SyscallReturn | setTidAddressFunc (SyscallDesc *desc, ThreadContext *tc, uint64_t tidPtr) |
Target set_tid_address() handler. More... | |
SyscallReturn | closeFunc (SyscallDesc *desc, ThreadContext *tc, int tgt_fd) |
Target close() handler. More... | |
SyscallReturn | lseekFunc (SyscallDesc *desc, ThreadContext *tc, int tgt_fd, uint64_t offs, int whence) |
Target lseek() handler. More... | |
SyscallReturn | _llseekFunc (SyscallDesc *desc, ThreadContext *tc, int tgt_fd, uint64_t offset_high, uint32_t offset_low, VPtr<> result_ptr, int whence) |
Target _llseek() handler. More... | |
SyscallReturn | munmapFunc (SyscallDesc *desc, ThreadContext *tc, VPtr<> start, size_t length) |
Target munmap() handler. More... | |
SyscallReturn | gethostnameFunc (SyscallDesc *desc, ThreadContext *tc, VPtr<> buf_ptr, int name_len) |
Target gethostname() handler. More... | |
SyscallReturn | getcwdFunc (SyscallDesc *desc, ThreadContext *tc, VPtr<> buf_ptr, unsigned long size) |
Target getcwd() handler. More... | |
SyscallReturn | readlinkFunc (SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname, VPtr<> buf, size_t bufsiz) |
Target readlink() handler. More... | |
SyscallReturn | unlinkFunc (SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname) |
Target unlink() handler. More... | |
SyscallReturn | linkFunc (SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname, VPtr<> new_pathname) |
Target link() handler. More... | |
SyscallReturn | symlinkFunc (SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname, VPtr<> new_pathname) |
Target symlink() handler. More... | |
SyscallReturn | mkdirFunc (SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname, mode_t mode) |
Target mkdir() handler. More... | |
SyscallReturn | renameFunc (SyscallDesc *desc, ThreadContext *tc, VPtr<> oldpath, VPtr<> newpath) |
Target rename() handler. More... | |
SyscallReturn | truncateFunc (SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname, off_t length) |
Target truncate() handler. More... | |
SyscallReturn | ftruncateFunc (SyscallDesc *desc, ThreadContext *tc, int tgt_fd, off_t length) |
Target ftruncate() handler. More... | |
SyscallReturn | truncate64Func (SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname, int64_t length) |
Target truncate64() handler. More... | |
SyscallReturn | ftruncate64Func (SyscallDesc *desc, ThreadContext *tc, int tgt_fd, int64_t length) |
Target ftruncate64() handler. More... | |
SyscallReturn | umaskFunc (SyscallDesc *desc, ThreadContext *tc) |
Target umask() handler. More... | |
SyscallReturn | chownFunc (SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname, uint32_t owner, uint32_t group) |
Target chown() handler. More... | |
SyscallReturn | fchownFunc (SyscallDesc *desc, ThreadContext *tc, int tgt_fd, uint32_t owner, uint32_t group) |
Target fchown() handler. More... | |
SyscallReturn | dupFunc (SyscallDesc *desc, ThreadContext *tc, int tgt_fd) |
FIXME: The file description is not shared among file descriptors created with dup. More... | |
SyscallReturn | dup2Func (SyscallDesc *desc, ThreadContext *tc, int old_tgt_fd, int new_tgt_fd) |
Target dup2() handler. More... | |
SyscallReturn | fcntlFunc (SyscallDesc *desc, ThreadContext *tc, int tgt_fd, int cmd, guest_abi::VarArgs< int > varargs) |
Target fcntl() handler. More... | |
SyscallReturn | fcntl64Func (SyscallDesc *desc, ThreadContext *tc, int tgt_fd, int cmd) |
Target fcntl64() handler. More... | |
SyscallReturn | pipePseudoFunc (SyscallDesc *desc, ThreadContext *tc) |
Pseudo Funcs - These functions use a different return convension, returning a second value in a register other than the normal return register. More... | |
SyscallReturn | pipeFunc (SyscallDesc *desc, ThreadContext *tc, VPtr<> tgt_addr) |
Target pipe() handler. More... | |
SyscallReturn | pipe2Func (SyscallDesc *desc, ThreadContext *tc, VPtr<> tgt_addr, int flags) |
Target pipe() handler. More... | |
SyscallReturn | getpgrpFunc (SyscallDesc *desc, ThreadContext *tc) |
Target getpgrpFunc() handler. More... | |
SyscallReturn | setpgidFunc (SyscallDesc *desc, ThreadContext *tc, int pid, int pgid) |
Target setpgid() handler. More... | |
SyscallReturn | getpidFunc (SyscallDesc *desc, ThreadContext *tc) |
Target getpid() handler. More... | |
SyscallReturn | gettidFunc (SyscallDesc *desc, ThreadContext *tc) |
Target gettid() handler. More... | |
SyscallReturn | getppidFunc (SyscallDesc *desc, ThreadContext *tc) |
Target getppid() handler. More... | |
SyscallReturn | getuidFunc (SyscallDesc *desc, ThreadContext *tc) |
SyscallReturn | geteuidFunc (SyscallDesc *desc, ThreadContext *tc) |
Target geteuid() handler. More... | |
SyscallReturn | getgidFunc (SyscallDesc *desc, ThreadContext *tc) |
Target getgid() handler. More... | |
SyscallReturn | getegidFunc (SyscallDesc *desc, ThreadContext *tc) |
Target getegid() handler. More... | |
SyscallReturn | fallocateFunc (SyscallDesc *desc, ThreadContext *tc, int tgt_fd, int mode, off_t offset, off_t len) |
SyscallReturn | accessFunc (SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname, mode_t mode) |
Target access() handler. More... | |
SyscallReturn | mknodFunc (SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname, mode_t mode, dev_t dev) |
Target mknod() handler. More... | |
SyscallReturn | chdirFunc (SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname) |
Target chdir() handler. More... | |
SyscallReturn | rmdirFunc (SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname) |
SyscallReturn | shutdownFunc (SyscallDesc *desc, ThreadContext *tc, int tgt_fd, int how) |
Target shutdown() handler. More... | |
SyscallReturn | bindFunc (SyscallDesc *desc, ThreadContext *tc, int tgt_fd, VPtr<> buf_ptr, int addrlen) |
SyscallReturn | listenFunc (SyscallDesc *desc, ThreadContext *tc, int tgt_fd, int backlog) |
SyscallReturn | connectFunc (SyscallDesc *desc, ThreadContext *tc, int tgt_fd, VPtr<> buf_ptr, int addrlen) |
SyscallReturn | recvfromFunc (SyscallDesc *desc, ThreadContext *tc, int tgt_fd, VPtr<> bufrPtr, size_t bufrLen, int flags, VPtr<> addrPtr, VPtr<> addrlenPtr) |
SyscallReturn | sendtoFunc (SyscallDesc *desc, ThreadContext *tc, int tgt_fd, VPtr<> bufrPtr, size_t bufrLen, int flags, VPtr<> addrPtr, socklen_t addrLen) |
SyscallReturn | recvmsgFunc (SyscallDesc *desc, ThreadContext *tc, int tgt_fd, VPtr<> msgPtr, int flags) |
SyscallReturn | sendmsgFunc (SyscallDesc *desc, ThreadContext *tc, int tgt_fd, VPtr<> msgPtr, int flags) |
SyscallReturn | getsockoptFunc (SyscallDesc *desc, ThreadContext *tc, int tgt_fd, int level, int optname, VPtr<> valPtr, VPtr<> lenPtr) |
SyscallReturn | getsocknameFunc (SyscallDesc *desc, ThreadContext *tc, int tgt_fd, VPtr<> addrPtr, VPtr<> lenPtr) |
SyscallReturn | getpeernameFunc (SyscallDesc *desc, ThreadContext *tc, int tgt_fd, VPtr<> sockAddrPtr, VPtr<> addrlenPtr) |
SyscallReturn | setsockoptFunc (SyscallDesc *desc, ThreadContext *tc, int tgt_fd, int level, int optname, VPtr<> valPtr, socklen_t len) |
SyscallReturn | getcpuFunc (SyscallDesc *desc, ThreadContext *tc, VPtr< uint32_t > cpu, VPtr< uint32_t > node, VPtr< uint32_t > tcache) |
template<class OS > | |
SyscallReturn | futexFunc (SyscallDesc *desc, ThreadContext *tc, VPtr<> uaddr, int op, int val, int timeout, VPtr<> uaddr2, int val3) |
Futex system call Implemented by Daniel Sanchez Used by printf's in multi-threaded apps. More... | |
template<class T1 , class T2 > | |
void | getElapsedTimeMicro (T1 &sec, T2 &usec) |
Helper function to convert current elapsed time to seconds and microseconds. More... | |
template<class T1 , class T2 > | |
void | getElapsedTimeNano (T1 &sec, T2 &nsec) |
Helper function to convert current elapsed time to seconds and nanoseconds. More... | |
template<typename OS , typename TgtStatPtr , typename HostStatPtr > | |
void | copyOutStatBuf (TgtStatPtr tgt, HostStatPtr host, bool fakeTTY=false) |
template<typename OS , typename TgtStatPtr , typename HostStatPtr > | |
void | copyOutStat64Buf (TgtStatPtr tgt, HostStatPtr host, bool fakeTTY=false) |
template<class OS , typename TgtStatPtr , typename HostStatPtr > | |
void | copyOutStatfsBuf (TgtStatPtr tgt, HostStatPtr host) |
template<class OS > | |
SyscallReturn | ioctlFunc (SyscallDesc *desc, ThreadContext *tc, int tgt_fd, unsigned req, VPtr<> addr) |
Target ioctl() handler. More... | |
template<class OS > | |
SyscallReturn | openatFunc (SyscallDesc *desc, ThreadContext *tc, int tgt_dirfd, VPtr<> pathname, int tgt_flags, int mode) |
Target open() handler. More... | |
template<class OS > | |
SyscallReturn | openFunc (SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname, int tgt_flags, int mode) |
Target open() handler. More... | |
template<class OS > | |
SyscallReturn | unlinkatFunc (SyscallDesc *desc, ThreadContext *tc, int dirfd, VPtr<> pathname) |
Target unlinkat() handler. More... | |
template<class OS > | |
SyscallReturn | faccessatFunc (SyscallDesc *desc, ThreadContext *tc, int dirfd, VPtr<> pathname, int mode) |
Target facessat() handler. More... | |
template<class OS > | |
SyscallReturn | readlinkatFunc (SyscallDesc *desc, ThreadContext *tc, int dirfd, VPtr<> pathname, VPtr<> buf, size_t bufsiz) |
Target readlinkat() handler. More... | |
template<class OS > | |
SyscallReturn | renameatFunc (SyscallDesc *desc, ThreadContext *tc, int olddirfd, VPtr<> oldpath, int newdirfd, VPtr<> newpath) |
Target renameat() handler. More... | |
template<class OS > | |
SyscallReturn | sysinfoFunc (SyscallDesc *desc, ThreadContext *tc, VPtr< typename OS::tgt_sysinfo > sysinfo) |
Target sysinfo() handler. More... | |
template<class OS > | |
SyscallReturn | chmodFunc (SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname, mode_t mode) |
Target chmod() handler. More... | |
template<class OS > | |
SyscallReturn | pollFunc (SyscallDesc *desc, ThreadContext *tc, VPtr<> fdsPtr, int nfds, int tmout) |
template<class OS > | |
SyscallReturn | fchmodFunc (SyscallDesc *desc, ThreadContext *tc, int tgt_fd, uint32_t mode) |
Target fchmod() handler. More... | |
template<class OS > | |
SyscallReturn | mremapFunc (SyscallDesc *desc, ThreadContext *tc, VPtr<> start, uint64_t old_length, uint64_t new_length, uint64_t flags, guest_abi::VarArgs< uint64_t > varargs) |
Target mremap() handler. More... | |
template<class OS > | |
SyscallReturn | statFunc (SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname, VPtr< typename OS::tgt_stat > tgt_stat) |
Target stat() handler. More... | |
template<class OS > | |
SyscallReturn | stat64Func (SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname, VPtr< typename OS::tgt_stat64 > tgt_stat) |
Target stat64() handler. More... | |
template<class OS > | |
SyscallReturn | fstatat64Func (SyscallDesc *desc, ThreadContext *tc, int dirfd, VPtr<> pathname, VPtr< typename OS::tgt_stat64 > tgt_stat) |
Target fstatat64() handler. More... | |
template<class OS > | |
SyscallReturn | fstat64Func (SyscallDesc *desc, ThreadContext *tc, int tgt_fd, VPtr< typename OS::tgt_stat64 > tgt_stat) |
Target fstat64() handler. More... | |
template<class OS > | |
SyscallReturn | lstatFunc (SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname, VPtr< typename OS::tgt_stat > tgt_stat) |
Target lstat() handler. More... | |
template<class OS > | |
SyscallReturn | lstat64Func (SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname, VPtr< typename OS::tgt_stat64 > tgt_stat) |
Target lstat64() handler. More... | |
template<class OS > | |
SyscallReturn | fstatFunc (SyscallDesc *desc, ThreadContext *tc, int tgt_fd, VPtr< typename OS::tgt_stat > tgt_stat) |
Target fstat() handler. More... | |
template<class OS > | |
SyscallReturn | statfsFunc (SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname, VPtr< typename OS::tgt_statfs > tgt_stat) |
Target statfs() handler. More... | |
template<class OS > | |
SyscallReturn | cloneFunc (SyscallDesc *desc, ThreadContext *tc, RegVal flags, RegVal newStack, VPtr<> ptidPtr, VPtr<> ctidPtr, VPtr<> tlsPtr) |
template<class OS > | |
SyscallReturn | cloneBackwardsFunc (SyscallDesc *desc, ThreadContext *tc, RegVal flags, RegVal newStack, VPtr<> ptidPtr, VPtr<> tlsPtr, VPtr<> ctidPtr) |
template<class OS > | |
SyscallReturn | fstatfsFunc (SyscallDesc *desc, ThreadContext *tc, int tgt_fd, VPtr< typename OS::tgt_statfs > tgt_stat) |
Target fstatfs() handler. More... | |
template<class OS > | |
SyscallReturn | readvFunc (SyscallDesc *desc, ThreadContext *tc, int tgt_fd, uint64_t tiov_base, size_t count) |
Target readv() handler. More... | |
template<class OS > | |
SyscallReturn | writevFunc (SyscallDesc *desc, ThreadContext *tc, int tgt_fd, uint64_t tiov_base, size_t count) |
Target writev() handler. More... | |
template<class OS > | |
SyscallReturn | mmapFunc (SyscallDesc *desc, ThreadContext *tc, VPtr<> start, typename OS::size_t length, int prot, int tgt_flags, int tgt_fd, typename OS::off_t offset) |
Target mmap() handler. More... | |
template<class OS > | |
SyscallReturn | pread64Func (SyscallDesc *desc, ThreadContext *tc, int tgt_fd, VPtr<> bufPtr, int nbytes, int offset) |
template<class OS > | |
SyscallReturn | pwrite64Func (SyscallDesc *desc, ThreadContext *tc, int tgt_fd, VPtr<> bufPtr, int nbytes, int offset) |
template<class OS > | |
SyscallReturn | mmap2Func (SyscallDesc *desc, ThreadContext *tc, VPtr<> start, typename OS::size_t length, int prot, int tgt_flags, int tgt_fd, typename OS::off_t offset) |
Target mmap2() handler. More... | |
template<class OS > | |
SyscallReturn | getrlimitFunc (SyscallDesc *desc, ThreadContext *tc, unsigned resource, VPtr< typename OS::rlimit > rlp) |
Target getrlimit() handler. More... | |
template<class OS > | |
SyscallReturn | prlimitFunc (SyscallDesc *desc, ThreadContext *tc, int pid, int resource, VPtr<> n, VPtr< typename OS::rlimit > rlp) |
template<class OS > | |
SyscallReturn | clock_gettimeFunc (SyscallDesc *desc, ThreadContext *tc, int clk_id, VPtr< typename OS::timespec > tp) |
Target clock_gettime() function. More... | |
template<class OS > | |
SyscallReturn | clock_getresFunc (SyscallDesc *desc, ThreadContext *tc, int clk_id, VPtr< typename OS::timespec > tp) |
Target clock_getres() function. More... | |
template<class OS > | |
SyscallReturn | gettimeofdayFunc (SyscallDesc *desc, ThreadContext *tc, VPtr< typename OS::timeval > tp, VPtr<> tz_ptr) |
Target gettimeofday() handler. More... | |
template<class OS > | |
SyscallReturn | utimesFunc (SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname, VPtr< typename OS::timeval[2]> tp) |
Target utimes() handler. More... | |
template<class OS > | |
SyscallReturn | execveFunc (SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname, VPtr<> argv_mem_loc, VPtr<> envp_mem_loc) |
template<class OS > | |
SyscallReturn | getrusageFunc (SyscallDesc *desc, ThreadContext *tc, int who, VPtr< typename OS::rusage > rup) |
Target getrusage() function. More... | |
template<class OS > | |
SyscallReturn | timesFunc (SyscallDesc *desc, ThreadContext *tc, VPtr< typename OS::tms > bufp) |
Target times() function. More... | |
template<class OS > | |
SyscallReturn | timeFunc (SyscallDesc *desc, ThreadContext *tc, VPtr<> taddr) |
Target time() function. More... | |
template<class OS > | |
SyscallReturn | tgkillFunc (SyscallDesc *desc, ThreadContext *tc, int tgid, int tid, int sig) |
template<class OS > | |
SyscallReturn | socketFunc (SyscallDesc *desc, ThreadContext *tc, int domain, int type, int prot) |
template<class OS > | |
SyscallReturn | socketpairFunc (SyscallDesc *desc, ThreadContext *tc, int domain, int type, int prot, VPtr<> svPtr) |
template<class OS > | |
SyscallReturn | selectFunc (SyscallDesc *desc, ThreadContext *tc, int nfds, VPtr< typename OS::fd_set > readfds, VPtr< typename OS::fd_set > writefds, VPtr< typename OS::fd_set > errorfds, VPtr< typename OS::timeval > timeout) |
template<class OS > | |
SyscallReturn | readFunc (SyscallDesc *desc, ThreadContext *tc, int tgt_fd, VPtr<> buf_ptr, int nbytes) |
template<class OS > | |
SyscallReturn | writeFunc (SyscallDesc *desc, ThreadContext *tc, int tgt_fd, VPtr<> buf_ptr, int nbytes) |
template<class OS > | |
SyscallReturn | wait4Func (SyscallDesc *desc, ThreadContext *tc, pid_t pid, VPtr<> statPtr, int options, VPtr<> rusagePtr) |
template<class OS > | |
SyscallReturn | acceptFunc (SyscallDesc *desc, ThreadContext *tc, int tgt_fd, VPtr<> addrPtr, VPtr<> lenPtr) |
template<class OS > | |
SyscallReturn | eventfdFunc (SyscallDesc *desc, ThreadContext *tc, unsigned initval, int in_flags) |
Target eventfd() function. More... | |
template<class OS > | |
SyscallReturn | schedGetaffinityFunc (SyscallDesc *desc, ThreadContext *tc, pid_t pid, size_t cpusetsize, VPtr<> cpu_set_mask) |
Target sched_getaffinity. More... | |
void | printSystems () |
Variables | |
const typedef char * | FaultName |
static const int | ROW_SIZE = 16 |
static const int | NUM_BANKS = 4 |
static const int | ROW_SIZE = 16 |
static const int | NUM_BANKS = 4 |
static uint64_t | invariant_reg_vector [] |
constexpr static unsigned | NUM_XREGS = NUM_ARCH_INTREGS - 1 |
constexpr static unsigned | NUM_QREGS = NumVecV8ArchRegs |
constexpr unsigned | MaxVecRegLenInBytes = 4096 |
const uint8_t | reverseBitsLookUpTable [] |
Lookup table used for High Speed bit reversing. More... | |
volatile int | stop = false |
const char * | compileDate = __DATE__ " " __TIME__ |
static const int | roundOps [] |
thread_local GTestLogOutput | gtestLogOutput |
c2 = 31 | |
high = AB + c2 | |
const uint8_t | image_file [] |
This image file contains the text "This is a test image.\n" 31 times. More... | |
const uint8_t | image_file_gzipped [] |
This is "image_file" compressed using GZip. More... | |
OutputDirectory | simout |
PollQueue | pollQueue |
Random | random_mt |
static const char | GDBStart = '$' |
static const char | GDBEnd = '#' |
static const char | GDBGoodP = '+' |
static const char | GDBBadP = '-' |
const Tick | MaxTick = 0xffffffffffffffffULL |
static const MicroPC | MicroPCRomBit = 1 << (sizeof(MicroPC) * 8 - 1) |
const Addr | MaxAddr = (Addr)-1 |
static const ElemIndex | IllegalElemIndex |
ElemIndex value that indicates that the register is not a vector. More... | |
const ThreadID | InvalidThreadID = (ThreadID)-1 |
const ContextID | InvalidContextID = (ContextID)-1 |
const PortID | InvalidPortID = (PortID)-1 |
constexpr decltype(nullptr) | NoFault = nullptr |
const char * | gem5Version = "21.1.0.0" |
int | maxThreadsPerCPU = 1 |
The maximum number of active threads across all cpus. More... | |
static const uint64_t | MIN_HOST_CYCLES = 1000 |
Minimum number of cycles that a host can spend in a KVM call (used to calculate the resolution of some timers). More... | |
StaticInstPtr | nopStaticInstPtr = new NopStaticInst |
Pointer to a statically allocated generic "nop" instruction object. More... | |
const StaticInstPtr | nullStaticInstPtr |
Statically allocated null StaticInstPtr. More... | |
static const OpClass | IntAluOp = enums::IntAlu |
static const OpClass | IntMultOp = enums::IntMult |
static const OpClass | IntDivOp = enums::IntDiv |
static const OpClass | FloatAddOp = enums::FloatAdd |
static const OpClass | FloatCmpOp = enums::FloatCmp |
static const OpClass | FloatCvtOp = enums::FloatCvt |
static const OpClass | FloatMultOp = enums::FloatMult |
static const OpClass | FloatMultAccOp = enums::FloatMultAcc |
static const OpClass | FloatDivOp = enums::FloatDiv |
static const OpClass | FloatMiscOp = enums::FloatMisc |
static const OpClass | FloatSqrtOp = enums::FloatSqrt |
static const OpClass | SimdAddOp = enums::SimdAdd |
static const OpClass | SimdAddAccOp = enums::SimdAddAcc |
static const OpClass | SimdAluOp = enums::SimdAlu |
static const OpClass | SimdCmpOp = enums::SimdCmp |
static const OpClass | SimdCvtOp = enums::SimdCvt |
static const OpClass | SimdMiscOp = enums::SimdMisc |
static const OpClass | SimdMultOp = enums::SimdMult |
static const OpClass | SimdMultAccOp = enums::SimdMultAcc |
static const OpClass | SimdShiftOp = enums::SimdShift |
static const OpClass | SimdShiftAccOp = enums::SimdShiftAcc |
static const OpClass | SimdDivOp = enums::SimdDiv |
static const OpClass | SimdSqrtOp = enums::SimdSqrt |
static const OpClass | SimdReduceAddOp = enums::SimdReduceAdd |
static const OpClass | SimdReduceAluOp = enums::SimdReduceAlu |
static const OpClass | SimdReduceCmpOp = enums::SimdReduceCmp |
static const OpClass | SimdFloatAddOp = enums::SimdFloatAdd |
static const OpClass | SimdFloatAluOp = enums::SimdFloatAlu |
static const OpClass | SimdFloatCmpOp = enums::SimdFloatCmp |
static const OpClass | SimdFloatCvtOp = enums::SimdFloatCvt |
static const OpClass | SimdFloatDivOp = enums::SimdFloatDiv |
static const OpClass | SimdFloatMiscOp = enums::SimdFloatMisc |
static const OpClass | SimdFloatMultOp = enums::SimdFloatMult |
static const OpClass | SimdFloatMultAccOp = enums::SimdFloatMultAcc |
static const OpClass | SimdFloatSqrtOp = enums::SimdFloatSqrt |
static const OpClass | SimdFloatReduceCmpOp = enums::SimdFloatReduceCmp |
static const OpClass | SimdFloatReduceAddOp = enums::SimdFloatReduceAdd |
static const OpClass | SimdAesOp = enums::SimdAes |
static const OpClass | SimdAesMixOp = enums::SimdAesMix |
static const OpClass | SimdSha1HashOp = enums::SimdSha1Hash |
static const OpClass | SimdSha1Hash2Op = enums::SimdSha1Hash2 |
static const OpClass | SimdSha256HashOp = enums::SimdSha256Hash |
static const OpClass | SimdSha256Hash2Op = enums::SimdSha256Hash2 |
static const OpClass | SimdShaSigma2Op = enums::SimdShaSigma2 |
static const OpClass | SimdShaSigma3Op = enums::SimdShaSigma3 |
static const OpClass | SimdPredAluOp = enums::SimdPredAlu |
static const OpClass | MemReadOp = enums::MemRead |
static const OpClass | MemWriteOp = enums::MemWrite |
static const OpClass | FloatMemReadOp = enums::FloatMemRead |
static const OpClass | FloatMemWriteOp = enums::FloatMemWrite |
static const OpClass | IprAccessOp = enums::IprAccess |
static const OpClass | InstPrefetchOp = enums::InstPrefetch |
static const OpClass | Num_OpClasses = enums::Num_OpClass |
int | TESTER_NETWORK =0 |
static unsigned int | TESTER_ALLOCATOR = 0 |
const int | CHECK_SIZE_BITS = 2 |
const int | CHECK_SIZE = (1 << CHECK_SIZE_BITS) |
static EmbeddedPyBind | _py_tracers ("trace", pybind_init_tracers) |
constexpr int | FRAMEBUFFER_BAR = 0 |
constexpr int | DOORBELL_BAR = 2 |
constexpr int | MMIO_BAR = 5 |
constexpr uint32_t | VGA_ROM_DEFAULT = 0xc0000 |
constexpr uint32_t | ROM_SIZE = 0x20000 |
const uint64_t | AmbaVendor = 0xb105f00d00000000ULL |
static const std::map< enums::NoMaliGpuType, nomali_gpu_type_t > | gpuTypeMap |
const char * | NsRxStateStrings [] |
const char * | NsTxStateStrings [] |
const char * | NsDmaState [] |
const uint16_t | FHASH_ADDR = 0x100 |
const uint16_t | FHASH_SIZE = 0x100 |
const uint8_t | EEPROM_READ = 0x2 |
const uint8_t | EEPROM_SIZE = 64 |
const uint8_t | EEPROM_PMATCH2_ADDR = 0xA |
const uint8_t | EEPROM_PMATCH1_ADDR = 0xB |
const uint8_t | EEPROM_PMATCH0_ADDR = 0xC |
const int | RX_INT = 0x1 |
const int | TX_INT = 0x2 |
const uint8_t | UART_MCR_LOOP = 0x10 |
const int | MaxNiagaraProcs = 32 |
const Addr | IntManAddr = 0x0000 |
const Addr | IntManSize = 0x0020 |
const Addr | IntCtlAddr = 0x0400 |
const Addr | IntCtlSize = 0x0020 |
const Addr | JIntVecAddr = 0x0A00 |
const Addr | IntVecDisAddr = 0x0800 |
const Addr | IntVecDisSize = 0x0100 |
const Addr | JIntData0Addr = 0x0400 |
const Addr | JIntData1Addr = 0x0500 |
const Addr | JIntDataA0Addr = 0x0600 |
const Addr | JIntDataA1Addr = 0x0700 |
const Addr | JIntBusyAddr = 0x0900 |
const Addr | JIntBusySize = 0x0100 |
const Addr | JIntABusyAddr = 0x0B00 |
const uint64_t | IntManMask = 0x01F3F |
const uint64_t | IntCtlMask = 0x00006 |
const uint64_t | JIntVecMask = 0x0003F |
const uint64_t | IntVecDis = 0x31F3F |
const uint64_t | JIntBusyMask = 0x0003F |
static const P9MsgInfoMap | p9_msg_info |
const uint8_t | RamSize = 32 |
const uint8_t | NumOutputBits = 14 |
static const int | LDS_SIZE = 65536 |
PybindSimObjectResolver | pybindSimObjectResolver |
const bool | flag_DEBUG = false |
const bool | flag_NDEBUG = false |
const bool | flag_TRACING_ON = TRACING_ON |
const ByteOrder | HostByteOrder = ByteOrder::big |
std::map< std::string, CxxConfigDirectoryEntry * > | cxx_config_directory |
Directory of all SimObject classes config details. More... | |
int | remote_gdb_base_port = 7000 |
Tick | simQuantum = 0 |
Simulation Quantum for multiple eventq simulation. More... | |
uint32_t | numMainEventQueues = 0 |
Current number of allocated main event queues. More... | |
std::vector< EventQueue * > | mainEventQueue |
Array for main event queues. More... | |
__thread EventQueue * | _curEventQueue = NULL |
The current event queue for the running thread. More... | |
bool | inParallelMode = false |
Current mode of execution: parallel / serial. More... | |
bool | FullSystem |
The FullSystem variable can be used to determine the current mode of simulation. More... | |
unsigned int | FullSystemInt |
In addition to the boolean flag we make use of an unsigned int since the CPU instruction decoder makes use of the variable in switch statements. More... | |
std::set< std::string > | version_tags |
The version tags for this build of the simulator, to be stored in the Globals section during serialization and compared upon unserialization. More... | |
const GEM5_WEAK char * | m5MainCommands [] |
static uint8_t | fatalSigStack [2 *SIGSTKSZ] |
Root::RootStats & | rootStats = Root::RootStats::instance |
Global simulator statistics that are not associated with a specific SimObject. More... | |
int | ckptMaxCount = 0 |
int | ckptCount = 0 |
int | ckptPrevCount = -1 |
template<class T > | |
decltype(std::begin(std::declval< const T & >()), std::end(std::declval< const T & >()), void()) | arrayParamOut (CheckpointOut &os, const std::string &name, const T ¶m) |
std::mutex | asyncEventMutex |
Mutex for handling async events. More... | |
Barrier * | threadBarrier |
Global barrier for synchronizing threads entering/exiting the simulation loop. More... | |
GlobalSimLoopExitEvent * | simulate_limit_event = nullptr |
statistics::Formula & | simSeconds = rootStats.simSeconds |
statistics::Value & | simTicks = rootStats.simTicks |
statistics::Value & | simFreq = rootStats.simFreq |
statistics::Value & | hostSeconds = rootStats.hostSeconds |
const char * | hostname = "m5.eecs.umich.edu" |
const unsigned | seconds_since_epoch = 1000 * 1000 * 1000 |
Approximate seconds since the epoch (1/1/1970). More... | |
using | DummyVecElem = uint32_t |
Dummy type aliases and constants for architectures that do not implement vector registers. More... | |
using | DummyVecRegContainer = VecRegContainer< DummyNumVecElemPerVecReg *sizeof(DummyVecElem)> |
constexpr unsigned | DummyNumVecElemPerVecReg = 2 |
Reference material can be found at the JEDEC website: UFS standard http://www.jedec.org/standards-documents/results/jesd220 UFS HCI specification http://www.jedec.org/standards-documents/results/jesd223.
the profiler uses GPUCoalescer code even though the GPUCoalescer is not built for all ISAs, which can lead to run/link time errors.
On Linux, MAP_NORESERVE allow us to simulate a very large memory without committing to actually providing the swap space on the host.
When building the debug binary, we need to undo the command-line definition of DEBUG not to clash with DRAMsim3 print macros that are included for no obvious reason.
When building the debug binary, we need to undo the command-line definition of DEBUG not to clash with DRAMSim2 print macros that are included for no obvious reason.
Copyright (c) 2020 Inria All rights reserved.
Copyright (c) 2019, 2020 Inria All rights reserved.
Copyright (c) 2018-2020 Inria All rights reserved.
Copyright (c) 2019 Metempsy Technology Consulting All rights reserved.
Copyright (c) 2018 Metempsy Technology Consulting All rights reserved.
Note: For details on the implementation see https://wiki.osdev.org/%228042%22_PS/2_Controller.
UFS command flow state machine digraph CommandFlow{ node [fontsize=10]; IDLE -> transferHandler [ label=" transfer/task/command request " fontsize=6]; transferHandler -> command [ label=" It is a command " fontsize=6]; command -> IDLE [ label=" Command done, no further action " fontsize=6]; transferHandler -> taskStart [ label=" It is a task " fontsize=6]; taskStart -> finalUTP [ label=" Task handled, now acknowledge (UFS) " fontsize=6]; transferHandler -> transferStart [ label=" It is a transfer " fontsize=6]; transferStart -> SCSIResume [ label=" Transfer, obtain the specific command " fontsize=6]; SCSIResume -> DiskDataFlowPhase [ label=" Disk data transfer (see other graphs) " fontsize=6]; SCSIResume -> DeviceDataPhase [ label=" Device info transfer (handled in SCSIResume) " fontsize=6]; DiskDataFlowPhase -> transferDone [ label=" Transfer done, acknowledge SCSI command " fontsize=6]; DeviceDataPhase -> transferDone [ label=" Transfer done, acknowledge SCSI command " fontsize=6]; transferDone -> finalUTP [ label=" Transfer handled, now acknowledge (UFS) " fontsize=6]; finalUTP -> readDone [ label=" All handled, clear data structures " fontsize=6]; readDone -> IDLE [ label=" All handled, nothing outstanding " fontsize=6]; readDone -> transferHandler [ label=" All handled, handle next outstanding " fontsize=6]; }.
Generalized N-dimensinal vector documentation key stats interval stats – these both can use the same function that prints out a specific set of stats VectorStandardDeviation totals Document Namespaces
UFS read transaction flow state machine digraph readFlow{ node [fontsize=10]; getScatterGather -> commitReadFromDisk [ label=" Put the information about the data transfer to the disk " fontsize=6]; commitReadFromDisk -> waitForReads [ label=" Push the reads to the flashmodel and wait for callbacks " fontsize=6]; waitForReads -> pushToDMA [ label=" Push to the DMA and wait for them to finish " fontsize=6]; pushToDMA -> waitForReads [ label=" Wait for the next disk event " fontsize=6]; pushToDMA -> waitForDMA [ label=" Wait for the last DMA transfer to finish " fontsize=6]; waitForDMA -> finishTransfer [ label=" Continue with the command flow " fontsize=6]; } UFS write transaction flow state machine digraph WriteFlow{ node [fontsize=10]; getScatterGather -> getFromDMA [ label=" Put the transfer information to the DMA " fontsize=6]; getFromDMA -> waitForDMA [ label=" Wait for dma actions to arrive " fontsize=6]; waitForDMA -> pushToDisk [ label=" Push arrived DMA to disk " fontsize=6]; pushToDisk -> waitForDMA [ label=" Wait for next DMA action " fontsize=6]; pushToDisk -> waitForDisk [ label=" All DMA actions are done, wait for disk " fontsize=6]; waitForDisk -> finishTransfer [ label=" All transactions are done , continue the command flow " fontsize=6]; }
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer; redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution; neither the name of the copyright holders nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer; redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution; neither the name of the copyright holders nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Implementation of the Access Map Pattern Matching Prefetcher
References: Access map pattern matching for high performance data cache prefetch. Ishii, Y., Inaba, M., & Hiraki, K. (2011). Journal of Instruction-Level Parallelism, 13, 1-24.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer; redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution; neither the name of the copyright holders nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Implementation of the 'A Best-Offset Prefetcher' Reference: Michaud, P. (2015, June). A best-offset prefetcher. In 2nd Data Prefetching Championship.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer; redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution; neither the name of the copyright holders nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Implementation of the Indirect Memory Prefetcher
References: IMP: Indirect memory prefetcher. Yu, X., Hughes, C. J., Satish, N., & Devadas, S. (2015, December). In Proceedings of the 48th International Symposium on Microarchitecture (pp. 178-190). ACM.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer; redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution; neither the name of the copyright holders nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Implementation of the Irregular Stream Buffer prefetcher Reference: Jain, A., & Lin, C. (2013, December). Linearizing irregular memory accesses for improved correlated prefetching. In Proceedings of the 46th Annual IEEE/ACM International Symposium on Microarchitecture (pp. 247-259). ACM.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer; redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution; neither the name of the copyright holders nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Implementation of the 'Proactive Instruction Fetch' prefetcher Reference: Ferdman, M., Kaynak, C., & Falsafi, B. (2011, December). Proactive instruction fetch. In Proceedings of the 44th Annual IEEE/ACM International Symposium on Microarchitecture (pp. 152-162). ACM.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer; redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution; neither the name of the copyright holders nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Implementation of the 'Sandbox Based Optimal Offset Estimation' Reference: Brown, N. T., & Sendag, R. Sandbox Based Optimal Offset Estimation.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer; redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution; neither the name of the copyright holders nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Implementation of the Signature Path Prefetcher
References: Lookahead prefetching with signature path J Kim, PV Gratz, ALN Reddy The 2nd Data Prefetching Championship (DPC2) The filter feature described in the paper is not implemented, as it redundant prefetches are dropped by the cache.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer; redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution; neither the name of the copyright holders nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Implementation of the Signature Path Prefetcher (v2)
References: Path confidence based lookahead prefetching Jinchun Kim, Seth H. Pugsley, Paul V. Gratz, A. L. Narasimha Reddy, Chris Wilkerson, and Zeshan Chishti. 2016. In The 49th Annual IEEE/ACM International Symposium on Microarchitecture (MICRO-49). IEEE Press, Piscataway, NJ, USA, Article 60, 12 pages.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer; redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution; neither the name of the copyright holders nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. The SlimAMPM Prefetcher Reference: Towards Bandwidth-Efficient Prefetching with Slim AMPM. Young, Vinson, and A. Krishna. The 2nd Data Prefetching Championship (2015).
This prefetcher uses two other prefetchers, the AMPM and the DCPT.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer; redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution; neither the name of the copyright holders nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Implementation of the Spatio-Temporal Memory Streaming Prefetcher (STeMS) Reference: Spatio-temporal memory streaming. Somogyi, S., Wenisch, T. F., Ailamaki, A., & Falsafi, B. (2009). ACM SIGARCH Computer Architecture News, 37(3), 69-80.
Notes:
The functionality described in the paper as Streamed Value Buffer (SVB) is not implemented here, as this is handled by the QueuedPrefetcher class
On FreeBSD or OSX the MAP_NORESERVE flag does not exist, so simply make it 0.
here we guard the coalescer code with ifdefs as there is no easy way to refactor this code without removing GPUCoalescer stats from the profiler.
eventually we should use probe points here, but until then these ifdefs will serve.
typedef uint32_t gem5::_amd_queue_properties32_t |
Definition at line 64 of file hsa_queue.hh.
typedef uint64_t gem5::Addr |
typedef int64_t gem5::amd_signal_kind64_t |
Definition at line 42 of file hsa_signal.hh.
typedef struct gem5::amd_signal_s gem5::amd_signal_t |
typedef MultiLevelPageTable<LongModePTE<47, 39>, LongModePTE<38, 30>, LongModePTE<29, 21>, LongModePTE<20, 12> > gem5::ArchPageTable |
Definition at line 81 of file process.cc.
typedef std::unique_ptr<BaseHTMCheckpoint> gem5::BaseHTMCheckpointPtr |
typedef std::pair<Addr, Addr> gem5::BasicBlockRange |
Probe for SimPoints BBV generation.
Start and end address of basic block for SimPoint profiling. This structure is used to look up the hash table of BBVs.
Definition at line 61 of file simpoint.hh.
typedef uint32_t gem5::CachesMask |
typedef std::ostream gem5::CheckpointOut |
Definition at line 66 of file serialize.hh.
using gem5::ConstVPtr = typedef ConstProxyPtr<T, SETranslatingPortProxy> |
Definition at line 399 of file proxy_ptr.hh.
typedef int gem5::ContextID |
typedef int64_t gem5::Counter |
using gem5::DummyVecElem = typedef uint32_t |
Dummy type aliases and constants for architectures that do not implement vector registers.
Definition at line 266 of file vec_reg.hh.
using gem5::DummyVecPredRegContainer = typedef VecPredRegContainer<8, false> |
Dummy type aliases and constants for architectures that do not implement vector predicate registers.
Definition at line 395 of file vec_pred_reg.hh.
using gem5::DummyVecRegContainer = typedef VecRegContainer<DummyNumVecElemPerVecReg * sizeof(DummyVecElem)> |
Definition at line 269 of file vec_reg.hh.
using gem5::ElemIndex = typedef uint16_t |
typedef std::shared_ptr<EthPacketData> gem5::EthPacketPtr |
Definition at line 90 of file etherpkt.hh.
typedef std::shared_ptr<FaultBase> gem5::Fault |
typedef statistics::Scalar gem5::FaultStat |
typedef std::vector<FUDesc *>::const_iterator gem5::FUDDiterator |
Definition at line 91 of file func_unit.hh.
typedef std::shared_ptr<GPUDynInst> gem5::GPUDynInstPtr |
typedef struct stat gem5::hst_stat |
Definition at line 556 of file syscall_emul.hh.
typedef struct stat64 gem5::hst_stat64 |
Definition at line 557 of file syscall_emul.hh.
typedef struct statfs gem5::hst_statfs |
Definition at line 551 of file syscall_emul.hh.
typedef uint64_t gem5::InstSeqNum |
Definition at line 40 of file inst_seq.hh.
typedef unsigned int gem5::InstTag |
Definition at line 43 of file inst_seq.hh.
typedef MemBackdoor* gem5::MemBackdoorPtr |
Definition at line 127 of file backdoor.hh.
typedef uint16_t gem5::MicroPC |
using gem5::namespace = typedef gem5::auxv::AuxVector<IntType> |
Definition at line 136 of file aux_vector.hh.
typedef std::vector<OpDesc *>::const_iterator gem5::OPDDiterator |
Definition at line 90 of file func_unit.hh.
typedef std::map<P9MsgType, P9MsgInfo> gem5::P9MsgInfoMap |
typedef uint8_t gem5::P9MsgType |
typedef uint16_t gem5::P9Tag |
typedef uint8_t* gem5::PacketDataPtr |
typedef uint64_t gem5::PacketId |
typedef std::list<PacketPtr> gem5::PacketList |
typedef Packet * gem5::PacketPtr |
Definition at line 75 of file thread_context.hh.
using gem5::PhysRegIdPtr = typedef PhysRegId* |
Definition at line 308 of file reg_class.hh.
typedef int16_t gem5::PortID |
using gem5::RegIndex = typedef uint16_t |
using gem5::RegisterBankBE = typedef RegisterBank<ByteOrder::big> |
Definition at line 942 of file reg_bank.hh.
using gem5::RegisterBankLE = typedef RegisterBank<ByteOrder::little> |
Definition at line 941 of file reg_bank.hh.
using gem5::RegVal = typedef uint64_t |
typedef uint16_t gem5::RequestorID |
Definition at line 95 of file request.hh.
typedef std::shared_ptr<Request> gem5::RequestPtr |
Definition at line 92 of file request.hh.
typedef SatCounter8 gem5::SatCounter |
Definition at line 344 of file sat_counter.hh.
typedef RefCountingPtr<StaticInst> gem5::StaticInstPtr |
Definition at line 37 of file static_inst_fwd.hh.
typedef int16_t gem5::ThreadID |
typedef uint64_t gem5::Tick |
typedef Trie<Addr, X86ISA::TlbEntry> gem5::TlbEntryTrie |
Definition at line 61 of file pagetable.hh.
typedef std::bitset<std::numeric_limits<unsigned long long>::digits> gem5::VectorMask |
using gem5::VPtr = typedef ProxyPtr<T, SETranslatingPortProxy> |
Definition at line 401 of file proxy_ptr.hh.
typedef std::list<WaiterState> gem5::WaiterList |
Definition at line 104 of file futex_map.hh.
anonymous enum |
anonymous enum |
Enumerator | |
---|---|
SMMU_CACHE_REPL_ROUND_ROBIN | |
SMMU_CACHE_REPL_RANDOM | |
SMMU_CACHE_REPL_LRU |
Definition at line 57 of file smmu_v3_caches.hh.
anonymous enum |
Enumerator | |
---|---|
SMMU_SECURE_SZ | |
SMMU_PAGE_ZERO_SZ | |
SMMU_PAGE_ONE_SZ | |
SMMU_REG_SIZE |
Definition at line 48 of file smmu_v3_defs.hh.
anonymous enum |
Enumerator | |
---|---|
STE_CONFIG_ABORT | |
STE_CONFIG_BYPASS | |
STE_CONFIG_STAGE1_ONLY | |
STE_CONFIG_STAGE2_ONLY | |
STE_CONFIG_STAGE1_AND_2 |
Definition at line 56 of file smmu_v3_defs.hh.
anonymous enum |
Enumerator | |
---|---|
STAGE1_CFG_1L | |
STAGE1_CFG_2L_4K | |
STAGE1_CFG_2L_64K |
Definition at line 65 of file smmu_v3_defs.hh.
anonymous enum |
Enumerator | |
---|---|
ST_CFG_SPLIT_SHIFT | |
ST_CD_ADDR_SHIFT | |
CD_TTB_SHIFT | |
STE_S2TTB_SHIFT |
Definition at line 72 of file smmu_v3_defs.hh.
anonymous enum |
Enumerator | |
---|---|
TRANS_GRANULE_4K | |
TRANS_GRANULE_64K | |
TRANS_GRANULE_16K | |
TRANS_GRANULE_INVALID |
Definition at line 80 of file smmu_v3_defs.hh.
anonymous enum |
Definition at line 88 of file smmu_v3_defs.hh.
anonymous enum |
Enumerator | |
---|---|
CR0_SMMUEN_MASK | |
CR0_PRIQEN_MASK | |
CR0_EVENTQEN_MASK | |
CR0_CMDQEN_MASK | |
CR0_ATSCHK_MASK | |
CR0_VMW_MASK |
Definition at line 321 of file smmu_v3_defs.hh.
anonymous enum |
Enumerator | |
---|---|
SMMU_MAX_TRANS_ID |
Definition at line 408 of file smmu_v3_defs.hh.
Enumerator | |
---|---|
_HSA_QUEUE_TYPE_MULTI | |
_HSA_QUEUE_TYPE_SINGLE |
Definition at line 42 of file hsa_queue.hh.
Enumerator | |
---|---|
AMD_SIGNAL_KIND_INVALID | |
AMD_SIGNAL_KIND_USER | |
AMD_SIGNAL_KIND_DOORBELL | |
AMD_SIGNAL_KIND_LEGACY_DOORBELL |
Definition at line 43 of file hsa_signal.hh.
Definition at line 101 of file aux_vector.hh.
enum gem5::BlockMemoryHop : int |
enum gem5::BMIRegOffset |
Enumerator | |
---|---|
BMICommand | |
BMIStatus | |
BMIDescTablePtr |
Definition at line 61 of file ide_ctrl.cc.
Enumerator | |
---|---|
CR_TXE | |
CR_TXD | |
CR_RXE | |
CR_RXD | |
CR_TXR | |
CR_RXR | |
CR_SWI | |
CR_RST |
Definition at line 85 of file ns_gige_reg.h.
Enumerator | |
---|---|
CCSR_CLKRUN_EN |
Definition at line 335 of file ns_gige_reg.h.
Enumerator | |
---|---|
CMDSTS_OWN | |
CMDSTS_MORE | |
CMDSTS_INTR | |
CMDSTS_ERR | |
CMDSTS_OK | |
CMDSTS_LEN_MASK | |
CMDSTS_DEST_MASK | |
CMDSTS_DEST_SELF | |
CMDSTS_DEST_MULTI |
Definition at line 394 of file ns_gige_reg.h.
Definition at line 98 of file ns_gige_reg.h.
enum gem5::DevAction_t |
Definition at line 156 of file ide_disk.hh.
Definition at line 41 of file ns_gige_reg.h.
enum gem5::DevState_t |
Definition at line 175 of file ide_disk.hh.
Enumerator | |
---|---|
EMPTY | |
EXREADY | |
SKIP |
Definition at line 61 of file exec_stage.hh.
enum gem5::DmaState_t |
Enumerator | |
---|---|
Dma_Idle | |
Dma_Start | |
Dma_Transfer |
Definition at line 204 of file ide_disk.hh.
Enumerator | |
---|---|
MEAR_EEDI | |
MEAR_EEDO | |
MEAR_EECLK | |
MEAR_EESEL | |
MEAR_MDIO | |
MEAR_MDDIR | |
MEAR_MDC |
Definition at line 135 of file ns_gige_reg.h.
enum gem5::Events_t |
Enumerator | |
---|---|
None | |
Transfer | |
ReadWait | |
WriteWait | |
PrdRead | |
DmaRead | |
DmaWrite |
Definition at line 145 of file ide_disk.hh.
enum gem5::EXEC_POLICY |
Enumerator | |
---|---|
OLDEST | |
RR |
Definition at line 74 of file compute_unit.hh.
Enumerator | |
---|---|
EXTSTS_UDPERR | |
EXTSTS_UDPPKT | |
EXTSTS_TCPERR | |
EXTSTS_TCPPKT | |
EXTSTS_IPERR | |
EXTSTS_IPPKT |
Definition at line 409 of file ns_gige_reg.h.
Definition at line 227 of file ns_gige_reg.h.
|
strong |
|
strong |
enum gem5::InstMemoryHop : int |
Definition at line 160 of file ns_gige_reg.h.
|
strong |
Enumerator | |
---|---|
INITIAL_NOP | |
SEND_REQ | |
TERMINATE |
Definition at line 62 of file gic_v3_its.hh.
enum gem5::kfd_mmio_remap |
Enumerator | |
---|---|
KFD_MMIO_REMAP_HDP_MEM_FLUSH_CNTL | |
KFD_MMIO_REMAP_HDP_REG_FLUSH_CNTL |
Definition at line 511 of file kfd_ioctl.h.
enum gem5::kfd_smi_event |
Enumerator | |
---|---|
KFD_SMI_EVENT_NONE | |
KFD_SMI_EVENT_VMFAULT | |
KFD_SMI_EVENT_THERMAL_THROTTLE | |
KFD_SMI_EVENT_GPU_PRE_RESET | |
KFD_SMI_EVENT_GPU_POST_RESET |
Definition at line 492 of file kfd_ioctl.h.
Enumerator | |
---|---|
M5REG_RESERVED | |
M5REG_RSS | |
M5REG_RX_THREAD | |
M5REG_TX_THREAD |
Definition at line 369 of file ns_gige_reg.h.
Enumerator | |
---|---|
MIBC_MIBS | |
MIBC_ACLR | |
MIBC_FRZ | |
MIBC_WRN |
Definition at line 304 of file ns_gige_reg.h.
Enumerator | |
---|---|
PCR_PSEN | |
PCR_PS_MCAST | |
PCR_PS_DA | |
PCR_STHI_8 | |
PCR_STLO_4 | |
PCR_FFHI_8K | |
PCR_FFLO_4K | |
PCR_PAUSE_CNT |
Definition at line 263 of file ns_gige_reg.h.
|
strong |
Enumerator | |
---|---|
PTSCR_EEBIST_FAIL | |
PTSCR_EEBIST_EN | |
PTSCR_EELOAD_EN | |
PTSCR_RBIST_FAIL | |
PTSCR_RBIST_DONE | |
PTSCR_RBIST_EN | |
PTSCR_RBIST_RST | |
PTSCR_RBIST_RDONLY |
Definition at line 147 of file ns_gige_reg.h.
enum gem5::Q_STATE |
Enumerator | |
---|---|
UNBLOCKED | |
BLOCKED_BBIT | |
BLOCKED_BPKT |
Definition at line 61 of file hsa_packet_processor.hh.
Enumerator | |
---|---|
RX_CFG_AEP | |
RX_CFG_ARP | |
RX_CFG_STRIPCRC | |
RX_CFG_RX_FD | |
RX_CFG_ALP | |
RX_CFG_AIRL | |
RX_CFG_MXDMA512 | |
RX_CFG_MXDMA | |
RX_CFG_DRTH | |
RX_CFG_DRTH0 |
Definition at line 248 of file ns_gige_reg.h.
Enumerator | |
---|---|
RFCR_RFEN | |
RFCR_AAB | |
RFCR_AAM | |
RFCR_AAU | |
RFCR_APM | |
RFCR_APAT | |
RFCR_APAT3 | |
RFCR_APAT2 | |
RFCR_APAT1 | |
RFCR_APAT0 | |
RFCR_AARP | |
RFCR_MHEN | |
RFCR_UHEN | |
RFCR_ULM | |
RFCR_RFADDR |
Definition at line 276 of file ns_gige_reg.h.
Enumerator | |
---|---|
RFDR_BMASK | |
RFDR_RFDATA0 | |
RFDR_RFDATA1 |
Definition at line 296 of file ns_gige_reg.h.
enum gem5::RegClass |
Enumerate the classes of registers.
Definition at line 55 of file reg_class.hh.
|
strong |
enum gem5::ScalarRegInitFields : int |
these enums represent the indices into the initialRegState bitfields in HsaKernelInfo.
each bit specifies whether or not the particular piece of state that the bit corresponds to should be initialized into the VGPRs/SGPRs. the order in which the fields are placed matters, as all enabled pieces of state will be initialized into contiguous registers in the same order as their position in the bitfield - which is specified in the HSA ABI.
Definition at line 56 of file kernel_code.hh.
enum gem5::SDWADstVals : int |
Enumerator | |
---|---|
SDWA_UNUSED_PAD | |
SDWA_UNUSED_SEXT | |
SDWA_UNUSED_PRESERVE | |
SDWA_UNUSED_PAD | |
SDWA_UNUSED_SEXT | |
SDWA_UNUSED_PRESERVE |
Definition at line 57 of file inst_util.hh.
enum gem5::SDWADstVals : int |
Enumerator | |
---|---|
SDWA_UNUSED_PAD | |
SDWA_UNUSED_SEXT | |
SDWA_UNUSED_PRESERVE | |
SDWA_UNUSED_PAD | |
SDWA_UNUSED_SEXT | |
SDWA_UNUSED_PRESERVE |
Definition at line 57 of file inst_util.hh.
enum gem5::SDWASelVals : int |
Enumerator | |
---|---|
SDWA_BYTE_0 | |
SDWA_BYTE_1 | |
SDWA_BYTE_2 | |
SDWA_BYTE_3 | |
SDWA_WORD_0 | |
SDWA_WORD_1 | |
SDWA_DWORD | |
SDWA_BYTE_0 | |
SDWA_BYTE_1 | |
SDWA_BYTE_2 | |
SDWA_BYTE_3 | |
SDWA_WORD_0 | |
SDWA_WORD_1 | |
SDWA_DWORD |
Definition at line 45 of file inst_util.hh.
enum gem5::SDWASelVals : int |
Enumerator | |
---|---|
SDWA_BYTE_0 | |
SDWA_BYTE_1 | |
SDWA_BYTE_2 | |
SDWA_BYTE_3 | |
SDWA_WORD_0 | |
SDWA_WORD_1 | |
SDWA_DWORD | |
SDWA_BYTE_0 | |
SDWA_BYTE_1 | |
SDWA_BYTE_2 | |
SDWA_BYTE_3 | |
SDWA_WORD_0 | |
SDWA_WORD_1 | |
SDWA_DWORD |
Definition at line 45 of file inst_util.hh.
enum gem5::SMMUActionType |
Enumerator | |
---|---|
ACTION_INITIAL_NOP | |
ACTION_SEND_REQ | |
ACTION_SEND_REQ_FINAL | |
ACTION_SEND_RESP | |
ACTION_SEND_RESP_ATS | |
ACTION_DELAY | |
ACTION_SLEEP | |
ACTION_TERMINATE |
Definition at line 58 of file smmu_v3_proc.hh.
Definition at line 331 of file smmu_v3_defs.hh.
enum gem5::SMMUEventFlags |
Enumerator | |
---|---|
EVF_WRITE |
Definition at line 392 of file smmu_v3_defs.hh.
enum gem5::SMMUEventTypes |
Enumerator | |
---|---|
EVT_FAULT |
Definition at line 387 of file smmu_v3_defs.hh.
enum gem5::SqDPPVals : int |
Definition at line 65 of file inst_util.hh.
enum gem5::SqDPPVals : int |
Definition at line 65 of file inst_util.hh.
enum gem5::STAT_STATUS |
Enumerator | |
---|---|
IdleExec | |
BusyExec | |
PostExec |
Definition at line 54 of file exec_stage.hh.
Enumerator | |
---|---|
TANAR_NP | |
TANAR_RF2 | |
TANAR_RF1 | |
TANAR_PS2 | |
TANAR_PS1 | |
TANAR_HALF_DUP | |
TANAR_FULL_DUP | |
TANAR_UNUSED |
Definition at line 356 of file ns_gige_reg.h.
Enumerator | |
---|---|
TBICR_MR_LOOPBACK | |
TBICR_MR_AN_ENABLE | |
TBICR_MR_RESTART_AN |
Definition at line 341 of file ns_gige_reg.h.
Enumerator | |
---|---|
TBISR_MR_LINK_STATUS | |
TBISR_MR_AN_COMPLETE |
Definition at line 349 of file ns_gige_reg.h.
enum gem5::TLB_CACHE |
Enumerator | |
---|---|
TLB_MISS_CACHE_MISS | |
TLB_MISS_CACHE_HIT | |
TLB_HIT_CACHE_MISS | |
TLB_HIT_CACHE_HIT |
Definition at line 80 of file compute_unit.hh.
enum gem5::TrafficType |
Enumerator | |
---|---|
BIT_COMPLEMENT_ | |
BIT_REVERSE_ | |
BIT_ROTATION_ | |
NEIGHBOR_ | |
SHUFFLE_ | |
TORNADO_ | |
TRANSPOSE_ | |
UNIFORM_RANDOM_ | |
NUM_TRAFFIC_PATTERNS_ |
Definition at line 46 of file GarnetSyntheticTraffic.hh.
Definition at line 204 of file ns_gige_reg.h.
enum gem5::VectorRegInitFields : int |
Enumerator | |
---|---|
WorkitemIdX | |
WorkitemIdY | |
WorkitemIdZ | |
NumVectorInitFields |
Definition at line 76 of file kernel_code.hh.
Enumerator | |
---|---|
VRCR_RUDPE | |
VRCR_RTCPE | |
VRCR_RIPE | |
VRCR_IPEN | |
VRCR_DUTF | |
VRCR_DVTF | |
VRCR_VTREN | |
VRCR_VTDEN |
Definition at line 313 of file ns_gige_reg.h.
Enumerator | |
---|---|
VTCR_PPCHK | |
VTCR_GCHK | |
VTCR_VPPTI | |
VTCR_VGTI |
Definition at line 326 of file ns_gige_reg.h.
std::enable_if_t<std::is_integral<T>::value && std::is_signed<T>::value, T> gem5::__to_number | ( | const std::string & | value | ) |
Definition at line 116 of file str.hh.
References gem5::MipsISA::r.
std::enable_if_t<std::is_integral<T>::value && !std::is_signed<T>::value, T> gem5::__to_number | ( | const std::string & | value | ) |
Definition at line 134 of file str.hh.
References gem5::MipsISA::r.
std::enable_if_t<std::is_enum<T>::value, T> gem5::__to_number | ( | const std::string & | value | ) |
Definition at line 149 of file str.hh.
References gem5::MipsISA::r, and gem5::X86ISA::type.
std::enable_if_t<std::is_floating_point<T>::value, T> gem5::__to_number | ( | const std::string & | value | ) |
Definition at line 161 of file str.hh.
References gem5::MipsISA::r.
SyscallReturn gem5::_llseekFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | tgt_fd, | ||
uint64_t | offset_high, | ||
uint32_t | offset_low, | ||
VPtr<> | result_ptr, | ||
int | whence | ||
) |
Target _llseek() handler.
Definition at line 302 of file syscall_emul.cc.
References gem5::BufferArg::bufferPtr(), gem5::BaseBufferArg::copyOut(), gem5::System::getGuestByteOrder(), gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getSystemPtr(), gem5::ThreadContext::getVirtProxy(), htog(), gem5::ArmISA::offset, and gem5::MipsISA::p.
Referenced by gem5::ArmISA::SyscallTable32::SyscallTable32().
void gem5::abortHandler | ( | int | sigtype | ) |
Abort signal handler.
Definition at line 145 of file init_signals.cc.
References ccprintf(), curEventQueue(), gem5::PowerISA::eq, print_backtrace(), raiseFatalSignal(), and STATIC_ERR.
Referenced by initSignals().
SyscallReturn gem5::acceptFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | tgt_fd, | ||
VPtr<> | addrPtr, | ||
VPtr<> | lenPtr | ||
) |
We poll the socket file descriptor first to guarantee that we do not block on our accept call. The socket can be opened without the non-blocking flag (it blocks). This will cause deadlocks between communicating processes.
Definition at line 2525 of file syscall_emul.hh.
References gem5::BufferArg::bufferPtr(), gem5::BaseBufferArg::copyIn(), gem5::BaseBufferArg::copyOut(), gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), gem5::MipsISA::p, gem5::SyscallReturn::retry(), and gem5::ArmISA::sa.
SyscallReturn gem5::accessFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
VPtr<> | pathname, | ||
mode_t | mode | ||
) |
Target access() handler.
Definition at line 998 of file syscall_emul.cc.
References gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), gem5::ArmISA::mode, gem5::MipsISA::p, and gem5::PortProxy::tryReadString().
Referenced by faccessatFunc(), gem5::ArmISA::SyscallTable32::SyscallTable32(), and gem5::ArmISA::SyscallTable64::SyscallTable64().
Returns the address of the closest aligned fixed-size block to the given address.
addr | Input address. |
block_size | Block size in bytes. |
Definition at line 66 of file utils.hh.
References gem5::X86ISA::addr.
Referenced by gem5::o3::LSQ::SplitDataRequest::initiateTranslation().
Calculates the offset of a given address wrt aligned fixed-size blocks.
addr | Input address. |
block_size | Block size in bytes. |
Definition at line 53 of file utils.hh.
References gem5::X86ISA::addr.
Referenced by gem5::AtomicSimpleCPU::genMemFragmentRequest(), gem5::CheckerCPU::genMemFragmentRequest(), gem5::minor::LSQ::SplitDataRequest::makeFragmentRequests(), and transferNeedsBurst().
Fault gem5::amoMemAtomic | ( | XC * | xc, |
Trace::InstRecord * | traceData, | ||
MemT & | mem, | ||
Addr | addr, | ||
Request::Flags | flags, | ||
AtomicOpFunctor * | _amo_op | ||
) |
Do atomic read-modify-write (AMO) in atomic mode.
Definition at line 238 of file memhelpers.hh.
References gem5::X86ISA::addr, gtoh(), mem, NoFault, and gem5::Trace::InstRecord::setData().
Fault gem5::amoMemAtomicBE | ( | XC * | xc, |
Trace::InstRecord * | traceData, | ||
MemT & | mem, | ||
Addr | addr, | ||
Request::Flags | flags, | ||
AtomicOpFunctor * | _amo_op | ||
) |
Definition at line 269 of file memhelpers.hh.
References gem5::X86ISA::addr, and mem.
Fault gem5::amoMemAtomicLE | ( | XC * | xc, |
Trace::InstRecord * | traceData, | ||
MemT & | mem, | ||
Addr | addr, | ||
Request::Flags | flags, | ||
AtomicOpFunctor * | _amo_op | ||
) |
Definition at line 260 of file memhelpers.hh.
References gem5::X86ISA::addr, and mem.
void gem5::arrayParamIn | ( | CheckpointIn & | cp, |
const std::string & | name, | ||
CircleBuf< T > & | param | ||
) |
Definition at line 257 of file circlebuf.hh.
References gem5::CircleBuf< T >::flush(), name(), and gem5::CircleBuf< T >::write().
Referenced by arrayParamIn(), gem5::Globals::unserialize(), gem5::ps2::Device::unserialize(), gem5::EthPacketData::unserialize(), gem5::CopyEngine::CopyEngineChannel::unserialize(), gem5::Plic::unserialize(), gem5::MC146818::unserialize(), unserialize(), and gem5::IGbE::DescCache< igbreg::RxDesc >::unserialize().
void gem5::arrayParamIn | ( | CheckpointIn & | cp, |
const std::string & | name, | ||
Fifo< T > & | param | ||
) |
Definition at line 277 of file circlebuf.hh.
References arrayParamIn(), gem5::Fifo< T >::capacity(), fatal_if, gem5::Fifo< T >::flush(), name(), and gem5::Fifo< T >::write().
decltype(std::declval<T>().push_back(std::declval<typename T::value_type>()), void()) gem5::arrayParamIn | ( | CheckpointIn & | cp, |
const std::string & | name, | ||
T & | param | ||
) |
Definition at line 483 of file serialize.hh.
References name().
void gem5::arrayParamOut | ( | CheckpointOut & | cp, |
const std::string & | name, | ||
const CircleBuf< T > & | param | ||
) |
Definition at line 247 of file circlebuf.hh.
References arrayParamOut, name(), gem5::CircleBuf< T >::peek(), and gem5::CircleBuf< T >::size().
void gem5::arrayParamOut | ( | CheckpointOut & | cp, |
const std::string & | name, | ||
const Fifo< T > & | param | ||
) |
Definition at line 268 of file circlebuf.hh.
References arrayParamOut, name(), gem5::Fifo< T >::peek(), and gem5::Fifo< T >::size().
ssize_t gem5::atomic_read | ( | int | fd, |
void * | s, | ||
size_t | n | ||
) |
Definition at line 38 of file atomicio.cc.
References gem5::ArmISA::fd, gem5::ArmISA::n, gem5::MipsISA::p, and gem5::ArmISA::s.
Referenced by TEST().
ssize_t gem5::atomic_write | ( | int | fd, |
const void * | s, | ||
size_t | n | ||
) |
Definition at line 67 of file atomicio.cc.
References gem5::ArmISA::fd, gem5::ArmISA::n, gem5::MipsISA::p, and gem5::ArmISA::s.
Referenced by gem5::Terminal::accept(), gem5::VncServer::accept(), TEST(), gem5::Terminal::write(), and gem5::VncServer::write().
|
static |
Definition at line 46 of file mc146818.cc.
References gem5::X86ISA::val.
Referenced by gem5::MC146818::setTime().
|
inline |
Definition at line 175 of file byteswap.hh.
Referenced by gem5::Trace::SparcNativeTrace::check(), gem5::loader::DtbFile::findReleaseAddr(), gem5::prefetch::Base::PrefetchInfo::get(), gem5::Packet::getBE(), gtoh(), gem5::SparcISA::Decoder::moreBytes(), gem5::VncServer::recvCutText(), gem5::VncServer::recvKeyboardInput(), gem5::VncServer::recvPointerInput(), gem5::RegisterBank< BankByteOrder >::Register< BackingType >::regtoh(), gem5::VncServer::requestFbUpdate(), gem5::UFSHostDevice::UFSSCSIDevice::SCSICMDHandle(), gem5::VncServer::setEncodings(), gem5::VncServer::setPixelFormat(), and gem5::SparcISA::TLB::translateFunctional().
|
inline |
SyscallReturn gem5::bindFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | tgt_fd, | ||
VPtr<> | buf_ptr, | ||
int | addrlen | ||
) |
Definition at line 1164 of file syscall_emul.cc.
References gem5::BufferArg::bufferPtr(), gem5::BaseBufferArg::copyIn(), gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), gem5::MipsISA::p, and gem5::ArmISA::status.
|
inlinestatic |
Definition at line 237 of file types.hh.
References bitsToFloat32(), and gem5::X86ISA::val.
|
inlinestatic |
Definition at line 236 of file types.hh.
References bitsToFloat64(), and gem5::X86ISA::val.
|
inlinestatic |
Definition at line 213 of file types.hh.
References gem5::ArmISA::f, gem5::ArmISA::i, gem5::ArmISA::u, and gem5::X86ISA::val.
Referenced by bitsToFloat(), gem5::guest_abi::Argument< Aapcs32, Float, typename std::enable_if_t< std::is_floating_point< Float >::value > >::get(), and gem5::Trace::TarmacTracerRecord::TraceRegEntry::updateFloat().
|
inlinestatic |
Definition at line 225 of file types.hh.
References gem5::ArmISA::f, gem5::ArmISA::i, gem5::ArmISA::u, and gem5::X86ISA::val.
Referenced by bitsToFloat(), gem5::guest_abi::Argument< Aapcs32, Float, typename std::enable_if_t< std::is_floating_point< Float >::value > >::get(), and updateKvmStateFPUCommon().
SyscallReturn gem5::brkFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
VPtr<> | new_brk | ||
) |
Target brk() handler: set brk address.
Definition at line 247 of file syscall_emul.cc.
References DPRINTF_SYSCALL, gem5::ThreadContext::getProcessPtr(), and gem5::MipsISA::p.
Referenced by gem5::ArmISA::SyscallTable32::SyscallTable32(), and gem5::ArmISA::SyscallTable64::SyscallTable64().
Definition at line 68 of file tlb.cc.
References gem5::RiscvISA::asid.
Referenced by gem5::X86ISA::TLB::insert(), and gem5::RiscvISA::TLB::lookup().
|
static |
|
inline |
Definition at line 130 of file cprintf.hh.
References gem5::cp::Print::endArgs().
Referenced by abortHandler(), gem5::Terminal::accept(), gem5::statistics::Text::begin(), ccprintf(), gem5::MemTest::completeRequest(), cprintf(), csprintf(), sc_core::sc_report_handler::default_handler(), gem5::X86ISA::X86FaultBase::describe(), gem5::X86ISA::PageFault::describe(), gem5::Trace::Logger::dprintf_flag(), gem5::Trace::IntelTraceRecord::dump(), gem5::Trace::Logger::dump(), gem5::Trie< Key, Value >::Node::dump(), gem5::ProfileNode::dump(), gem5::FunctionProfile::dump(), gem5::Trie< Addr, TlbEntry >::dump(), dumpDebugFlags(), dumpDmesgEntry(), gem5::ProtocolTester::dumpErrorLog(), gem5::statistics::Text::end(), gem5::memory::AbstractMemory::functionalAccess(), gem5::PowerISA::MiscOp::generateDisassembly(), gem5::SparcISA::Mem::generateDisassembly(), gem5::ImmOp64::generateDisassembly(), gem5::SparcISA::Trap::generateDisassembly(), gem5::PowerISA::CondLogicOp::generateDisassembly(), gem5::ArmISA::SysDC64::generateDisassembly(), gem5::PowerISA::PowerStaticInst::generateDisassembly(), gem5::SparcISA::BranchDisp::generateDisassembly(), gem5::SparcISA::MemImm::generateDisassembly(), gem5::SparcISA::BlockMemMicro::generateDisassembly(), gem5::SparcISA::RdPriv::generateDisassembly(), gem5::ArmISA::SveMemVecFillSpill::generateDisassembly(), gem5::ArmISA::SveIndexIIOp::generateDisassembly(), gem5::SparcISA::IntOpImm::generateDisassembly(), gem5::RegRegImmImmOp64::generateDisassembly(), gem5::ArmISA::DataXImmOnlyOp::generateDisassembly(), gem5::SparcISA::WrPriv::generateDisassembly(), gem5::PowerISA::MemDispOp::generateDisassembly(), gem5::ArmISAInst::TmeImmOp64::generateDisassembly(), gem5::PowerISA::CondMoveOp::generateDisassembly(), gem5::MsrImmOp::generateDisassembly(), gem5::SparcISA::BlockMemImmMicro::generateDisassembly(), gem5::ArmISA::SveIndexIROp::generateDisassembly(), gem5::PowerISA::BranchOp::generateDisassembly(), gem5::RegRegRegImmOp64::generateDisassembly(), gem5::ArmISA::SveMemPredFillSpill::generateDisassembly(), gem5::ArmISA::SveLdStructSS< Element, MicroopLdMemType, MicroopDeIntrlvType >::generateDisassembly(), gem5::ArmISA::BranchRegReg64::generateDisassembly(), gem5::PowerISA::MemDispShiftOp::generateDisassembly(), gem5::PowerISA::IntOp::generateDisassembly(), gem5::ArmISA::SveIndexRIOp::generateDisassembly(), gem5::SparcISA::WrPrivImm::generateDisassembly(), gem5::SparcISA::BranchImm13::generateDisassembly(), gem5::PowerISA::MemIndexOp::generateDisassembly(), gem5::X86ISA::X86MicroopBase::generateDisassembly(), gem5::PowerISA::IntImmOp::generateDisassembly(), gem5::ArmISA::BranchRegReg::generateDisassembly(), gem5::ArmISA::SveIndexRROp::generateDisassembly(), gem5::ArmISA::SveContigMemSS::generateDisassembly(), gem5::SparcISA::SetHi::generateDisassembly(), gem5::ArmISA::DataX1RegOp::generateDisassembly(), gem5::ArmISA::SvePredCountOp::generateDisassembly(), gem5::ArmISA::DataX1RegImmOp::generateDisassembly(), gem5::ArmISA::MemoryImm64::generateDisassembly(), gem5::PowerISA::FloatOp::generateDisassembly(), gem5::ImmOp::generateDisassembly(), gem5::ArmISA::SveContigMemSI::generateDisassembly(), gem5::ArmISA::SvePredCountPredOp::generateDisassembly(), gem5::ArmISA::DataX1Reg2ImmOp::generateDisassembly(), gem5::ArmISA::MemoryDImm64::generateDisassembly(), gem5::RegImmOp::generateDisassembly(), gem5::PowerISA::BranchDispCondOp::generateDisassembly(), gem5::ArmISA::SveStStructSS< Element, MicroopStMemType, MicroopIntrlvType >::generateDisassembly(), gem5::MiscRegImmOp64::generateDisassembly(), gem5::ArmISA::DataX2RegOp::generateDisassembly(), gem5::ArmISA::SveWhileOp::generateDisassembly(), gem5::ArmISA::MemoryDImmEx64::generateDisassembly(), gem5::ArmISA::BranchImmReg64::generateDisassembly(), gem5::ArmISA::MemoryPreIndex64::generateDisassembly(), gem5::ArmISA::SveCompTermOp::generateDisassembly(), gem5::PowerISA::BranchRegCondOp::generateDisassembly(), gem5::ArmISA::DataX2RegImmOp::generateDisassembly(), gem5::ArmISA::MemoryPostIndex64::generateDisassembly(), gem5::ArmISA::SveUnaryPredOp::generateDisassembly(), gem5::ArmISA::DataX3RegOp::generateDisassembly(), gem5::RegImmRegOp::generateDisassembly(), gem5::ArmISA::BranchImmImmReg64::generateDisassembly(), gem5::ArmISA::MemoryReg64::generateDisassembly(), gem5::ArmISA::SveUnaryUnpredOp::generateDisassembly(), gem5::ArmISA::DataXCondCompImmOp::generateDisassembly(), gem5::RegRegRegImmOp::generateDisassembly(), gem5::ArmISA::MemoryRaw64::generateDisassembly(), gem5::ArmISA::SveUnaryWideImmUnpredOp::generateDisassembly(), gem5::ArmISA::SveLdStructSI< Element, MicroopLdMemType, MicroopDeIntrlvType >::generateDisassembly(), gem5::ArmISA::DataXCondCompRegOp::generateDisassembly(), gem5::ArmISA::MemoryEx64::generateDisassembly(), gem5::ArmISA::DataXCondSelOp::generateDisassembly(), gem5::ArmISA::SveUnaryWideImmPredOp::generateDisassembly(), gem5::ArmISA::MemoryLiteral64::generateDisassembly(), gem5::ArmISA::SveBinImmUnpredConstrOp::generateDisassembly(), gem5::ArmISA::MemoryAtomicPair64::generateDisassembly(), gem5::RegRegImmOp::generateDisassembly(), gem5::ArmISA::SveBinImmPredOp::generateDisassembly(), gem5::ArmISA::MicroIntImmOp::generateDisassembly(), gem5::ArmISA::SveBinWideImmUnpredOp::generateDisassembly(), gem5::ArmISA::SveStStructSI< Element, MicroopStMemType, MicroopIntrlvType >::generateDisassembly(), gem5::ArmISA::MicroIntImmXOp::generateDisassembly(), gem5::ArmISA::SveBinDestrPredOp::generateDisassembly(), gem5::RegImmImmOp::generateDisassembly(), gem5::ArmISA::SveBinConstrPredOp::generateDisassembly(), gem5::RegRegImmImmOp::generateDisassembly(), gem5::ArmISA::MicroIntRegXOp::generateDisassembly(), gem5::PowerISA::IntArithOp::generateDisassembly(), gem5::X86ISA::InstOperands< X86MicroopBase >::generateDisassembly(), gem5::ArmISA::SveBinUnpredOp::generateDisassembly(), gem5::ArmISA::PredMacroOp::generateDisassembly(), gem5::RegImmRegShiftOp::generateDisassembly(), gem5::PowerISA::IntImmArithOp::generateDisassembly(), gem5::ArmISA::SveBinIdxUnpredOp::generateDisassembly(), gem5::ArmISA::MicroMemOp::generateDisassembly(), gem5::ArmISA::SvePredLogicalOp::generateDisassembly(), gem5::PowerISA::IntDispArithOp::generateDisassembly(), gem5::ArmISA::SveIndexedMemVI< RegElemType, MemElemType, MicroopType, FirstFaultWritebackMicroopType >::generateDisassembly(), gem5::ArmISA::SvePredBinPermOp::generateDisassembly(), gem5::ArmISA::MicroMemPairOp::generateDisassembly(), gem5::PowerISA::IntCompOp::generateDisassembly(), gem5::ArmISA::SveCmpOp::generateDisassembly(), gem5::PowerISA::IntImmCompOp::generateDisassembly(), gem5::ArmISA::SveCmpImmOp::generateDisassembly(), gem5::PowerISA::IntImmCompLogicOp::generateDisassembly(), gem5::ArmISA::SveTerPredOp::generateDisassembly(), gem5::ArmISA::SveTerImmUnpredOp::generateDisassembly(), gem5::ArmISA::SveReducOp::generateDisassembly(), gem5::ArmISA::SveIndexedMemSV< RegElemType, MemElemType, MicroopType, FirstFaultWritebackMicroopType >::generateDisassembly(), gem5::ArmISA::SveOrdReducOp::generateDisassembly(), gem5::ArmISA::SvePtrueOp::generateDisassembly(), gem5::PowerISA::IntLogicOp::generateDisassembly(), gem5::ArmISA::SveIntCmpOp::generateDisassembly(), gem5::PowerISA::IntImmLogicOp::generateDisassembly(), gem5::ArmISA::SveIntCmpImmOp::generateDisassembly(), gem5::PowerISA::IntShiftOp::generateDisassembly(), gem5::ArmISA::SveAdrOp::generateDisassembly(), gem5::PowerISA::IntConcatShiftOp::generateDisassembly(), gem5::ArmISA::SveElemCountOp::generateDisassembly(), gem5::ArmISA::SvePartBrkOp::generateDisassembly(), gem5::ArmISA::SvePartBrkPropOp::generateDisassembly(), gem5::PowerISA::IntRotateOp::generateDisassembly(), gem5::ArmISA::SveSelectOp::generateDisassembly(), gem5::ArmISA::SveUnaryPredPredOp::generateDisassembly(), gem5::PowerISA::IntConcatRotateOp::generateDisassembly(), gem5::ArmISA::SveTblOp::generateDisassembly(), gem5::ArmISA::SveUnpackOp::generateDisassembly(), gem5::ArmISA::SvePredTestOp::generateDisassembly(), gem5::PowerISA::IntTrapOp::generateDisassembly(), gem5::PowerISA::IntImmTrapOp::generateDisassembly(), gem5::ArmISA::SvePredUnaryWImplicitSrcPredOp::generateDisassembly(), gem5::ArmISA::SveBinImmUnpredDestrOp::generateDisassembly(), gem5::ArmISA::SveBinImmIdxUnpredOp::generateDisassembly(), gem5::ArmISA::SveUnarySca2VecUnpredOp::generateDisassembly(), gem5::ArmISA::SveDotProdIdxOp::generateDisassembly(), gem5::ArmISA::FpCondCompRegOp::generateDisassembly(), gem5::ArmISA::SveDotProdOp::generateDisassembly(), gem5::ArmISA::FpCondSelOp::generateDisassembly(), gem5::ArmISA::SveComplexOp::generateDisassembly(), gem5::ArmISA::SveComplexIdxOp::generateDisassembly(), gem5::ArmISA::FpRegImmOp::generateDisassembly(), gem5::ArmISA::FpRegRegImmOp::generateDisassembly(), gem5::ArmISA::FpRegRegRegImmOp::generateDisassembly(), gem5::Terminal::listen(), gem5::BaseRemoteGDB::listen(), gem5::VncServer::listen(), gem5::TapListener::listen(), gem5::Trace::OstreamLogger::logMessage(), main(), gem5::minor::MinorDynInst::minorTraceInst(), gem5::Trace::NativeTrace::NativeTrace(), gem5::statistics::ScalarPrint::operator()(), gem5::statistics::VectorPrint::operator()(), gem5::statistics::DistPrint::operator()(), gem5::networking::operator<<(), operator<<(), gem5::loader::operator<<(), sc_core::operator<<(), gem5::GenericISA::operator<<(), gem5::X86ISA::operator<<(), operator<<(), sc_gem5::VcdTraceScope::output(), sc_gem5::VcdTraceValFloat< T >::output(), sc_gem5::VcdTraceValFxval< T >::output(), gem5::Trace::TarmacTracerRecordV8::TraceInstEntryV8::print(), gem5::WriteQueueEntry::TargetList::print(), gem5::ruby::Throttle::print(), gem5::Logger::print(), gem5::Trace::TarmacTracerRecordV8::TraceRegEntryV8::print(), gem5::Trace::TarmacTracerRecord::TraceInstEntry::print(), gem5::Trace::TarmacTracerRecord::TraceRegEntry::print(), gem5::Trace::TarmacTracerRecordV8::TraceMemEntryV8::print(), gem5::X86ISA::CrOp< Base >::print(), gem5::ruby::MessageBuffer::print(), gem5::X86ISA::DbgOp< Base >::print(), gem5::WriteQueueEntry::print(), gem5::Trace::TarmacTracerRecord::TraceMemEntry::print(), gem5::X86ISA::Imm8Op::print(), gem5::X86ISA::Imm64Op::print(), gem5::MSHR::TargetList::print(), gem5::X86ISA::UpcOp::print(), gem5::X86ISA::FaultOp::print(), gem5::MSHR::print(), gem5::CacheBlkPrintWrapper::print(), gem5::Packet::print(), gem5::ArmISA::ArmStaticInst::printCCReg(), gem5::ArmISA::ArmStaticInst::printDataInst(), gem5::ArmISA::ArmStaticInst::printExtendOperand(), gem5::ArmISA::ArmStaticInst::printFloatReg(), gem5::ArmISA::ArmStaticInst::printIntReg(), gem5::Packet::PrintReqState::printLabels(), gem5::X86ISA::X86StaticInst::printMem(), gem5::ArmISA::ArmStaticInst::printMemSymbol(), gem5::ArmISA::ArmStaticInst::printMiscReg(), gem5::X86ISA::X86StaticInst::printMnemonic(), gem5::SparcISA::SparcStaticInst::printMnemonic(), gem5::ArmISA::MemoryImm::printOffset(), gem5::ArmISA::MemoryReg::printOffset(), gem5::ArmISA::ArmStaticInst::printPFflags(), gem5::SparcISA::IntOp::printPseudoOps(), gem5::SparcISA::IntOpImm::printPseudoOps(), gem5::PowerISA::PowerStaticInst::printReg(), gem5::SparcISA::SparcStaticInst::printReg(), gem5::X86ISA::X86StaticInst::printReg(), gem5::X86ISA::X86StaticInst::printSegment(), gem5::ArmISA::ArmStaticInst::printTarget(), gem5::statistics::BasePrint::printUnits(), gem5::ArmISA::ArmStaticInst::printVecPredReg(), gem5::ArmISA::ArmStaticInst::printVecReg(), gem5::ArmISA::DumpStats::process(), gem5::ProtocolTester::ProtocolTester(), gem5::BaseCPU::regStats(), gem5::System::regStats(), sc_core::sc_report_compose_message(), gem5::Shader::ShaderStats::ShaderStats(), gem5::ArmISA::ArmStaticInst::shift_carry_imm(), gem5::ArmISA::ArmStaticInst::shift_carry_rs(), gem5::ArmISA::ArmStaticInst::shift_rm_imm(), gem5::ArmISA::ArmStaticInst::shift_rm_rs(), gem5::ArmISA::ArmStaticInst::shiftReg64(), gem5::ShowParam< VecRegContainer< Sz > >::show(), gem5::ShowParam< VecPredRegContainer< NumBits, Packed > >::show(), sc_core::sc_vector_base::size(), gem5::ArmISA::Memory64::startDisassembly(), TEST(), sc_gem5::VcdTraceFile::trace(), gem5::BaseCPU::traceFunctionsInternal(), gem5::Trace::ExeTracerRecord::traceInst(), and sc_gem5::VcdTraceFile::~VcdTraceFile().
void gem5::ccprintf | ( | cp::Print & | print, |
const T & | value, | ||
const Args &... | args | ||
) |
Definition at line 137 of file cprintf.hh.
References gem5::cp::Print::addArg(), and ccprintf().
void gem5::ccprintf | ( | std::ostream & | stream, |
const char * | format, | ||
const Args &... | args | ||
) |
Definition at line 146 of file cprintf.hh.
References ccprintf(), and gem5::ArmISA::format.
void gem5::ccprintf | ( | std::ostream & | stream, |
const std::string & | format, | ||
const Args &... | args | ||
) |
Definition at line 174 of file cprintf.hh.
References ccprintf(), and gem5::ArmISA::format.
void gem5::change_thread_state | ( | ThreadID | tid, |
int | activate, | ||
int | priority | ||
) |
SyscallReturn gem5::chdirFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
VPtr<> | pathname | ||
) |
Target chdir() handler.
Definition at line 1029 of file syscall_emul.cc.
References gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), gem5::MipsISA::p, startswith(), and gem5::PortProxy::tryReadString().
|
static |
Definition at line 388 of file x86_cpu.cc.
References GEM5_FALLTHROUGH, isCanonicalAddress(), gem5::X86ISA::MISCREG_CS, gem5::X86ISA::MISCREG_DS, gem5::X86ISA::MISCREG_ES, gem5::X86ISA::MISCREG_FS, gem5::X86ISA::MISCREG_GS, gem5::X86ISA::MISCREG_SS, gem5::X86ISA::MISCREG_TR, gem5::X86ISA::MISCREG_TSL, name(), gem5::X86ISA::seg, and warn.
SyscallReturn gem5::chmodFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
VPtr<> | pathname, | ||
mode_t | mode | ||
) |
Target chmod() handler.
Definition at line 979 of file syscall_emul.hh.
References gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), gem5::ArmISA::mode, and gem5::PortProxy::tryReadString().
SyscallReturn gem5::chownFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
VPtr<> | pathname, | ||
uint32_t | owner, | ||
uint32_t | group | ||
) |
Target chown() handler.
Definition at line 624 of file syscall_emul.cc.
References gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), gem5::MipsISA::p, and gem5::PortProxy::tryReadString().
Referenced by gem5::ArmISA::SyscallTable32::SyscallTable32().
void gem5::clearDebugFlag | ( | const char * | string | ) |
Definition at line 169 of file debug.cc.
References gem5::debug::changeFlag().
Referenced by TEST().
SyscallReturn gem5::clock_getresFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | clk_id, | ||
VPtr< typename OS::timespec > | tp | ||
) |
Target clock_getres() function.
Definition at line 1915 of file syscall_emul.hh.
SyscallReturn gem5::clock_gettimeFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | clk_id, | ||
VPtr< typename OS::timespec > | tp | ||
) |
Target clock_gettime() function.
Definition at line 1901 of file syscall_emul.hh.
References gem5::ArmISA::byteOrder(), getElapsedTimeNano(), htog(), and seconds_since_epoch.
bool gem5::clockFrequencyFixed | ( | ) |
Definition at line 115 of file core.cc.
Referenced by pybind_init_core(), sc_core::sc_set_default_time_unit(), and sc_core::sc_set_time_resolution().
SyscallReturn gem5::cloneBackwardsFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
RegVal | flags, | ||
RegVal | newStack, | ||
VPtr<> | ptidPtr, | ||
VPtr<> | tlsPtr, | ||
VPtr<> | ctidPtr | ||
) |
Definition at line 1528 of file syscall_emul.hh.
SyscallReturn gem5::cloneFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
RegVal | flags, | ||
RegVal | newStack, | ||
VPtr<> | ptidPtr, | ||
VPtr<> | ctidPtr, | ||
VPtr<> | tlsPtr | ||
) |
Note that ProcessParams is generated by swig and there are no other examples of how to create anything but this default constructor. The fields are manually initialized instead of passing parameters to the constructor.
Definition at line 1417 of file syscall_emul.hh.
References gem5::ThreadContext::activate(), gem5::Process::assignThreadContext(), gem5::BufferArg::bufferPtr(), gem5::Process::childClearTID, gem5::ThreadContext::clearArchRegs(), gem5::ThreadContext::contextId(), gem5::BaseBufferArg::copyOut(), gem5::ThreadContext::cpuId(), DPRINTF_SYSCALL, fatal, gem5::System::Threads::findFree(), gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getSystemPtr(), gem5::ThreadContext::getVirtProxy(), gem5::Process::initState(), gem5::System::maxPID, gem5::MipsISA::p, gem5::ThreadContext::pcState(), gem5::Process::pid(), gem5::Process::pTable, gem5::SyscallDesc::returnInto(), gem5::Process::revokeThreadContext(), gem5::ThreadContext::setProcessPtr(), gem5::ThreadContext::setUseForClone(), gem5::EmulationPageTable::shared, gem5::Process::sigchld, gem5::ThreadContext::threadId(), gem5::System::threads, and gem5::Process::useForClone.
SyscallReturn gem5::closeFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | tgt_fd | ||
) |
Target close() handler.
Definition at line 278 of file syscall_emul.cc.
References gem5::ThreadContext::getProcessPtr(), and gem5::MipsISA::p.
Referenced by gem5::ArmISA::SyscallTable32::SyscallTable32(), and gem5::ArmISA::SyscallTable64::SyscallTable64().
uint64_t gem5::composeBitVector | ( | T | vec | ) |
Definition at line 65 of file smbios.cc.
References gem5::X86ISA::val, and gem5::PowerISA::vec.
Referenced by gem5::X86ISA::smbios::BiosInformation::BiosInformation().
SyscallReturn gem5::connectFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | tgt_fd, | ||
VPtr<> | buf_ptr, | ||
int | addrlen | ||
) |
Definition at line 1200 of file syscall_emul.cc.
References gem5::X86ISA::addr, gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), gem5::MipsISA::p, and gem5::ArmISA::status.
void gem5::copyOutStat64Buf | ( | TgtStatPtr | tgt, |
HostStatPtr | host, | ||
bool | fakeTTY = false |
||
) |
Definition at line 615 of file syscall_emul.hh.
References gem5::PowerISA::bo, gem5::ArmISA::byteOrder(), and htog().
void gem5::copyOutStatBuf | ( | TgtStatPtr | tgt, |
HostStatPtr | host, | ||
bool | fakeTTY = false |
||
) |
Definition at line 566 of file syscall_emul.hh.
References gem5::PowerISA::bo, gem5::ArmISA::byteOrder(), and htog().
void gem5::copyOutStatfsBuf | ( | TgtStatPtr | tgt, |
HostStatPtr | host | ||
) |
Definition at line 637 of file syscall_emul.hh.
References gem5::PowerISA::bo, gem5::ArmISA::byteOrder(), and htog().
void gem5::copyStringArray | ( | std::vector< std::string > & | strings, |
AddrType | array_ptr, | ||
AddrType | data_ptr, | ||
const ByteOrder | bo, | ||
PortProxy & | memProxy | ||
) |
Definition at line 43 of file process_impl.hh.
References gem5::PowerISA::bo, htog(), gem5::ArmISA::i, gem5::PortProxy::writeBlob(), and gem5::PortProxy::writeString().
Referenced by gem5::MipsProcess::argsInit(), gem5::PowerProcess::argsInit(), gem5::SparcProcess::argsInit(), gem5::X86ISA::X86Process::argsInit(), and gem5::ArmProcess::argsInit().
void gem5::cprintf | ( | const char * | format, |
const Args &... | args | ||
) |
Definition at line 155 of file cprintf.hh.
References ccprintf(), and gem5::ArmISA::format.
Referenced by gem5::statistics::Info::baseCheck(), gem5::debug::breakpoint(), gem5::EventQueue::debugVerify(), sc_core::sc_report_handler::default_handler(), gem5::ActivityRecorder::dump(), gem5::o3::StoreSet::dump(), gem5::o3::DependencyGraph< gem5::RefCountingPtr >::dump(), gem5::PCEventQueue::dump(), gem5::branch_prediction::BPredUnit::dump(), gem5::Event::dump(), gem5::o3::DynInst::dump(), gem5::EventQueue::dump(), gem5::Checker< gem5::RefCountingPtr >::dumpAndExit(), gem5::o3::Rename::dumpHistory(), gem5::o3::LSQUnit::dumpInsts(), gem5::o3::CPU::dumpInsts(), gem5::o3::InstructionQueue::dumpInsts(), gem5::Checker< gem5::RefCountingPtr >::dumpInsts(), gem5::o3::MemDepUnit::dumpLists(), gem5::o3::InstructionQueue::dumpLists(), fixClockFrequency(), gem5::EmbeddedPyBind::init(), main(), gem5::CPUProgressEvent::process(), and gem5::o3::InstructionQueue::~InstructionQueue().
void gem5::cprintf | ( | const std::string & | format, |
const Args &... | args | ||
) |
Definition at line 180 of file cprintf.hh.
References ccprintf(), and gem5::ArmISA::format.
std::unique_ptr< ImgWriter > gem5::createImgWriter | ( | enums::ImageFormat | type, |
const FrameBuffer * | fb | ||
) |
Factory Function which allocates a ImgWriter object and returns a smart pointer to it.
The dynamic type of the object being pointed depends upon the enum type passed as a first parameter. If the enum contains an invalid value, the function will produce a warning and will default to Bitamp.
type | Image writer type (e.g. Bitamp, Png) |
fb | Pointer to a FrameBuffer object This contains the raw data which will be stored as an image when calling the appropriate object method |
Definition at line 53 of file imgwriter.cc.
References gem5::ArmISA::fb, GEM5_FALLTHROUGH, gem5::X86ISA::type, and warn.
Referenced by gem5::VncInput::setFrameBuffer().
std::string gem5::csprintf | ( | const char * | format, |
const Args &... | args | ||
) |
Definition at line 161 of file cprintf.hh.
References ccprintf(), and gem5::ArmISA::format.
Referenced by gem5::fastmodel::PL330::allocateIrq(), gem5::SMMUv3DeviceInterface::atsRecvAtomic(), gem5::SMMUv3DeviceInterface::atsRecvTimingReq(), gem5::statistics::Text::beginGroup(), gem5::CxxConfigManager::bindObjectPorts(), gem5::CxxConfigManager::bindPort(), gem5::CxxConfigManager::bindRequestPort(), gem5::ArmSemihosting::callTmpNam(), gem5::CoherentXBar::CoherentXBar(), gem5::MemChecker::completeRead(), gem5::ComputeUnit::ComputeUnitStats::ComputeUnitStats(), gem5::fastmodel::ScxEvsCortexR52< Types >::CorePins::CorePins(), gem5::GenericTimer::CoreTimers::CoreTimers(), gem5::Linux::cpuOnline(), csprintf(), gem5::statistics::DataWrap< Distribution, DistInfoProxy >::DataWrap(), gem5::ArmISA::PMU::CounterState::debugCounter(), gem5::Pl111::dmaDone(), sc_core::sc_in_resolved::end_of_elaboration(), sc_core::sc_inout_resolved::end_of_elaboration(), sc_gem5::Module::endOfElaboration(), gem5::Linux::etcPasswd(), gem5::EtherSwitch::EtherSwitch(), gem5::CxxConfigManager::findObject(), gem5::CxxConfigManager::findObjectParams(), gem5::CxxConfigManager::findObjectType(), gem5::Trace::TarmacTracerRecordV8::TraceRegEntryV8::formatReg(), gem5::RiscvISA::MemFenceMicro::generateDisassembly(), gem5::PowerISA::MemOp::generateDisassembly(), gem5::DecoderFaultInst::generateDisassembly(), gem5::RiscvISA::Unknown::generateDisassembly(), gem5::SparcISA::FailUnimplemented::generateDisassembly(), gem5::FailUnimplemented::generateDisassembly(), gem5::UnknownOp64::generateDisassembly(), gem5::SparcISA::WarnUnimplemented::generateDisassembly(), gem5::WarnUnimplemented::generateDisassembly(), gem5::MiscRegImplDefined64::generateDisassembly(), gem5::UnknownOp::generateDisassembly(), gem5::McrMrcMiscInst::generateDisassembly(), gem5::McrMrcImplDefined::generateDisassembly(), getEventQueue(), gem5::CxxConfigManager::getObject(), gem5::fastmodel::CortexR52::getPort(), gem5::fastmodel::GIC::getPort(), gem5::ArmSigInterruptPinGen::getPort(), gem5::X86ISA::I8042::I8042(), gem5::X86ISA::I82094AA::I82094AA(), gem5::X86ISA::I8254::I8254(), gem5::X86ISA::I8259::I8259(), gem5::o3::MemDepUnit::init(), gem5::o3::LSQUnit::init(), sc_gem5::VcdTraceFile::initialize(), gem5::Event::instanceString(), gem5::ArmISA::ArmFault::invoke(), gem5::ArmISA::ArmFault::invoke64(), gem5::SMMUTranslationProcess::issuePrefetch(), gem5::ruby::MachineIDToString(), gem5::ruby::Throttle::name(), gem5::ruby::PerfectSwitch::name(), gem5::CopyEngine::CopyEngineChannel::name(), gem5::PciHost::DeviceInterface::name(), gem5::SimpleThread::name(), gem5::System::Threads::Thread::name(), gem5::Event::name(), gem5::memory::DRAMInterface::Rank::name(), gem5::NoncoherentXBar::NoncoherentXBar(), operator<<(), sc_gem5::VcdTraceScope::output(), gem5::ruby::Profiler::ProfilerStats::PerMachineTypeStats::PerMachineTypeStats(), gem5::ruby::Profiler::ProfilerStats::PerRequestTypeMachineTypeStats::PerRequestTypeMachineTypeStats(), gem5::ruby::Profiler::ProfilerStats::PerRequestTypeStats::PerRequestTypeStats(), gem5::fastmodel::PL330::PL330(), gem5::Trace::TarmacTracerRecordV8::TraceInstEntryV8::print(), gem5::Trace::TarmacTracerRecord::TraceInstEntry::print(), gem5::FALRUBlk::print(), gem5::TaggedEntry::print(), gem5::ReplaceableEntry::print(), gem5::SectorSubBlk::print(), gem5::CompressionBlk::print(), gem5::SectorBlk::print(), gem5::BaseTags::print(), gem5::SuperBlk::print(), gem5::ArmISA::TlbEntry::print(), gem5::CacheBlk::print(), gem5::compression::DictionaryCompressor< T >::Pattern::print(), gem5::Linux::procMeminfo(), gem5::ruby::Profiler::ProfilerStats::ProfilerStats(), gem5::ProtocolTester::ProtocolTester(), gem5::Serializable::ScopedCheckpointSection::pushName(), gem5::HDLcd::pxlFrameDone(), gem5::SMMUv3DeviceInterface::recvAtomic(), gem5::SMMUv3DeviceInterface::recvTimingReq(), gem5::ruby::SimpleNetwork::regStats(), gem5::ruby::Throttle::regStats(), gem5::ruby::Switch::regStats(), gem5::ruby::garnet::GarnetNetwork::regStats(), gem5::TrafficGen::resolveFile(), gem5::RiscvRTC::RTC::RTC(), gem5::ruby::RubyPort::RubyPort(), gem5::ScheduleStage::ScheduleStageStats::ScheduleStageStats(), gem5::ScoreboardCheckStage::ScoreboardCheckStageStats::ScoreboardCheckStageStats(), gem5::fastmodel::ScxEvsCortexA76< Types >::ScxEvsCortexA76(), gem5::fastmodel::ScxEvsCortexR52< Types >::ScxEvsCortexR52(), gem5::ArmSemihosting::semiExit(), gem5::BaseRemoteGDB::send(), gem5::FlashDevice::serialize(), gem5::ArmISA::PMU::serialize(), gem5::FDArray::serialize(), gem5::EtherLink::Link::serialize(), gem5::Gicv3::serialize(), gem5::Iob::serialize(), gem5::X86ISA::TLB::serialize(), gem5::EtherSwitch::Interface::PortFifo::serialize(), gem5::EmulationPageTable::serialize(), gem5::CopyEngine::serialize(), gem5::MemState::serialize(), gem5::SparcISA::TLB::serialize(), gem5::CpuLocalTimer::serialize(), gem5::VGic::serialize(), gem5::PacketFifo::serialize(), gem5::ArmSemihosting::serialize(), gem5::memory::PhysicalMemory::serialize(), gem5::GenericTimer::serialize(), gem5::IGbE::DescCache< igbreg::RxDesc >::serialize(), gem5::loader::SymbolTable::serialize(), gem5::sinic::Device::serialize(), gem5::PciDevice::serialize(), gem5::BaseCPU::serialize(), gem5::DistIface::RecvScheduler::serialize(), gem5::GicV2::serialize(), gem5::System::serialize(), gem5::VirtIODeviceBase::serialize(), gem5::CheckpointIn::setDir(), gem5::CxxConfigManager::setParam(), gem5::CxxConfigManager::setParamVector(), gem5::SimpleCache::SimpleCache(), gem5::statistics::Text::statName(), gem5::statistics::ScalarProxy< Stat >::str(), gem5::statistics::ConstVectorNode< T >::str(), gem5::statistics::BinaryNode< Op >::str(), gem5::statistics::SumNode< Op >::str(), gem5::AddrRange::to_string(), gem5::statistics::units::Rate< T1, T2 >::toString(), gem5::BaseCPU::traceFunctionsInternal(), gem5::FlashDevice::unserialize(), gem5::ArmISA::PMU::unserialize(), gem5::FDArray::unserialize(), gem5::EtherLink::Link::unserialize(), gem5::Gicv3::unserialize(), gem5::Iob::unserialize(), gem5::X86ISA::TLB::unserialize(), gem5::EtherSwitch::Interface::PortFifo::unserialize(), gem5::EmulationPageTable::unserialize(), gem5::CopyEngine::unserialize(), gem5::SparcISA::TLB::unserialize(), gem5::CpuLocalTimer::unserialize(), gem5::VGic::unserialize(), gem5::MemState::unserialize(), gem5::PacketFifo::unserialize(), gem5::ArmSemihosting::unserialize(), gem5::memory::PhysicalMemory::unserialize(), gem5::GenericTimer::unserialize(), gem5::IGbE::DescCache< igbreg::RxDesc >::unserialize(), gem5::sinic::Device::unserialize(), gem5::loader::SymbolTable::unserialize(), gem5::PciDevice::unserialize(), gem5::BaseCPU::unserialize(), gem5::DistIface::RecvScheduler::unserialize(), gem5::GicV2::unserialize(), gem5::System::unserialize(), gem5::VirtIODeviceBase::unserialize(), sc_core::wait(), gem5::WalkCache::WalkCacheStats::WalkCacheStats(), and gem5::X86ISA::Cmos::X86RTC::X86RTC().
std::string gem5::csprintf | ( | const std::string & | format, |
const Args &... | args | ||
) |
Definition at line 186 of file cprintf.hh.
References csprintf(), and gem5::ArmISA::format.
|
inline |
Definition at line 88 of file eventq.hh.
References _curEventQueue.
Referenced by abortHandler(), gem5::BaseGlobalEvent::deschedule(), doSimLoop(), gem5::BaseGlobalEvent::BarrierEvent::globalBarrier(), gem5::DistIface::RecvScheduler::init(), gem5::BaseKvmCPU::kvmRun(), gem5::GlobalSyncEvent::BarrierEvent::process(), gem5::DistIface::SyncEvent::process(), gem5::DistIface::RecvScheduler::pushPacket(), pybind_init_event(), gem5::DistIface::recvThreadFunc(), and gem5::BaseKvmCPU::tick().
|
inline |
Definition at line 979 of file eventq.hh.
References _curEventQueue, gem5::Gem5Internal::_curTickPtr, and gem5::ArmISA::q.
|
inline |
The universal simulation clock.
Definition at line 46 of file cur_tick.hh.
References gem5::Gem5Internal::_curTickPtr.
Referenced by gem5::prefetch::SBOOE::Sandbox::access(), gem5::prefetch::SBOOE::access(), gem5::memory::DRAMSim2::accessAndRespond(), gem5::memory::DRAMsim3::accessAndRespond(), gem5::memory::MemCtrl::accessAndRespond(), gem5::FlashDevice::accessDevice(), gem5::SimpleCache::accessTiming(), gem5::FlashDevice::actionComplete(), gem5::o3::ThreadContext::activate(), gem5::SimpleThread::activate(), gem5::o3::CPU::activateContext(), gem5::o3::ElasticTrace::addDepTraceRecord(), gem5::memory::MemCtrl::addToReadQueue(), gem5::memory::MemCtrl::addToWriteQueue(), gem5::ruby::CacheMemory::allocate(), gem5::BaseTrafficGen::allocateWaitingRespSlot(), gem5::ruby::garnet::SwitchAllocator::arbitrate_inports(), gem5::ruby::garnet::SwitchAllocator::arbitrate_outports(), gem5::o3::Fetch::buildInst(), gem5::memory::NVMInterface::burstReady(), gem5::BaseXBar::calcPacketTiming(), gem5::DistIface::RecvScheduler::calcReceiveTick(), gem5::BaseCache::calculateAccessLatency(), gem5::prefetch::SBOOE::calculatePrefetch(), gem5::ruby::garnet::NetworkInterface::calculateVC(), gem5::ArmSemihosting::callClock(), gem5::ArmSemihosting::callElapsed32(), gem5::ArmSemihosting::callElapsed64(), gem5::ArmSemihosting::callTime(), gem5::VncInput::captureFrameBuffer(), gem5::sinic::Device::changeConfig(), gem5::TraceCPU::checkAndSchedExitEvent(), gem5::TesterThread::checkDeadlock(), gem5::ruby::UncoalescedTable::checkDeadlock(), gem5::FlashDevice::checkDrain(), gem5::memory::DRAMInterface::Rank::checkDrainDone(), gem5::memory::DRAMInterface::checkRefreshState(), gem5::ruby::garnet::NetworkInterface::checkReschedule(), gem5::ruby::garnet::NetworkInterface::checkStallQueue(), gem5::IGbE::chkInterrupt(), gem5::memory::MemCtrl::chooseNextFRFCFS(), gem5::memory::NVMInterface::chooseRead(), gem5::BaseCache::CacheResponsePort::clearBlocked(), gem5::UFSHostDevice::clearInterrupt(), gem5::Intel8254Timer::Counter::CounterEvent::clocksLeft(), gem5::minor::Execute::commit(), gem5::o3::Commit::commitHead(), gem5::ruby::GPUCoalescer::completeHitCallback(), gem5::MemTest::completeRequest(), gem5::o3::LSQUnit::completeStore(), gem5::SMMUTranslationProcess::completeTransaction(), gem5::PowerState::computeStats(), gem5::memory::DRAMInterface::Rank::computeStats(), gem5::sinic::Base::cpuInterrupt(), gem5::NSGigE::cpuInterrupt(), gem5::sinic::Base::cpuIntrPost(), gem5::NSGigE::cpuIntrPost(), gem5::IGbE::cpuPostInt(), gem5::CPUProgressEvent::CPUProgressEvent(), gem5::TraceCPU::dcacheRetryRecvd(), gem5::o3::Decode::decodeInsts(), gem5::PacketQueue::deferredPacketReady(), gem5::MSHR::delay(), gem5::prefetch::BOP::delayQueueEventWrapper(), gem5::ruby::MessageBuffer::dequeue(), gem5::memory::SimpleMemory::dequeue(), gem5::memory::CfiMemory::dequeue(), gem5::sinic::Device::devIntrChangeMask(), gem5::NSGigE::devIntrChangeMask(), gem5::sinic::Device::devIntrPost(), gem5::NSGigE::devIntrPost(), gem5::Linux::devRandom(), gem5::GPUDispatcher::dispatch(), gem5::o3::IEW::dispatchInsts(), gem5::Shader::dispatchWorkgroups(), gem5::Pl111::dmaDone(), gem5::DmaVirtDevice::dmaVirt(), gem5::SMMUProcess::doBroadcastSignal(), gem5::memory::DRAMInterface::doBurstAccess(), gem5::memory::NVMInterface::doBurstAccess(), gem5::IdeDisk::doDmaDataRead(), gem5::IdeDisk::doDmaDataWrite(), gem5::IdeDisk::doDmaRead(), gem5::IdeDisk::doDmaTransfer(), gem5::IdeDisk::doDmaWrite(), gem5::ArmISA::TableWalker::doL1DescriptorWrapper(), gem5::ArmISA::TableWalker::doL2DescriptorWrapper(), gem5::ArmISA::TableWalker::doLongDescriptorWrapper(), gem5::SMMUProcess::doSemaphoreUp(), doSimLoop(), gem5::ThermalModel::doStep(), gem5::ruby::StoreTrace::downgrade(), gem5::memory::MemCtrl::drain(), gem5::PCEventQueue::dump(), gem5::Trace::TarmacParserRecord::dump(), gem5::EventQueue::dump(), gem5::CheckerCPU::dumpAndExit(), gem5::EtherDump::dumpPacket(), gem5::pseudo_inst::dumpresetstats(), gem5::pseudo_inst::dumpstats(), gem5::LdsState::earliestReturnTime(), gem5::RegisterFile::enqRegBusyEvent(), gem5::RegisterFile::enqRegFreeEvent(), gem5::EtherSwitch::Interface::enqueue(), gem5::TraceGen::enter(), gem5::Event::Event(), gem5::GlobalMemPipeline::exec(), gem5::GPUDispatcher::exec(), gem5::Shader::execScheduledAdds(), gem5::TraceCPU::ElasticDataGen::execute(), exitSimLoop(), gem5::o3::Fetch::fetch(), gem5::IGbE::DescCache< igbreg::RxDesc >::fetchDescriptors(), gem5::IGbE::DescCache< igbreg::RxDesc >::fetchDescriptors1(), gem5::o3::ElasticTrace::fetchReqTrace(), gem5::GoodbyeObject::fillBuffer(), gem5::UFSHostDevice::finalUTP(), gem5::minor::LSQ::SplitDataRequest::finish(), gem5::o3::Fetch::finishTranslation(), gem5::ArmISA::flattenIntRegModeIndex(), gem5::ruby::garnet::NetworkInterface::flitisizeMessage(), gem5::memory::DRAMInterface::Rank::flushCmdList(), gem5::compression::FrequentValues::generateCodes(), gem5::CacheBlk::getAge(), getElapsedTimeMicro(), getElapsedTimeNano(), gem5::Queue< WriteQueueEntry >::getNext(), gem5::BaseCache::getNextQueueEntry(), gem5::prefetch::Multi::getPacket(), gem5::PowerState::getWeights(), gem5::MipsISA::haltThread(), gem5::MipsISA::handleLockedWrite(), gem5::RiscvISA::handleLockedWrite(), gem5::Checker< gem5::RefCountingPtr >::handlePendingInt(), gem5::MemTraceProbe::handleRequest(), gem5::DmaPort::handleResp(), gem5::ArmISA::TableWalker::Port::handleResp(), gem5::SimpleCache::handleResponse(), gem5::MSHR::handleSnoop(), gem5::X86ISA::GpuTLB::handleTranslationReturn(), gem5::ruby::garnet::OutputUnit::has_credit(), gem5::ruby::garnet::OutputUnit::has_free_vc(), gem5::DmaThread::hitCallback(), gem5::GpuWavefront::hitCallback(), gem5::ruby::RubyPort::MemResponsePort::hitCallback(), gem5::RubyDirectedTester::hitCallback(), gem5::TraceCPU::icacheRetryRecvd(), gem5::ruby::AbstractController::incomingTransactionEnd(), gem5::ruby::AbstractController::incomingTransactionStart(), increaseTick(), gem5::ruby::garnet::NetworkInterface::incrementStats(), gem5::ComputeUnit::injectGlobalMemFence(), gem5::prefetch::Queued::insert(), gem5::BaseTags::insertBlock(), gem5::prefetch::BOP::insertIntoDelayQueue(), gem5::GPUComputeDriver::ioctl(), gem5::minor::Execute::issue(), gem5::LocalMemPipeline::issueRequest(), gem5::ruby::VIPERCoalescer::issueRequest(), gem5::GlobalMemPipeline::issueRequest(), gem5::ruby::Sequencer::issueRequest(), gem5::X86ISA::GpuTLB::issueTLBLookup(), gem5::EtherSwitch::Interface::learnSenderAddr(), gem5::BaseRemoteGDB::listen(), gem5::memory::qos::MemCtrl::logRequest(), gem5::memory::qos::MemCtrl::logResponse(), gem5::EtherSwitch::Interface::lookupDestPort(), gem5::UFSHostDevice::LUNSignal(), gem5::pseudo_inst::m5checkpoint(), gem5::pseudo_inst::m5exit(), gem5::pseudo_inst::m5fail(), gem5::SMMUTranslationProcess::main(), gem5::ruby::GPUCoalescer::makeRequest(), gem5::ruby::RubySystem::memWriteback(), gem5::memory::DRAMInterface::minBankPrep(), sc_gem5::Gem5ToTlmBridge< BITWIDTH >::nb_transport_bw(), gem5::TraceCPU::FixedRetryGen::nextExecute(), gem5::RandomGen::nextPacketTick(), gem5::LinearGen::nextPacketTick(), gem5::StridedGen::nextPacketTick(), gem5::HybridGen::nextPacketTick(), gem5::TraceGen::nextPacketTick(), gem5::Shader::notifyCuSleep(), gem5::prefetch::SBOOE::notifyFill(), gem5::GPUDispatcher::notifyWgCompl(), gem5::BaseXBar::Layer< RequestPort, ResponsePort >::occupyLayer(), gem5::free_bsd::onUDelay(), gem5::linux::onUDelay(), gem5::Linux::openSpecialFile(), gem5::CacheBlk::operator=(), gem5::ruby::AbstractController::outgoingTransactionEnd(), gem5::ruby::AbstractController::outgoingTransactionStart(), gem5::DistIface::packetOut(), gem5::ArmISA::TableWalker::pendingChange(), gem5::DVFSHandler::perfLevel(), gem5::statistics::periodicStatDump(), gem5::IGbE::RxDescCache::pktComplete(), gem5::IGbE::TxDescCache::pktComplete(), gem5::DistIface::RecvScheduler::popPacket(), gem5::IGbE::postInterrupt(), gem5::BaseSimpleCPU::preExecute(), gem5::statistics::AvgStor::prepare(), gem5::statistics::AvgSampleStor::prepare(), gem5::Trace::TarmacTracerRecordV8::TraceInstEntryV8::print(), gem5::Trace::TarmacTracerRecordV8::TraceRegEntryV8::print(), gem5::Trace::TarmacTracerRecord::TraceInstEntry::print(), gem5::Trace::TarmacTracerRecord::TraceRegEntry::print(), gem5::Trace::TarmacTracerRecordV8::TraceMemEntryV8::print(), gem5::Trace::TarmacTracerRecord::TraceMemEntry::print(), gem5::Trace::TarmacParserRecord::printMismatchHeader(), gem5::MC146818::RTCEvent::process(), gem5::GlobalSimLoopExitEvent::process(), gem5::MC146818::RTCTickEvent::process(), gem5::statistics::StatEvent::process(), gem5::CPUProgressEvent::process(), gem5::ArmISA::DumpStats::process(), gem5::GlobalSyncEvent::process(), gem5::DistIface::SyncEvent::process(), gem5::memory::DRAMInterface::Rank::processActivateEvent(), gem5::HelloObject::processEvent(), gem5::Uart8250::processIntrEvent(), gem5::ComputeUnit::DataPort::processMemRespEvent(), gem5::memory::qos::MemSinkCtrl::processNextReqEvent(), gem5::memory::MemCtrl::processNextReqEvent(), gem5::memory::DRAMInterface::Rank::processPowerEvent(), gem5::memory::DRAMInterface::Rank::processPrechargeEvent(), gem5::TLBCoalescer::processProbeTLBEvent(), gem5::memory::NVMInterface::processReadReadyEvent(), gem5::memory::DRAMInterface::Rank::processRefreshEvent(), gem5::memory::MemCtrl::processRespondEvent(), gem5::EtherLink::Link::processTxQueue(), gem5::memory::DRAMInterface::Rank::processWakeUpEvent(), gem5::ArmISA::TableWalker::processWalk(), gem5::ArmISA::TableWalker::processWalkAArch64(), gem5::ArmISA::TableWalker::processWalkLPAE(), gem5::ArmISA::TableWalker::processWalkWrapper(), gem5::memory::NVMInterface::processWriteRespondEvent(), gem5::MSHR::promoteDeferredTargets(), gem5::Plic::propagateOutput(), gem5::memory::MemCtrl::pruneBurstTick(), gem5::MemChecker::ByteTracker::pruneTransactions(), gem5::EtherSwitch::Interface::PortFifo::push(), gem5::PowerDomain::pwrStateChangeCallback(), pybind_init_core(), gem5::memory::qos::MemCtrl::qosSchedule(), gem5::pseudo_inst::quiesceNs(), gem5::PL031::read(), gem5::Sp804::Timer::read(), gem5::CpuLocalTimer::Timer::read(), gem5::RealViewCtrl::read(), gem5::o3::LSQUnit::read(), gem5::UFSHostDevice::readCallback(), gem5::memory::DRAMSim2::readComplete(), gem5::AMDGPUDevice::readConfig(), gem5::Pl111::readFramebuffer(), gem5::CheckerCPU::readMem(), gem5::X86ISA::Interrupts::readReg(), gem5::o3::ElasticTrace::recordExecTick(), gem5::ruby::Sequencer::recordMissLatency(), gem5::o3::ElasticTrace::recordToCommTick(), gem5::BaseCache::recvAtomic(), gem5::TLBCoalescer::MemSidePort::recvReqRetry(), gem5::StubSlavePort::recvTimingReq(), gem5::SimpleTimingPort::recvTimingReq(), gem5::ruby::RubyPort::MemResponsePort::recvTimingReq(), gem5::MemDelay::ResponsePort::recvTimingReq(), gem5::TLBCoalescer::CpuSidePort::recvTimingReq(), sc_gem5::Gem5ToTlmBridge< BITWIDTH >::recvTimingReq(), gem5::memory::SimpleMemory::recvTimingReq(), gem5::MemCheckerMonitor::recvTimingReq(), gem5::CommMonitor::recvTimingReq(), gem5::memory::qos::MemSinkCtrl::recvTimingReq(), gem5::memory::CfiMemory::recvTimingReq(), gem5::memory::MemCtrl::recvTimingReq(), gem5::ruby::RubyPort::MemRequestPort::recvTimingResp(), gem5::MemDelay::RequestPort::recvTimingResp(), gem5::BaseTrafficGen::recvTimingResp(), gem5::ruby::RubyPort::PioRequestPort::recvTimingResp(), gem5::NoncoherentXBar::recvTimingResp(), gem5::MemCheckerMonitor::recvTimingResp(), gem5::CommMonitor::recvTimingResp(), gem5::X86ISA::GpuTLB::MemSidePort::recvTimingResp(), gem5::CoherentXBar::recvTimingResp(), gem5::ComputeUnit::DataPort::recvTimingResp(), gem5::BaseCache::recvTimingResp(), gem5::ComputeUnit::DTLBPort::recvTimingResp(), gem5::MemDelay::ResponsePort::recvTimingSnoopResp(), gem5::CoherentXBar::recvTimingSnoopResp(), gem5::o3::ElasticTrace::regEtraceListeners(), gem5::o3::ElasticTrace::regProbeListeners(), gem5::UFSHostDevice::requestHandler(), gem5::ruby::BankedArray::reserve(), gem5::replacement_policy::BIP::reset(), gem5::replacement_policy::LRU::reset(), gem5::replacement_policy::FIFO::reset(), gem5::replacement_policy::MRU::reset(), gem5::statistics::AvgStor::reset(), gem5::Clocked::resetClock(), gem5::Root::RootStats::resetStats(), gem5::pseudo_inst::resetstats(), gem5::memory::DRAMInterface::Rank::resetStats(), gem5::memory::DRAMInterface::DRAMStats::resetStats(), gem5::memory::DRAMInterface::respondEvent(), gem5::Sp805::restartCounter(), gem5::Sp804::Timer::restartCounter(), gem5::CpuLocalTimer::Timer::restartTimerCounter(), gem5::CpuLocalTimer::Timer::restartWatchdogCounter(), gem5::MipsISA::restoreThread(), gem5::statistics::AvgStor::result(), gem5::BasePixelPump::PixelEvent::resume(), gem5::DistIface::RecvScheduler::resumeRecvTicks(), gem5::SMMUTranslationProcess::resumeTransaction(), gem5::PL031::resyncMatch(), gem5::EtherTapBase::retransmit(), gem5::BaseTrafficGen::retryReq(), gem5::Root::RootStats::RootStats(), gem5::pseudo_inst::rpns(), gem5::ruby::HTMSequencer::rubyHtmCallback(), gem5::DistIface::SyncNode::run(), gem5::DistIface::SyncSwitch::run(), gem5::sinic::Device::rxKick(), gem5::NSGigE::rxKick(), gem5::CommMonitor::samplePeriodic(), gem5::HSAPacketProcessor::schedAQLProcessing(), gem5::TraceCPU::schedIcacheNext(), schedRelBreak(), gem5::PacketQueue::schedSendEvent(), gem5::PacketQueue::schedSendTiming(), gem5::Shader::ScheduleAdd(), gem5::GPUDispatcher::scheduleDispatch(), gem5::MC146818::RTCEvent::scheduleIntr(), gem5::Uart8250::scheduleIntr(), gem5::ruby::garnet::NetworkInterface::scheduleOutputPort(), gem5::memory::DRAMInterface::Rank::schedulePowerEvent(), gem5::o3::InstructionQueue::scheduleReadyInsts(), gem5::BaseTrafficGen::scheduleUpdate(), gem5::GPUComputeDriver::DriverWakeupEvent::scheduleWakeup(), gem5::memory::DRAMInterface::Rank::scheduleWakeUpEvent(), gem5::HWScheduler::schedWakeup(), gem5::ruby::garnet::OutputUnit::select_free_vc(), gem5::Iris::ThreadContext::semihostingEvent(), gem5::EtherBus::send(), gem5::ruby::garnet::SwitchAllocator::send_allowed(), gem5::X86ISA::IntRequestPort< gem5::X86ISA::I82094AA >::sendMessage(), gem5::ComputeUnit::sendRequest(), gem5::memory::DRAMSim2::sendResponse(), gem5::memory::DRAMsim3::sendResponse(), gem5::EtherTapBase::sendSimulated(), gem5::ArmISA::TableWalker::Port::sendTimingReq(), gem5::Globals::serialize(), gem5::MC146818::serialize(), gem5::Intel8254Timer::Counter::serialize(), gem5::sinic::Device::serialize(), gem5::NSGigE::serialize(), gem5::PowerState::set(), gem5::statistics::AvgStor::set(), gem5::Request::setAccessLatency(), gem5::CheckpointIn::setDir(), gem5::Pl011::setInterrupts(), gem5::ruby::CacheMemory::setMRU(), gem5::X86ISA::Interrupts::setReg(), gem5::Wavefront::setStatus(), gem5::CacheBlk::setTickInserted(), gem5::Intel8254Timer::Counter::CounterEvent::setTo(), gem5::Request::setTranslateLatency(), gem5::Request::setVirt(), gem5::Event::setWhen(), simulate(), gem5::SMMUTranslationProcess::smmuTranslation(), gem5::o3::Rename::sortInsts(), gem5::DistIface::SyncEvent::start(), gem5::IdeDisk::startDma(), sc_gem5::Kernel::startup(), gem5::CommMonitor::startup(), gem5::BaseKvmCPU::startup(), gem5::ruby::RubySystem::startup(), gem5::ThermalModel::startup(), gem5::MC146818::startup(), gem5::Intel8254Timer::Counter::startup(), gem5::memory::DRAMSim2::startup(), gem5::memory::DRAMsim3::startup(), gem5::memory::DRAMInterface::Rank::startup(), gem5::memory::MemCtrl::startup(), gem5::memory::DRAMInterface::startup(), gem5::ruby::StoreTrace::store(), gem5::o3::ThreadContext::suspend(), gem5::SimpleThread::suspend(), gem5::BasePixelPump::PixelEvent::suspend(), takeCheckpoint(), TEST(), gem5::ruby::CacheMemory::testCacheAccess(), gem5::GarnetSyntheticTraffic::tick(), gem5::AtomicSimpleCPU::tick(), gem5::IGbE::tick(), gem5::memory::DRAMSim2::tick(), gem5::memory::DRAMsim3::tick(), gem5::BaseKvmCPU::tick(), timesFunc(), gem5::Root::timeSync(), gem5::Root::timeSyncEnable(), gem5::replacement_policy::LRU::touch(), gem5::replacement_policy::MRU::touch(), gem5::BaseCPU::traceFunctionsInternal(), gem5::Trace::InstPBTrace::traceInst(), gem5::BaseTrafficGen::transition(), gem5::prefetch::Queued::translationComplete(), gem5::X86ISA::GpuTLB::translationReturn(), gem5::EtherLink::Link::transmit(), gem5::DistEtherLink::TxLink::transmit(), gem5::EtherSwitch::Interface::transmit(), gem5::NSGigE::transmit(), gem5::ruby::BankedArray::tryAccess(), gem5::ruby::CacheMemory::tryCacheAccess(), gem5::SerialLink::SerialLinkResponsePort::trySendTiming(), gem5::Bridge::BridgeResponsePort::trySendTiming(), gem5::SerialLink::SerialLinkRequestPort::trySendTiming(), gem5::Bridge::BridgeRequestPort::trySendTiming(), gem5::EtherLink::Link::txDone(), gem5::sinic::Device::txKick(), gem5::NSGigE::txKick(), gem5::sinic::Device::unserialize(), gem5::NSGigE::unserialize(), gem5::Clocked::update(), gem5::BaseTrafficGen::update(), gem5::o3::ElasticTrace::updateCommitOrderDep(), gem5::statistics::updateEvents(), gem5::o3::IEW::updateExeInstStats(), gem5::VGic::updateIntState(), gem5::GicV2::updateIntState(), gem5::GPUDispatcher::updateInvCounter(), gem5::o3::ElasticTrace::updateIssueOrderDep(), gem5::X86ISA::GpuTLB::updatePageFootprint(), gem5::TLBCoalescer::updatePhysAddresses(), gem5::memory::DRAMInterface::Rank::updatePowerStats(), gem5::CommMonitor::MonitorStats::updateReqStats(), gem5::SystemCounter::updateTick(), gem5::SystemCounter::updateValue(), gem5::Checker< gem5::RefCountingPtr >::validateExecution(), gem5::Checker< gem5::RefCountingPtr >::validateInst(), gem5::Checker< gem5::RefCountingPtr >::validateState(), gem5::Checker< gem5::RefCountingPtr >::verify(), gem5::HDLcd::virtRefresh(), gem5::o3::InstructionQueue::wakeDependents(), gem5::ruby::garnet::CrossbarSwitch::wakeup(), gem5::ruby::garnet::InputUnit::wakeup(), gem5::ruby::garnet::OutputUnit::wakeup(), gem5::ruby::garnet::NetworkBridge::wakeup(), gem5::ruby::garnet::NetworkLink::wakeup(), gem5::ruby::garnet::NetworkInterface::wakeup(), gem5::ruby::garnet::Router::wakeup(), gem5::RubyDirectedTester::wakeup(), gem5::RubyTester::wakeup(), gem5::ruby::GPUCoalescer::wakeup(), gem5::ArmISA::TableWalker::walk(), gem5::SystemCounter::whenValue(), gem5::System::workItemBegin(), gem5::System::workItemEnd(), gem5::PL031::write(), gem5::EnergyCtrl::write(), gem5::UFSHostDevice::write(), gem5::IGbE::DescCache< igbreg::RxDesc >::writeback(), gem5::IGbE::DescCache< igbreg::RxDesc >::writeback1(), gem5::o3::LSQUnit::writebackStores(), gem5::memory::DRAMSim2::writeComplete(), gem5::MC146818::writeData(), gem5::UFSHostDevice::writeDevice(), gem5::Uart8250::writeIer(), gem5::CheckerCPU::writeMem(), and gem5::MipsISA::yieldThread().
void gem5::cxxConfigInit | ( | ) |
Initialise cxx_config_directory.
This is defined in the auto-generated .../cxx_config/init.cc
void gem5::debug_serialize | ( | const std::string & | cpt_dir | ) |
Definition at line 216 of file sim_object.cc.
References gem5::SimObject::serializeAll().
void gem5::debugDumpStats | ( | ) |
Definition at line 332 of file statistics.cc.
References gem5::statistics::dump().
int gem5::divideFromConf | ( | uint32_t | conf | ) |
Definition at line 70 of file interrupts.cc.
References gem5::ArmISA::shift.
Referenced by gem5::X86ISA::Interrupts::readReg(), and gem5::X86ISA::Interrupts::setReg().
void gem5::do_test | ( | int | seconds | ) |
void gem5::doExitCleanup | ( | ) |
Do C++ simulator exit processing.
Exported to Python to be invoked when simulator terminates via Python's atexit mechanism.
Definition at line 156 of file core.cc.
References exitCallbacks(), and gem5::CallbackQueue::process().
Referenced by pybind_init_core().
Event * gem5::doSimLoop | ( | EventQueue * | eventq | ) |
forward declaration
The main per-thread simulation loop.
This loop is executed by all simulation threads (the main thread and the subordinate threads) in parallel.
Definition at line 180 of file simulate.cc.
References async_event, async_exception, async_exit, async_io, async_statdump, async_statreset, curEventQueue(), curTick(), gem5::EventQueue::empty(), exitSimLoop(), gem5::EventQueue::handleAsyncInsertions(), gem5::X86ISA::lock, gem5::EventQueue::nextTick(), pollQueue, gem5::statistics::schedStatEvent(), gem5::PollQueue::service(), gem5::EventQueue::serviceOne(), and testAndClearAsyncEvent().
Referenced by simulate(), and thread_loop().
void gem5::dumpDebugFlags | ( | std::ostream & | os | ) |
Definition at line 175 of file debug.cc.
References gem5::debug::allFlags(), ccprintf(), gem5::ArmISA::f, gem5::ArmISA::i, and gem5::X86ISA::os.
Referenced by TEST().
|
static |
Definition at line 60 of file helpers.cc.
References gem5::X86ISA::base, gem5::PowerISA::bo, ccprintf(), gem5::X86ISA::de, gem5::ArmISA::e, gtoh(), gem5::X86ISA::os, and warn.
Referenced by gem5::linux::dumpDmesg().
|
static |
Definition at line 267 of file x86_cpu.cc.
References gem5::X86ISA::BusyBit, gem5::X86ISA::CC0Bit, gem5::X86ISA::CC1Bit, gem5::X86ISA::CC2Bit, gem5::X86ISA::CC3Bit, gem5::X86ISA::DEBit, dumpFpuSpec(), gem5::X86ISA::ErrSummaryBit, gem5::ArmISA::i, gem5::X86ISA::IEBit, inform, gem5::ArmISA::j, gem5::X86ISA::loadFloat80(), gem5::X86ISA::OEBit, gem5::X86ISA::PEBit, gem5::X86ISA::StackFaultBit, gem5::X86ISA::UEBit, and gem5::X86ISA::ZEBit.
Referenced by dumpKvm().
|
static |
Definition at line 251 of file x86_cpu.cc.
References inform, and gem5::RiscvISA::xs.
Referenced by dumpFpuCommon().
|
static |
Definition at line 259 of file x86_cpu.cc.
References inform.
|
static |
Definition at line 203 of file x86_cpu.cc.
References inform.
|
static |
Definition at line 193 of file x86_cpu.cc.
References inform, and gem5::X86ISA::seg.
|
static |
Definition at line 317 of file x86_cpu.cc.
References dumpFpuCommon(), and inform.
|
static |
Definition at line 331 of file x86_cpu.cc.
References gem5::X86ISA::e, gem5::ArmISA::i, and inform.
|
static |
Definition at line 177 of file x86_cpu.cc.
References FOREACH_IREG, and inform.
Referenced by gem5::X86KvmCPU::dumpDebugRegs(), gem5::X86KvmCPU::dumpFpuRegs(), gem5::X86KvmCPU::dumpIntRegs(), gem5::X86KvmCPU::dumpMSRs(), gem5::X86KvmCPU::dumpSpecRegs(), gem5::X86KvmCPU::dumpVCpuEvents(), gem5::X86KvmCPU::dumpXCRs(), and gem5::X86KvmCPU::dumpXSave().
|
static |
Definition at line 210 of file x86_cpu.cc.
References FOREACH_DTABLE, FOREACH_SEGMENT, FOREACH_SREG, gem5::ArmISA::i, and inform.
|
static |
Definition at line 356 of file x86_cpu.cc.
References inform.
|
static |
Definition at line 343 of file x86_cpu.cc.
References gem5::ArmISA::i, and inform.
|
static |
Definition at line 324 of file x86_cpu.cc.
References dumpFpuCommon(), and inform.
void gem5::dumpMainQueue | ( | ) |
Definition at line 364 of file eventq.cc.
References gem5::ArmISA::i, mainEventQueue, and numMainEventQueues.
void gem5::dumprstStatsHandler | ( | int | sigtype | ) |
Definition at line 124 of file init_signals.cc.
References async_event, async_statdump, async_statreset, getEventQueue(), and gem5::EventQueue::wakeup().
Referenced by initSignals().
std::string gem5::dumpSimcall | ( | std::string | name, |
ThreadContext * | tc, | ||
Ret(*)(ThreadContext *, Args...) | target | ||
) |
Definition at line 126 of file guest_abi.hh.
References name().
std::string gem5::dumpSimcall | ( | std::string | name, |
ThreadContext * | tc, | ||
std::function< Ret(ThreadContext *, Args...)> | target = std::function<Ret(ThreadContext *, Args...)>() |
||
) |
Definition at line 111 of file guest_abi.hh.
References gem5::guest_abi::dumpArgsFrom(), name(), gem5::guest_abi::prepareForFunction(), and ss.
Referenced by gem5::SyscallDescABI< ABI >::buildDumper(), and gem5::ArmSemihosting::SemiCall::buildDumper().
void gem5::dumpStatsHandler | ( | int | sigtype | ) |
Stats signal handler.
Definition at line 115 of file init_signals.cc.
References async_event, async_statdump, getEventQueue(), and gem5::EventQueue::wakeup().
Referenced by initSignals().
SyscallReturn gem5::dup2Func | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | old_tgt_fd, | ||
int | new_tgt_fd | ||
) |
Target dup2() handler.
We need a valid host file descriptor number to be able to pass into the second parameter for dup2 (newfd), but we don't know what the viable numbers are; we execute the open call to retrieve one.
Definition at line 690 of file syscall_emul.cc.
References gem5::ThreadContext::getProcessPtr(), and gem5::MipsISA::p.
SyscallReturn gem5::dupFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | tgt_fd | ||
) |
FIXME: The file description is not shared among file descriptors created with dup.
Target dup() handler.
Really, it's difficult to maintain fields like file offset or flags since an update to such a field won't be reflected in the metadata for the fd entries that we maintain for checkpoint restoration.
Definition at line 670 of file syscall_emul.cc.
References gem5::ThreadContext::getProcessPtr(), and gem5::MipsISA::p.
Referenced by gem5::ArmISA::SyscallTable32::SyscallTable32(), and gem5::ArmISA::SyscallTable64::SyscallTable64().
|
inline |
Definition at line 59 of file str.hh.
References gem5::ArmISA::s.
Referenced by eat_white(), gem5::IniFile::load(), and TEST().
|
inline |
Definition at line 49 of file str.hh.
References gem5::ArmISA::s.
Referenced by eat_white(), and TEST().
|
inline |
Definition at line 67 of file str.hh.
References eat_end_white(), eat_lead_white(), and gem5::ArmISA::s.
Referenced by gem5::IniFile::Section::add(), gem5::IniFile::add(), gem5::IniFile::load(), gem5::pseudo_inst::loadsymbol(), and TEST().
bool gem5::emptyStrings | ( | const T & | labels | ) |
Check if all strings in a container are empty.
Definition at line 50 of file hdf5.cc.
References gem5::ArmISA::s.
Referenced by gem5::statistics::Hdf5::appendVectorInfo(), and gem5::statistics::Hdf5::visit().
SyscallReturn gem5::eventfdFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
unsigned | initval, | ||
int | in_flags | ||
) |
Target eventfd() function.
Definition at line 2592 of file syscall_emul.hh.
References gem5::ThreadContext::getProcessPtr(), gem5::MipsISA::p, and warnUnsupportedOS().
void gem5::eventqDump | ( | ) |
Dump all the events currently on the event queue.
Definition at line 110 of file debug.cc.
References gem5::ArmISA::i, mainEventQueue, and numMainEventQueues.
SyscallReturn gem5::execveFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
VPtr<> | pathname, | ||
VPtr<> | argv_mem_loc, | ||
VPtr<> | envp_mem_loc | ||
) |
Note that ProcessParams is generated by swig and there are no other examples of how to create anything but this default constructor. The fields are manually initialized instead of passing parameters to the constructor.
Prevent process object creation with identical PIDs (which will trip a fatal check in Process constructor). The execve call is supposed to take over the currently executing process' identity but replace whatever it is doing with a new process image. Instead of hijacking the process object in the simulator, we create a new process object and bind to the previous process' thread below (hijacking the thread).
Work through the file descriptor array and close any files marked close-on-exec.
Definition at line 1971 of file syscall_emul.hh.
References gem5::ThreadContext::activate(), gem5::Process::assignThreadContext(), gem5::ArmISA::b, gem5::ThreadContext::clearArchRegs(), gem5::ThreadContext::contextId(), gem5::Process::fds, gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), gem5::ArmISA::i, sc_dt::inc(), gem5::Process::initState(), gem5::MipsISA::p, gem5::ThreadContext::pcState(), gem5::ThreadContext::setNPC(), gem5::ThreadContext::setProcessPtr(), gem5::Process::sigchld, and gem5::PortProxy::tryReadString().
|
inline |
Queue of C++ callbacks to invoke on simulator exit.
Definition at line 136 of file core.cc.
Referenced by doExitCleanup(), and registerExitCallback().
SyscallReturn gem5::exitFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | status | ||
) |
Target exit() handler: terminate current context.
Definition at line 228 of file syscall_emul.cc.
References exitImpl(), and gem5::ArmISA::status.
Referenced by gem5::ArmISA::SyscallTable32::SyscallTable32(), and gem5::ArmISA::SyscallTable64::SyscallTable64().
|
static |
Definition at line 93 of file syscall_emul.cc.
References gem5::X86ISA::addr, gem5::BufferArg::bufferPtr(), gem5::BaseBufferArg::copyOut(), gem5::System::futexMap, gem5::ThreadContext::getSystemPtr(), gem5::ThreadContext::getVirtProxy(), and gem5::FutexMap::wakeup().
Referenced by exitImpl().
SyscallReturn gem5::exitGroupFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | status | ||
) |
Target exit_group() handler: terminate simulation. (exit all threads)
Definition at line 234 of file syscall_emul.cc.
References exitImpl(), and gem5::ArmISA::status.
Referenced by gem5::ArmISA::SyscallTable32::SyscallTable32(), gem5::ArmISA::SyscallTable64::SyscallTable64(), and tgkillFunc().
|
static |
Threads in a thread group require special handing. For instance, we send the SIGCHLD signal so that it appears that it came from the head of the group. We also only delete file descriptors if we are the last thread in the thread group.
Check if we share thread group with the pointer; this denotes that we are not the last thread active in the thread group. Note that setting this to false also prevents further iterations of the loop.
If p is trying to exit_group and both walk and p are in the same thread group (i.e., sharing the same tgid), we need to halt walk's thread context. After all threads except p are halted, p becomes the last thread in the group.
If p is not doing exit_group and there exists another active thread context in the group, last_thread is set to false to prevent the parent thread from killing all threads in the group.
A corner case exists which involves execve(). After execve(), the execve will enable SIGCHLD in the process. The problem occurs when the exiting process is the root process in the system; there is no parent to receive the signal. We obviate this problem by setting the root process' ppid to zero in the Python configuration files. We really should handle the root/execve specific case more gracefully.
Run though FD array of the exiting process and close all file descriptors except for the standard file descriptors. (The standard file descriptors are shared with gem5.)
check to see if there is no more active thread in the system. If so, exit the simulation loop
Even though we are terminating the final thread context, dist-gem5 requires the simulation to remain active and provide synchronization messages to the switch process. So we just halt the last thread context and return. The simulation will be terminated by dist-gem5 in a coordinated manner once all nodes have signaled their readiness to exit. For non dist-gem5 simulations, readyToExit() always returns true.
Definition at line 107 of file syscall_emul.cc.
References exitFutexWake(), exitSimLoop(), gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getSystemPtr(), gem5::ThreadContext::halt(), gem5::ThreadContext::Halted, gem5::ThreadContext::Halting, gem5::ArmISA::i, gem5::MipsISA::p, gem5::Process::pid(), gem5::DistIface::readyToExit(), gem5::System::signalList, gem5::System::Threads::size(), gem5::ThreadContext::status(), gem5::ArmISA::status, gem5::X86ISA::system, gem5::System::systemList, gem5::Process::tgid(), and gem5::System::threads.
Referenced by exitFunc(), and exitGroupFunc().
void gem5::exitNowHandler | ( | int | sigtype | ) |
Exit signal handler.
Definition at line 135 of file init_signals.cc.
References async_event, async_exit, getEventQueue(), and gem5::EventQueue::wakeup().
Referenced by initSignals().
void gem5::exitSimLoop | ( | const std::string & | message, |
int | exit_code = 0 , |
||
Tick | when = curTick() , |
||
Tick | repeat = 0 , |
||
bool | serialize = false |
||
) |
Schedule an event to exit the simulation loop (returning to Python) at the end of the current cycle (curTick()).
The message and exit_code parameters are saved in the SimLoopExitEvent to indicate why the exit occurred.
Definition at line 88 of file sim_events.cc.
References curTick(), serialize(), simQuantum, and warn_if.
Referenced by gem5::TraceCPU::checkAndSchedExitEvent(), gem5::ProtocolTester::checkExit(), gem5::MemTest::completeRequest(), doSimLoop(), gem5::Trace::TarmacParserRecord::dump(), gem5::ExitGen::enter(), exitImpl(), gem5::GoodbyeObject::fillBuffer(), gem5::BaseCache::incMissCount(), gem5::pseudo_inst::m5checkpoint(), gem5::pseudo_inst::m5exit(), gem5::pseudo_inst::m5fail(), gem5::LocalSimLoopExitEvent::process(), gem5::Trace::TarmacParserRecord::TarmacParserRecordEvent::process(), gem5::CountedExitEvent::process(), gem5::DistIface::SyncEvent::process(), pybind_init_event(), gem5::AMDGPUDevice::readConfig(), gem5::DistIface::recvThreadFunc(), gem5::ArmSemihosting::semiExit(), gem5::TCPIface::sendTCP(), gem5::DrainManager::signalDrainDone(), gem5::pseudo_inst::switchcpu(), takeCheckpoint(), gem5::GarnetSyntheticTraffic::tick(), gem5::ComputeUnit::updateInstStats(), gem5::RubyDirectedTester::wakeup(), gem5::RubyTester::wakeup(), gem5::pseudo_inst::workbegin(), gem5::pseudo_inst::workend(), gem5::SimpleUart::write(), and gem5::Pl011::write().
void gem5::exitSimLoopNow | ( | const std::string & | message, |
int | exit_code, | ||
Tick | repeat, | ||
bool | serialize | ||
) |
Schedule an event as above, but make it high priority so it runs before any normal events which are schedule at the current time.
Definition at line 99 of file sim_events.cc.
Referenced by sc_gem5::Scheduler::pause(), and sc_gem5::Scheduler::stop().
SyscallReturn gem5::faccessatFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | dirfd, | ||
VPtr<> | pathname, | ||
int | mode | ||
) |
Target facessat() handler.
Definition at line 927 of file syscall_emul.hh.
References accessFunc(), gem5::ArmISA::mode, and warn.
SyscallReturn gem5::fallocateFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | tgt_fd, | ||
int | mode, | ||
off_t | offset, | ||
off_t | len | ||
) |
Definition at line 976 of file syscall_emul.cc.
References gem5::ThreadContext::getProcessPtr(), gem5::ArmISA::len, gem5::ArmISA::mode, gem5::ArmISA::offset, gem5::MipsISA::p, and warnUnsupportedOS().
SyscallReturn gem5::fchmodFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | tgt_fd, | ||
uint32_t | mode | ||
) |
Target fchmod() handler.
Definition at line 1079 of file syscall_emul.hh.
References gem5::ThreadContext::getProcessPtr(), gem5::ArmISA::mode, and gem5::MipsISA::p.
SyscallReturn gem5::fchownFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | tgt_fd, | ||
uint32_t | owner, | ||
uint32_t | group | ||
) |
Target fchown() handler.
Definition at line 645 of file syscall_emul.cc.
References gem5::ThreadContext::getProcessPtr(), and gem5::MipsISA::p.
SyscallReturn gem5::fcntl64Func | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | tgt_fd, | ||
int | cmd | ||
) |
Target fcntl64() handler.
Definition at line 760 of file syscall_emul.cc.
References gem5::ThreadContext::getProcessPtr(), gem5::MipsISA::p, and warn.
Referenced by gem5::ArmISA::SyscallTable32::SyscallTable32(), and gem5::ArmISA::SyscallTable64::SyscallTable64().
SyscallReturn gem5::fcntlFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | tgt_fd, | ||
int | cmd, | ||
guest_abi::VarArgs< int > | varargs | ||
) |
Target fcntl() handler.
Definition at line 718 of file syscall_emul.cc.
References gem5::guest_abi::VarArgs< Types >::get(), gem5::ThreadContext::getProcessPtr(), gem5::MipsISA::p, and warn.
Referenced by gem5::ArmISA::SyscallTable32::SyscallTable32(), and gem5::ArmISA::SyscallTable64::SyscallTable64().
|
static |
Definition at line 215 of file pollevent.cc.
References gem5::ArmISA::fd, and panic.
|
static |
Definition at line 204 of file pollevent.cc.
References gem5::ArmISA::fd, and panic.
Referenced by gem5::PollQueue::setupAsyncIO().
void gem5::fixClockFrequency | ( | ) |
Definition at line 87 of file core.cc.
References cprintf(), gem5::sim_clock::Frequency, gem5::sim_clock::as_float::GHz, gem5::sim_clock::as_float::Hz, gem5::sim_clock::as_float::kHz, gem5::sim_clock::as_float::MHz, gem5::sim_clock::as_float::ms, gem5::sim_clock::as_int::ms, gem5::sim_clock::as_float::ns, gem5::sim_clock::as_int::ns, gem5::sim_clock::as_float::ps, gem5::sim_clock::as_int::ps, gem5::sim_clock::as_float::s, gem5::sim_clock::as_int::s, gem5::sim_clock::as_float::us, and gem5::sim_clock::as_int::us.
Referenced by sc_core::sc_time::from_value(), and pybind_init_core().
|
inlinestatic |
Definition at line 209 of file types.hh.
References floatToBits64(), and gem5::X86ISA::val.
Referenced by gem5::guest_abi::Result< Aapcs32, Float, typename std::enable_if_t< std::is_floating_point< Float >::value > >::store(), and TEST().
|
inlinestatic |
Definition at line 210 of file types.hh.
References floatToBits32(), and gem5::X86ISA::val.
|
inlinestatic |
Definition at line 186 of file types.hh.
References gem5::ArmISA::f, gem5::ArmISA::i, gem5::ArmISA::u, and gem5::X86ISA::val.
Referenced by floatToBits(), and TEST().
|
inlinestatic |
Definition at line 198 of file types.hh.
References gem5::ArmISA::f, gem5::ArmISA::i, gem5::ArmISA::u, and gem5::X86ISA::val.
Referenced by floatToBits(), TEST(), and updateThreadContextFPUCommon().
|
static |
Definition at line 750 of file x86_cpu.cc.
References gem5::X86ISA::seg, and SEG_TYPE_BIT_ACCESSED.
Referenced by gem5::X86KvmCPU::updateKvmStateSRegs().
|
static |
Definition at line 111 of file cxx_manager.cc.
References gem5::ArmISA::i.
Referenced by gem5::CxxConfigManager::findObject(), gem5::CxxConfigManager::findObjectParams(), and gem5::CxxConfigManager::setParamVector().
SyscallReturn gem5::fstat64Func | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | tgt_fd, | ||
VPtr< typename OS::tgt_stat64 > | tgt_stat | ||
) |
Target fstat64() handler.
Definition at line 1275 of file syscall_emul.hh.
References gem5::ThreadContext::getProcessPtr(), and gem5::MipsISA::p.
SyscallReturn gem5::fstatat64Func | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | dirfd, | ||
VPtr<> | pathname, | ||
VPtr< typename OS::tgt_stat64 > | tgt_stat | ||
) |
Target fstatat64() handler.
Definition at line 1240 of file syscall_emul.hh.
References gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), gem5::PortProxy::tryReadString(), and warn.
SyscallReturn gem5::fstatfsFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | tgt_fd, | ||
VPtr< typename OS::tgt_statfs > | tgt_stat | ||
) |
Target fstatfs() handler.
Definition at line 1538 of file syscall_emul.hh.
References gem5::ThreadContext::getProcessPtr(), and gem5::MipsISA::p.
SyscallReturn gem5::fstatFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | tgt_fd, | ||
VPtr< typename OS::tgt_stat > | tgt_stat | ||
) |
Target fstat() handler.
Definition at line 1362 of file syscall_emul.hh.
References DPRINTF_SYSCALL, gem5::ThreadContext::getProcessPtr(), and gem5::MipsISA::p.
SyscallReturn gem5::ftruncate64Func | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | tgt_fd, | ||
int64_t | length | ||
) |
Target ftruncate64() handler.
Definition at line 594 of file syscall_emul.cc.
References gem5::ThreadContext::getProcessPtr(), and gem5::MipsISA::p.
Referenced by gem5::ArmISA::SyscallTable32::SyscallTable32(), and gem5::ArmISA::SyscallTable64::SyscallTable64().
SyscallReturn gem5::ftruncateFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | tgt_fd, | ||
off_t | length | ||
) |
Target ftruncate() handler.
Definition at line 559 of file syscall_emul.cc.
References gem5::ThreadContext::getProcessPtr(), and gem5::MipsISA::p.
Referenced by gem5::ArmISA::SyscallTable32::SyscallTable32(), and gem5::ArmISA::SyscallTable64::SyscallTable64().
SyscallReturn gem5::futexFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
VPtr<> | uaddr, | ||
int | op, | ||
int | val, | ||
int | timeout, | ||
VPtr<> | uaddr2, | ||
int | val3 | ||
) |
Futex system call Implemented by Daniel Sanchez Used by printf's in multi-threaded apps.
Definition at line 379 of file syscall_emul.hh.
References gem5::BufferArg::bufferPtr(), gem5::BaseBufferArg::copyIn(), gem5::BaseBufferArg::copyOut(), gem5::System::futexMap, gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getSystemPtr(), gem5::ThreadContext::getVirtProxy(), gem5::X86ISA::op, gem5::FutexMap::requeue(), gem5::FutexMap::suspend(), gem5::FutexMap::suspend_bitset(), gem5::X86ISA::val, gem5::FutexMap::wakeup(), gem5::FutexMap::wakeup_bitset(), and warn.
typedef gem5::GEM5_ALIGNED | ( | 8 | ) |
gem5::GEM5_DEPRECATED_NAMESPACE | ( | BloomFilter | , |
bloom_filter | |||
) |
gem5::GEM5_DEPRECATED_NAMESPACE | ( | Compressor | , |
compression | |||
) |
gem5::GEM5_DEPRECATED_NAMESPACE | ( | ContextSwitchTaskId | , |
context_switch_task_id | |||
) |
Special TaskIds that are used for per-context-switch stats dumps and Cache Occupancy.
Having too many tasks seems to be a problem with vector stats. 1024 seems to be a reasonable number that doesn't cause a problem with stats and is large enough to realistic benchmarks (Linux/Android boot, BBench, etc.)
gem5::GEM5_DEPRECATED_NAMESPACE | ( | CopyEngineReg | , |
copy_engine_reg | |||
) |
gem5::GEM5_DEPRECATED_NAMESPACE | ( | Debug | , |
debug | |||
) |
gem5::GEM5_DEPRECATED_NAMESPACE | ( | DecodeCache | , |
decode_cache | |||
) |
gem5::GEM5_DEPRECATED_NAMESPACE | ( | FastModel | , |
fastmodel | |||
) |
gem5::GEM5_DEPRECATED_NAMESPACE | ( | FreeBSD | , |
free_bsd | |||
) |
gem5::GEM5_DEPRECATED_NAMESPACE | ( | GuestABI | , |
guest_abi | |||
) |
gem5::GEM5_DEPRECATED_NAMESPACE | ( | iGbReg | , |
igbreg | |||
) |
gem5::GEM5_DEPRECATED_NAMESPACE | ( | Linux | , |
linux | |||
) |
gem5::GEM5_DEPRECATED_NAMESPACE | ( | Loader | , |
loader | |||
) |
gem5::GEM5_DEPRECATED_NAMESPACE | ( | Minor | , |
minor | |||
) |
gem5::GEM5_DEPRECATED_NAMESPACE | ( | Net | , |
networking | |||
) |
gem5::GEM5_DEPRECATED_NAMESPACE | ( | Prefetcher | , |
prefetch | |||
) |
gem5::GEM5_DEPRECATED_NAMESPACE | ( | ProbePoints | , |
probing | |||
) |
Name space containing shared probe point declarations.
Probe types that are shared between multiple types of SimObjects should live in this name space. This makes it possible to use a common instrumentation interface for devices such as PMUs that have different implementations in different ISAs.
gem5::GEM5_DEPRECATED_NAMESPACE | ( | Ps2 | , |
ps2 | |||
) |
gem5::GEM5_DEPRECATED_NAMESPACE | ( | PseudoInst | , |
pseudo_inst | |||
) |
gem5::GEM5_DEPRECATED_NAMESPACE | ( | ReplacementPolicy | , |
replacement_policy | |||
) |
gem5::GEM5_DEPRECATED_NAMESPACE | ( | SCMI | , |
scmi | |||
) |
gem5::GEM5_DEPRECATED_NAMESPACE | ( | SimClock | , |
sim_clock | |||
) |
These are variables that are set based on the simulator frequency.
gem5::GEM5_DEPRECATED_NAMESPACE | ( | Sinic | , |
sinic | |||
) |
gem5::GEM5_DEPRECATED_NAMESPACE | ( | Stats | , |
statistics | |||
) |
Tick gem5::getClockFrequency | ( | ) |
Definition at line 124 of file core.cc.
Referenced by pybind_init_core().
SyscallReturn gem5::getcpuFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
VPtr< uint32_t > | cpu, | ||
VPtr< uint32_t > | node, | ||
VPtr< uint32_t > | tcache | ||
) |
Definition at line 1643 of file syscall_emul.cc.
References gem5::ThreadContext::contextId(), gem5::System::getGuestByteOrder(), gem5::ThreadContext::getSystemPtr(), and htog().
Referenced by gem5::ArmISA::SyscallTable32::SyscallTable32(), and gem5::ArmISA::SyscallTable64::SyscallTable64().
SyscallReturn gem5::getcwdFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
VPtr<> | buf_ptr, | ||
unsigned long | size | ||
) |
Target getcwd() handler.
Definition at line 361 of file syscall_emul.cc.
References gem5::BufferArg::bufferPtr(), gem5::BaseBufferArg::copyOut(), gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), and gem5::MipsISA::p.
Referenced by gem5::ArmISA::SyscallTable32::SyscallTable32(), and gem5::ArmISA::SyscallTable64::SyscallTable64().
SyscallReturn gem5::getegidFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc | ||
) |
Target getegid() handler.
Definition at line 969 of file syscall_emul.cc.
References gem5::Process::egid(), and gem5::ThreadContext::getProcessPtr().
Referenced by gem5::ArmISA::SyscallTable32::SyscallTable32(), and gem5::ArmISA::SyscallTable64::SyscallTable64().
void gem5::getElapsedTimeMicro | ( | T1 & | sec, |
T2 & | usec | ||
) |
Helper function to convert current elapsed time to seconds and microseconds.
Definition at line 522 of file syscall_emul.hh.
References curTick(), and gem5::sim_clock::as_int::us.
Referenced by getrusageFunc(), gettimeofdayFunc(), and timeFunc().
void gem5::getElapsedTimeNano | ( | T1 & | sec, |
T2 & | nsec | ||
) |
Helper function to convert current elapsed time to seconds and nanoseconds.
Definition at line 535 of file syscall_emul.hh.
References curTick(), and gem5::sim_clock::as_int::ns.
Referenced by clock_gettimeFunc().
SyscallReturn gem5::geteuidFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc | ||
) |
Target geteuid() handler.
Definition at line 955 of file syscall_emul.cc.
References gem5::Process::euid(), and gem5::ThreadContext::getProcessPtr().
Referenced by gem5::ArmISA::SyscallTable32::SyscallTable32(), and gem5::ArmISA::SyscallTable64::SyscallTable64().
EventQueue * gem5::getEventQueue | ( | uint32_t | index | ) |
Function for returning eventq queue for the provided index.
The function allocates a new queue in case one does not exist for the index, provided that the index is with in bounds.
Definition at line 62 of file eventq.cc.
References csprintf(), gem5::MipsISA::index, mainEventQueue, and numMainEventQueues.
Referenced by dumprstStatsHandler(), dumpStatsHandler(), exitNowHandler(), ioHandler(), pybind_init_event(), and gem5::PollQueue::setupAsyncIO().
|
inline |
Definition at line 45 of file fenv.cc.
References gem5::ArmISA::rm, roundOps, and gem5::RiscvISA::x.
SyscallReturn gem5::getgidFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc | ||
) |
Target getgid() handler.
Definition at line 962 of file syscall_emul.cc.
References gem5::ThreadContext::getProcessPtr(), and gem5::Process::gid().
Referenced by gem5::ArmISA::SyscallTable32::SyscallTable32(), and gem5::ArmISA::SyscallTable64::SyscallTable64().
SyscallReturn gem5::gethostnameFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
VPtr<> | buf_ptr, | ||
int | name_len | ||
) |
Target gethostname() handler.
Definition at line 351 of file syscall_emul.cc.
References gem5::ThreadContext::getVirtProxy(), hostname, and name().
void gem5::getMem | ( | PacketPtr | pkt, |
MemT & | mem, | ||
Trace::InstRecord * | traceData | ||
) |
Extract the data returned from a timing mode read.
Definition at line 78 of file memhelpers.hh.
References gem5::Packet::get(), mem, and gem5::Trace::InstRecord::setData().
void gem5::getMemBE | ( | PacketPtr | pkt, |
MemT & | mem, | ||
Trace::InstRecord * | traceData | ||
) |
Definition at line 94 of file memhelpers.hh.
References mem.
void gem5::getMemLE | ( | PacketPtr | pkt, |
MemT & | mem, | ||
Trace::InstRecord * | traceData | ||
) |
Definition at line 87 of file memhelpers.hh.
References mem.
|
inlinestatic |
Definition at line 72 of file ua2005.cc.
References gem5::MipsISA::index, gem5::ArmISA::miscRegName, and gem5::SparcISA::NumMiscRegs.
Referenced by gem5::SparcISA::ISA::setFSReg().
SyscallReturn gem5::getpagesizeFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc | ||
) |
Target getpagesize() handler.
Definition at line 240 of file syscall_emul.cc.
References gem5::ThreadContext::getProcessPtr(), gem5::EmulationPageTable::pageSize(), and gem5::Process::pTable.
SyscallReturn gem5::getpeernameFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | tgt_fd, | ||
VPtr<> | sockAddrPtr, | ||
VPtr<> | addrlenPtr | ||
) |
Definition at line 1595 of file syscall_emul.cc.
References gem5::BufferArg::bufferPtr(), gem5::BaseBufferArg::copyIn(), gem5::BaseBufferArg::copyOut(), gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), and gem5::MipsISA::p.
SyscallReturn gem5::getpgrpFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc | ||
) |
Target getpgrpFunc() handler.
Definition at line 886 of file syscall_emul.cc.
References gem5::ThreadContext::getProcessPtr(), and gem5::Process::pgid().
SyscallReturn gem5::getpidFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc | ||
) |
Target getpid() handler.
Definition at line 927 of file syscall_emul.cc.
References gem5::ThreadContext::getProcessPtr(), and gem5::Process::tgid().
Referenced by gem5::ArmISA::SyscallTable32::SyscallTable32(), and gem5::ArmISA::SyscallTable64::SyscallTable64().
SyscallReturn gem5::getppidFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc | ||
) |
Target getppid() handler.
Definition at line 941 of file syscall_emul.cc.
References gem5::ThreadContext::getProcessPtr(), and gem5::Process::ppid().
Referenced by gem5::ArmISA::SyscallTable32::SyscallTable32(), and gem5::ArmISA::SyscallTable64::SyscallTable64().
int gem5::getRemoteGDBPort | ( | ) |
Definition at line 120 of file debug.cc.
References remote_gdb_base_port.
Referenced by gem5::BaseRemoteGDB::build().
SyscallReturn gem5::getrlimitFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
unsigned | resource, | ||
VPtr< typename OS::rlimit > | rlp | ||
) |
Target getrlimit() handler.
Definition at line 1829 of file syscall_emul.hh.
References gem5::PowerISA::bo, gem5::ArmISA::byteOrder(), gem5::ThreadContext::getSystemPtr(), htog(), gem5::System::Threads::size(), gem5::System::threads, and warn.
SyscallReturn gem5::getrusageFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | who, | ||
VPtr< typename OS::rusage > | rup | ||
) |
Target getrusage() function.
Definition at line 2060 of file syscall_emul.hh.
References gem5::ArmISA::byteOrder(), getElapsedTimeMicro(), htog(), and warn.
SyscallReturn gem5::getsocknameFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | tgt_fd, | ||
VPtr<> | addrPtr, | ||
VPtr<> | lenPtr | ||
) |
Definition at line 1558 of file syscall_emul.cc.
References gem5::BufferArg::bufferPtr(), gem5::BaseBufferArg::copyIn(), gem5::BaseBufferArg::copyOut(), gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), gem5::ArmISA::len, gem5::MipsISA::p, gem5::ArmISA::sa, and gem5::ArmISA::status.
SyscallReturn gem5::getsockoptFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | tgt_fd, | ||
int | level, | ||
int | optname, | ||
VPtr<> | valPtr, | ||
VPtr<> | lenPtr | ||
) |
Definition at line 1518 of file syscall_emul.cc.
References gem5::BufferArg::bufferPtr(), gem5::BaseBufferArg::copyOut(), gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), gem5::ArmISA::len, gem5::X86ISA::level, gem5::MipsISA::p, gem5::ArmISA::status, and gem5::X86ISA::val.
SyscallReturn gem5::gettidFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc | ||
) |
Target gettid() handler.
Definition at line 934 of file syscall_emul.cc.
References gem5::ThreadContext::getProcessPtr(), and gem5::Process::pid().
Referenced by gem5::ArmISA::SyscallTable32::SyscallTable32(), and gem5::ArmISA::SyscallTable64::SyscallTable64().
SyscallReturn gem5::gettimeofdayFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
VPtr< typename OS::timeval > | tp, | ||
VPtr<> | tz_ptr | ||
) |
Target gettimeofday() handler.
Definition at line 1928 of file syscall_emul.hh.
References gem5::ArmISA::byteOrder(), getElapsedTimeMicro(), htog(), and seconds_since_epoch.
SyscallReturn gem5::getuidFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc | ||
) |
Definition at line 948 of file syscall_emul.cc.
References gem5::ThreadContext::getProcessPtr(), and gem5::Process::uid().
Referenced by gem5::ArmISA::SyscallTable32::SyscallTable32(), and gem5::ArmISA::SyscallTable64::SyscallTable64().
|
inline |
Definition at line 194 of file byteswap.hh.
References betoh(), and letoh().
Referenced by amoMemAtomic(), dumpDmesgEntry(), gem5::guest_abi::Argument< Aapcs32, Composite, typename std::enable_if_t< IsAapcs32Composite< Composite >::value > >::get(), gem5::guest_abi::Argument< Aapcs64, Composite, typename std::enable_if_t< IsAapcs64Composite< Composite >::value &&!IsAapcs64Hxa< Composite >::value > >::get(), gem5::PowerProcess::initState(), gem5::guest_abi::Aapcs32ArgumentBase::loadFromStack(), gem5::PowerISA::Decoder::moreBytes(), gem5::PortProxy::read(), gem5::VirtQueue::VirtRing< struct vring_used_elem >::read(), gem5::VirtQueue::VirtRing< struct vring_used_elem >::readHeader(), readMemAtomic(), readvFunc(), gem5::PowerISA::RemoteGDB::PowerGdbRegCache::setRegs(), gem5::PowerISA::RemoteGDB::Power64GdbRegCache::setRegs(), gem5::guest_abi::Result< Aapcs32, Composite, typename std::enable_if_t< IsAapcs32Composite< Composite >::value > >::store(), gem5::guest_abi::Result< Aapcs64, Composite, typename std::enable_if_t< IsAapcs64Composite< Composite >::value &&!IsAapcs64Hxa< Composite >::value > >::store(), TEST(), gem5::VirtDescriptor::update(), utimesFunc(), writeMemAtomic(), and writevFunc().
void gem5::handle_alarm | ( | int | signal | ) |
std::string gem5::htmFailureToStr | ( | HtmCacheFailure | rc | ) |
Convert enum into string to be used for debug purposes.
Definition at line 60 of file htm.cc.
References FAIL_OTHER, FAIL_REMOTE, FAIL_SELF, NO_FAIL, and gem5::PowerISA::rc.
std::string gem5::htmFailureToStr | ( | HtmFailureFaultCause | cause | ) |
Convert enum into string to be used for debug purposes.
Definition at line 44 of file htm.cc.
References EXCEPTION, EXPLICIT, MEMORY, NEST, OTHER, and SIZE.
Referenced by gem5::o3::LSQUnit::completeDataAccess(), gem5::TimingSimpleCPU::completeDataAccess(), gem5::ruby::HTMSequencer::htmCallback(), gem5::ruby::HTMSequencer::HTMSequencer(), gem5::ruby::HTMSequencer::regStats(), and gem5::o3::LSQUnit::writeback().
|
inline |
Definition at line 174 of file byteswap.hh.
Referenced by gem5::SparcProcess::argsInit(), gem5::VncServer::checkProtocolVersion(), gem5::VncServer::checkSecurity(), gem5::loader::ElfObject::determineOpSys(), gem5::SparcISA::RemoteGDB::SPARCGdbRegCache::getRegs(), gem5::SparcISA::RemoteGDB::SPARC64GdbRegCache::getRegs(), gem5::SparcISA::getresuidFunc(), htog(), gem5::RegisterBank< BankByteOrder >::Register< BackingType >::htoreg(), gem5::VncServer::sendFrameBufferResized(), gem5::VncServer::sendFrameBufferUpdate(), gem5::VncServer::sendServerInit(), gem5::Packet::setBE(), and gem5::MmDisk::write().
|
inline |
Definition at line 187 of file byteswap.hh.
References htobe(), and htole().
Referenced by _llseekFunc(), gem5::PowerProcess::argsInit(), clock_gettimeFunc(), copyOutStat64Buf(), copyOutStatBuf(), copyOutStatfsBuf(), copyStringArray(), gem5::ArmISA::TableWalker::doL1Descriptor(), gem5::ArmISA::TableWalker::doL2Descriptor(), gem5::ArmISA::TableWalker::doLongDescriptor(), gem5::guest_abi::Argument< Aapcs32, Composite, typename std::enable_if_t< IsAapcs32Composite< Composite >::value > >::get(), gem5::guest_abi::Argument< Aapcs64, Composite, typename std::enable_if_t< IsAapcs64Composite< Composite >::value &&!IsAapcs64Hxa< Composite >::value > >::get(), getcpuFunc(), gem5::PowerISA::RemoteGDB::PowerGdbRegCache::getRegs(), gem5::PowerISA::RemoteGDB::Power64GdbRegCache::getRegs(), getrlimitFunc(), getrusageFunc(), gettimeofdayFunc(), gem5::VirtIOBlock::RequestQueue::onNotifyDescriptor(), prlimitFunc(), gem5::VirtIOConsole::readConfig(), gem5::VirtIOBlock::readConfig(), readvFunc(), gem5::guest_abi::Result< Aapcs32, Composite, typename std::enable_if_t< IsAapcs32Composite< Composite >::value > >::store(), gem5::guest_abi::Result< Aapcs64, Composite, typename std::enable_if_t< IsAapcs64Composite< Composite >::value &&!IsAapcs64Hxa< Composite >::value > >::store(), TEST(), timeFunc(), timesFunc(), gem5::VirtIO9PBase::VirtIO9PBase(), gem5::PortProxy::write(), gem5::VirtQueue::VirtRing< struct vring_used_elem >::write(), gem5::VirtQueue::VirtRing< struct vring_used_elem >::writeHeader(), writeMemAtomic(), and writeMemTiming().
|
inline |
Definition at line 172 of file byteswap.hh.
References swap_byte().
Referenced by gem5::IdeController::Channel::accessBMI(), gem5::MipsProcess::argsInit(), gem5::X86ISA::X86Process::argsInit(), gem5::ArmProcess::argsInit(), gem5::ArmISA::ArmStaticInst::cSwap(), gem5::loader::ElfObject::determineOpSys(), htog(), htop9(), gem5::RegisterBank< BankByteOrder >::Register< BackingType >::htoreg(), gem5::X86ISA::FsLinux::initState(), gem5::X86ISA::FsWorkload::initState(), gem5::PciDevice::PciDevice(), gem5::PciVirtIO::PciVirtIO(), gem5::IGbE::RxDescCache::pktComplete(), gem5::X86ISA::Interrupts::read(), gem5::Packet::setLE(), gem5::PciDevice::writeConfig(), gem5::X86ISA::writeMemAtomic(), gem5::X86ISA::writeMemTiming(), gem5::X86ISA::smbios::SMBiosStructure::writeOut(), gem5::X86ISA::smbios::BiosInformation::writeOut(), gem5::X86ISA::smbios::SMBiosTable::writeOut(), writeOutField(), gem5::X86ISA::writePackedMem(), gem5::IGbE::RxDescCache::writePacket(), gem5::X86ISA::E820Table::writeTo(), and writeVal().
|
inline |
Definition at line 85 of file fs9p.hh.
References htop9(), and gem5::ArmISA::v.
|
inline |
Convert host byte order to p9 byte order (LE)
Definition at line 73 of file fs9p.hh.
References htole(), and gem5::ArmISA::v.
Referenced by htop9(), gem5::VirtIO9PProxy::recvTMsg(), and gem5::VirtIO9PBase::sendRMsg().
|
static |
Definition at line 77 of file debug.cc.
References gem5::Trace::getDebugLogger().
Referenced by gem5::SparcISA::TLB::doMmuRegWrite(), pybind_init_debug(), and tokenize().
SyscallReturn gem5::ignoreFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc | ||
) |
Handler for unimplemented syscalls that we never intend to implement (signal handling, etc.) and should not affect the correct behavior of the program.
Prints a warning. Return success to the target program.
Definition at line 71 of file syscall_emul.cc.
References gem5::SyscallDesc::name(), and warn.
Referenced by gem5::ArmISA::SyscallTable32::SyscallTable32(), and gem5::ArmISA::SyscallTable64::SyscallTable64().
SyscallReturn gem5::ignoreWarnOnceFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc | ||
) |
Like above, but only prints a warning once per syscall desc it's used with.
Definition at line 78 of file syscall_emul.cc.
References gem5::SyscallDesc::name(), and warn.
Referenced by gem5::ArmISA::SyscallTable32::SyscallTable32(), and gem5::ArmISA::SyscallTable64::SyscallTable64().
|
static |
Definition at line 102 of file core.cc.
References Drained, Draining, gem5::Drainable::drainState(), gem5::DrainManager::instance(), gem5::DrainManager::isDrained(), gem5::ArmISA::m, gem5::Drainable::notifyFork(), gem5::DrainManager::preCheckpointRestore(), gem5::DrainManager::resume(), Running, gem5::DrainManager::signalDrainDone(), gem5::DrainManager::state(), and gem5::DrainManager::tryDrain().
Referenced by pybind_init_core().
|
static |
Definition at line 208 of file core.cc.
References gem5::ArmISA::m, and gem5::loader::setInterpDir().
Referenced by pybind_init_core().
|
static |
Definition at line 182 of file core.cc.
References gem5::ArmISA::m.
Referenced by pybind_init_core().
|
static |
Definition at line 147 of file core.cc.
References gem5::AddrRange::end(), gem5::AddrRange::granularity(), gem5::statistics::init, gem5::AddrRange::interleaved(), gem5::AddrRange::intersects(), gem5::AddrRange::isSubset(), gem5::ArmISA::m, gem5::AddrRange::mergesWith(), RangeEx(), RangeIn(), RangeSize(), gem5::AddrRange::size(), gem5::AddrRange::start(), gem5::AddrRange::stripes(), gem5::AddrRange::to_string(), and gem5::AddrRange::valid().
Referenced by pybind_init_core().
|
static |
Definition at line 134 of file core.cc.
References gem5::ArmISA::m.
Referenced by pybind_init_core().
Fault gem5::initiateMemAMO | ( | XC * | xc, |
Trace::InstRecord * | traceData, | ||
Addr | addr, | ||
MemT & | mem, | ||
Request::Flags | flags, | ||
AtomicOpFunctor * | _amo_op | ||
) |
Do atomic read-modify-wrote (AMO) in timing mode.
Definition at line 279 of file memhelpers.hh.
References gem5::X86ISA::addr.
Fault gem5::initiateMemRead | ( | XC * | xc, |
Addr | addr, | ||
std::size_t | size, | ||
Request::Flags | flags, | ||
const std::vector< bool > & | byte_enable | ||
) |
Definition at line 55 of file memhelpers.hh.
References gem5::X86ISA::addr.
Referenced by initiateMemRead().
Fault gem5::initiateMemRead | ( | XC * | xc, |
Trace::InstRecord * | traceData, | ||
Addr | addr, | ||
MemT & | mem, | ||
Request::Flags | flags | ||
) |
Initiate a read from memory in timing mode.
Note that the 'mem' parameter is unused; only the type of that parameter is used to determine the size of the access.
Definition at line 67 of file memhelpers.hh.
References gem5::X86ISA::addr, and initiateMemRead().
|
inline |
Helper function for instructions declared in op_encodings.
This function takes in all of the arguments for a given memory request we are trying to initialize, then submits the request or requests depending on if the original request is aligned or unaligned.
the base address of the cache line where the the last byte of the request will be stored.
if the base cache line address of the last byte is greater than the address of the first byte then we have a misaligned access.
the base address of the cache line where the the last byte of the request will be stored.
if the base cache line address of the last byte is greater than the address of the first byte then we have a misaligned access.
the base address of the cache line where the the last byte of the request will be stored.
if the base cache line address of the last byte is greater than the address of the first byte then we have a misaligned access.
Definition at line 53 of file gpu_mem_helpers.hh.
References gem5::Packet::dataStatic(), DPRINTF, gem5::Gcn3ISA::NumVecElemPerVecReg(), roundDown(), and gem5::MipsISA::vaddr.
|
inline |
Helper function for scalar instructions declared in op_encodings.
This function takes in all of the arguments for a given memory request we are trying to initialize, then submits the request or requests depending on if the original request is aligned or unaligned.
the base address of the cache line where the the last byte of the request will be stored.
if the base cache line address of the last byte is greater than the address of the first byte then we have a misaligned access.
the base address of the cache line where the the last byte of the request will be stored.
if the base cache line address of the last byte is greater than the address of the first byte then we have a misaligned access.
the base address of the cache line where the the last byte of the request will be stored.
if the base cache line address of the last byte is greater than the address of the first byte then we have a misaligned access.
Definition at line 141 of file gpu_mem_helpers.hh.
References gem5::Packet::dataStatic(), DPRINTF, roundDown(), and gem5::MipsISA::vaddr.
void gem5::initSignals | ( | ) |
Definition at line 184 of file init_signals.cc.
References abortHandler(), dumprstStatsHandler(), dumpStatsHandler(), exitNowHandler(), installSignalHandler(), ioHandler(), segvHandler(), setupAltStack(), and warn.
Referenced by main().
|
static |
Definition at line 85 of file init_signals.cc.
References panic, and gem5::ArmISA::sa.
Referenced by initSignals().
Ret gem5::invokeSimcall | ( | ThreadContext * | tc, |
Ret(*)(ThreadContext *, Args...) | target | ||
) |
Definition at line 71 of file guest_abi.hh.
Ret gem5::invokeSimcall | ( | ThreadContext * | tc, |
Ret(*)(ThreadContext *, Args...) | target | ||
) |
Definition at line 79 of file guest_abi.hh.
Ret gem5::invokeSimcall | ( | ThreadContext * | tc, |
std::function< Ret(ThreadContext *, Args...)> | target | ||
) |
Definition at line 50 of file guest_abi.hh.
References gem5::guest_abi::callFrom(), and gem5::guest_abi::prepareForFunction().
Referenced by gem5::SyscallDescABI< ABI >::buildExecutor().
Ret gem5::invokeSimcall | ( | ThreadContext * | tc, |
std::function< Ret(ThreadContext *, Args...)> | target | ||
) |
Definition at line 63 of file guest_abi.hh.
void gem5::invokeSimcall | ( | ThreadContext * | tc, |
std::function< void(ThreadContext *, Args...)> | target | ||
) |
Definition at line 86 of file guest_abi.hh.
References gem5::guest_abi::callFrom(), and gem5::guest_abi::prepareForArguments().
void gem5::invokeSimcall | ( | ThreadContext * | tc, |
void(*)(ThreadContext *, Args...) | target | ||
) |
Definition at line 98 of file guest_abi.hh.
SyscallReturn gem5::ioctlFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | tgt_fd, | ||
unsigned | req, | ||
VPtr<> | addr | ||
) |
Target ioctl() handler.
For the most part, programs call ioctl() only to find out if their stdout is a tty, to determine whether to do line or block buffering. We always claim that output fds are not TTYs to provide repeatable results.
For lack of a better return code, return ENOTTY. Ideally, we should return something better here, but at least we issue the warning.
Definition at line 681 of file syscall_emul.hh.
References gem5::X86ISA::addr, gem5::BufferArg::bufferPtr(), gem5::BaseBufferArg::copyIn(), gem5::BaseBufferArg::copyOut(), DPRINTF_SYSCALL, gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), gem5::EmulatedDriver::ioctl(), gem5::MipsISA::p, gem5::ThreadContext::pcState(), gem5::ArmISA::status, and warn.
|
static |
Definition at line 171 of file init_signals.cc.
References async_event, async_io, getEventQueue(), and gem5::EventQueue::wakeup().
Referenced by initSignals().
|
inline |
Test if there is any active element in an enablement range.
Definition at line 89 of file utils.hh.
Referenced by gem5::o3::LSQ::LSQRequest::addRequest(), gem5::AtomicSimpleCPU::genMemFragmentRequest(), gem5::CheckerCPU::genMemFragmentRequest(), gem5::minor::LSQ::SplitDataRequest::makeFragmentRequests(), and gem5::minor::LSQ::SingleDataRequest::startAddrTranslation().
|
static |
|
inlinestatic |
Definition at line 166 of file types.hh.
References MicroPCRomBit.
Referenced by gem5::TimingSimpleCPU::fetch(), gem5::o3::Fetch::fetch(), gem5::o3::Fetch::pipelineIcacheAccesses(), gem5::BaseSimpleCPU::preExecute(), TEST(), gem5::AtomicSimpleCPU::tick(), and gem5::Checker< gem5::RefCountingPtr >::verify().
|
static |
Referenced by gem5::ArmKvmCPU::updateKvmStateCoProc(), and gem5::ArmKvmCPU::updateTCStateCoProc().
|
static |
Referenced by gem5::ArmKvmCPU::updateKvmStateCoProc(), and gem5::ArmKvmCPU::updateTCStateCoProc().
|
constexpr |
Definition at line 81 of file armv8_cpu.cc.
References SIMD_REG.
Referenced by gem5::ArmV8KvmCPU::dump(), gem5::ArmV8KvmCPU::updateKvmState(), and gem5::ArmV8KvmCPU::updateThreadContext().
|
constexpr |
Definition at line 74 of file armv8_cpu.cc.
References INT_REG.
Referenced by gem5::ArmV8KvmCPU::dump(), gem5::ArmV8KvmCPU::updateKvmState(), and gem5::ArmV8KvmCPU::updateThreadContext().
|
inline |
Definition at line 166 of file byteswap.hh.
References swap_byte().
Referenced by gem5::ArmISA::ArmStaticInst::cSwap(), and TEST().
|
inline |
Definition at line 173 of file byteswap.hh.
References swap_byte().
Referenced by gem5::IdeController::Channel::accessBMI(), gem5::ArmISA::ArmStaticInst::cSwap(), gem5::IdeController::dispatchAccess(), gem5::prefetch::Base::PrefetchInfo::get(), gem5::PciDevice::getAddrRanges(), gem5::Packet::getLE(), gtoh(), gem5::pseudo_inst::initParam(), gem5::PciDevice::interruptLine(), gem5::MipsISA::Decoder::moreBytes(), gem5::RiscvISA::Decoder::moreBytes(), gem5::ArmISA::Decoder::moreBytes(), gem5::X86ISA::Decoder::moreBytes(), p9toh(), gem5::X86ISA::readMemAtomic(), gem5::X86ISA::readPackedMemAtomic(), gem5::RegisterBank< BankByteOrder >::Register< BackingType >::regtoh(), SafeReadSwap(), SafeWriteSwap(), gem5::MipsISA::sys_setsysinfoFunc(), gem5::Trace::InstPBTrace::traceInst(), gem5::Trace::X86NativeTrace::ThreadState::update(), gem5::Trace::ArmNativeTrace::ThreadState::update(), gem5::X86ISA::Interrupts::write(), gem5::PciDevice::writeConfig(), gem5::X86ISA::writeMemAtomic(), and gem5::X86ISA::smbios::SMBiosTable::writeOut().
SyscallReturn gem5::linkFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
VPtr<> | pathname, | ||
VPtr<> | new_pathname | ||
) |
Target link() handler.
Definition at line 464 of file syscall_emul.cc.
References gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), and gem5::MipsISA::p.
SyscallReturn gem5::listenFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | tgt_fd, | ||
int | backlog | ||
) |
Definition at line 1185 of file syscall_emul.cc.
References gem5::ThreadContext::getProcessPtr(), gem5::MipsISA::p, and gem5::ArmISA::status.
SyscallReturn gem5::lseekFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | tgt_fd, | ||
uint64_t | offs, | ||
int | whence | ||
) |
Target lseek() handler.
Definition at line 285 of file syscall_emul.cc.
References gem5::ThreadContext::getProcessPtr(), and gem5::MipsISA::p.
Referenced by gem5::ArmISA::SyscallTable32::SyscallTable32(), and gem5::ArmISA::SyscallTable64::SyscallTable64().
SyscallReturn gem5::lstat64Func | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
VPtr<> | pathname, | ||
VPtr< typename OS::tgt_stat64 > | tgt_stat | ||
) |
Target lstat64() handler.
Definition at line 1331 of file syscall_emul.hh.
References gem5::Process::checkPathRedirect(), gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), and gem5::PortProxy::tryReadString().
SyscallReturn gem5::lstatFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
VPtr<> | pathname, | ||
VPtr< typename OS::tgt_stat > | tgt_stat | ||
) |
Target lstat() handler.
Definition at line 1305 of file syscall_emul.hh.
References gem5::Process::checkPathRedirect(), gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), and gem5::PortProxy::tryReadString().
int gem5::m5Main | ( | int | argc, |
char ** | _argv | ||
) |
Definition at line 261 of file init.cc.
References gem5::ArmISA::i, m5MainCommands, panic, and PyCC.
Referenced by main().
int gem5::main | ( | ) |
Definition at line 58 of file cprintftime.cc.
References ccprintf(), cprintf(), do_test(), handle_alarm(), and stop.
Referenced by TEST().
|
static |
Definition at line 1413 of file x86_cpu.cc.
References gem5::ArmISA::e, and gem5::MipsISA::index.
Referenced by gem5::X86KvmCPU::updateCPUID().
void gem5::mappingParamIn | ( | CheckpointIn & | cp, |
const char * | sectionName, | ||
const char *const | names[], | ||
T * | param, | ||
unsigned | size | ||
) |
Restore mappingParamOut.
Keys missing from the checkpoint are ignored.
Definition at line 530 of file serialize.hh.
References gem5::Serializable::currentSection(), gem5::ArmISA::i, gem5::X86ISA::delivery_mode::names, optParamIn(), gem5::X86ISA::val, and gem5::CheckpointIn::visitSection().
void gem5::mappingParamOut | ( | CheckpointOut & | os, |
const char * | sectionName, | ||
const char *const | names[], | ||
const T * | param, | ||
unsigned | size | ||
) |
Serialize a mapping represented as two arrays: one containing names and the other containing values.
names | array of keys |
param | array of values |
size | size of the names and param arrays |
Definition at line 516 of file serialize.hh.
References gem5::ArmISA::i, gem5::X86ISA::delivery_mode::names, gem5::X86ISA::os, and paramOut().
uint64_t gem5::memUsage | ( | ) |
Determine the simulator process' total virtual memory usage.
Definition at line 76 of file hostinfo.cc.
References procInfo().
Referenced by gem5::Root::RootStats::RootStats().
SyscallReturn gem5::mkdirFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
VPtr<> | pathname, | ||
mode_t | mode | ||
) |
Target mkdir() handler.
Definition at line 506 of file syscall_emul.cc.
References gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), gem5::ArmISA::mode, gem5::MipsISA::p, and gem5::PortProxy::tryReadString().
Referenced by gem5::ArmISA::SyscallTable32::SyscallTable32(), and gem5::ArmISA::SyscallTable64::SyscallTable64().
SyscallReturn gem5::mknodFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
VPtr<> | pathname, | ||
mode_t | mode, | ||
dev_t | dev | ||
) |
Target mknod() handler.
Definition at line 1014 of file syscall_emul.cc.
References gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), gem5::ArmISA::mode, gem5::MipsISA::p, and gem5::PortProxy::tryReadString().
time_t gem5::mkutctime | ( | struct tm * | time | ) |
Definition at line 154 of file time.cc.
References fatal, and gem5::ArmISA::tz.
Referenced by gem5::ArmSemihosting::ArmSemihosting(), gem5::DumbTOD::DumbTOD(), and gem5::MC146818::tickClock().
SyscallReturn gem5::mmap2Func | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
VPtr<> | start, | ||
typename OS::size_t | length, | ||
int | prot, | ||
int | tgt_flags, | ||
int | tgt_fd, | ||
typename OS::off_t | offset | ||
) |
Target mmap2() handler.
Definition at line 1817 of file syscall_emul.hh.
References gem5::ThreadContext::getProcessPtr(), gem5::ArmISA::offset, gem5::EmulationPageTable::pageSize(), gem5::X86ISA::prot, and gem5::Process::pTable.
SyscallReturn gem5::mmapFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
VPtr<> | start, | ||
typename OS::size_t | length, | ||
int | prot, | ||
int | tgt_flags, | ||
int | tgt_fd, | ||
typename OS::off_t | offset | ||
) |
Target mmap() handler.
Maintain the symbol table for dynamic executables. The loader will call mmap to map the images into its address space and we intercept that here. We can verify that we are executing inside the loader by checking the program counter value. XXX: with multiprogrammed workloads or multi-node configurations, this will not work since there is a single global symbol table.
Not TGT_MAP_FIXED means we can start wherever we want.
If the application provides us with a hint, we should make some small amount of effort to accomodate it. Basically, we check if every single VA within the requested range is unused. If it is, we give the application the range. If not, we fall back to extending the global mmap region.
Extend global mmap region to give us some room for the app.
We only allow mappings to overwrite existing mappings if TGT_MAP_FIXED is set. Otherwise it shouldn't be a problem because we ignore the start hint if TGT_MAP_FIXED is not set.
We might already have some old VMAs mapped to this region, so make sure to clear em out!
Figure out a human-readable name for the mapping.
Setup the correct VMA for this region. The physical pages will be mapped lazily.
Definition at line 1633 of file syscall_emul.hh.
References gem5::loader::createObjectFile(), gem5::loader::debugSymbolTable, DPRINTF_SYSCALL, gem5::ThreadContext::getProcessPtr(), gem5::loader::SymbolTable::insert(), gem5::EmulatedDriver::mmap(), gem5::ArmISA::offset, gem5::MipsISA::p, gem5::ThreadContext::pcState(), gem5::X86ISA::prot, roundUp(), and warn_once.
SyscallReturn gem5::mremapFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
VPtr<> | start, | ||
uint64_t | old_length, | ||
uint64_t | new_length, | ||
uint64_t | flags, | ||
guest_abi::VarArgs< uint64_t > | varargs | ||
) |
Target mremap() handler.
Definition at line 1098 of file syscall_emul.hh.
References gem5::guest_abi::VarArgs< Types >::get(), gem5::ThreadContext::getProcessPtr(), gem5::MipsISA::p, roundUp(), and warn.
|
staticconstexpr |
Definition at line 241 of file intmath.hh.
|
staticconstexpr |
Definition at line 198 of file intmath.hh.
References high.
|
staticconstexpr |
Definition at line 232 of file intmath.hh.
SyscallReturn gem5::munmapFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
VPtr<> | start, | ||
size_t | length | ||
) |
Target munmap() handler.
Definition at line 329 of file syscall_emul.cc.
References gem5::ThreadContext::getProcessPtr(), gem5::MipsISA::p, and roundUp().
Referenced by gem5::ArmISA::SyscallTable32::SyscallTable32(), and gem5::ArmISA::SyscallTable64::SyscallTable64().
|
static |
Definition at line 171 of file x86_cpu.cc.
|
static |
Definition at line 105 of file process.cc.
Referenced by gem5::Process::absolutePath().
|
static |
Definition at line 39 of file redirect_path.cc.
References startswith().
Referenced by gem5::RedirectPath::RedirectPath().
Definition at line 160 of file types.hh.
References MicroPCRomBit.
Referenced by gem5::X86ISAInst::MicrocodeRom::fetchMicroop(), and TEST().
|
static |
Dummy handler for KVM kick signals.
Definition at line 1196 of file base.cc.
Referenced by gem5::BaseKvmCPU::setupSignalHandler().
SyscallReturn gem5::openatFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | tgt_dirfd, | ||
VPtr<> | pathname, | ||
int | tgt_flags, | ||
int | mode | ||
) |
Target open() handler.
Retrieve the simulated process' memory proxy and then read in the path string from that memory space into the host's working memory space.
Translate target flags into host flags. Flags exist which are not ported between architectures which can cause check failures.
If the simulated process called open or openat with AT_FDCWD specified, take the current working directory value which was passed into the process class as a Python parameter and append the current path to create a full path. Otherwise, openat with a valid target directory file descriptor has been called. If the path option, which was passed in as a parameter, is not absolute, retrieve the directory file descriptor's path and prepend it to the path passed in as a parameter. In every case, we should have a full path (which is relevant to the host) to work with after this block has been passed.
Since this is an emulated environment, we create pseudo file descriptors for device requests that have been registered with the process class through Python; this allows us to create a file descriptor for subsequent ioctl or mmap calls.
Fall through here for pass through to host devices, such as /dev/zero
We make several attempts resolve a call to open.
1) Resolve any path redirection before hand. This will set the path up with variable 'redir_path' which may contain a modified path or the original path value. This should already be done in prior code. 2) Try to handle the access using 'special_paths'. Some special_paths and files cannot be called on the host and need to be handled as special cases inside the simulator. These special_paths are handled by C++ routines to provide output back to userspace. 3) If the full path that was created above does not match any of the special cases, pass it through to the open call on the HOST to let the host open the file on our behalf. Again, the openImpl tries to USE_THE_HOST_FILESYSTEM_OPEN (with a possible redirection to the faux-filesystem files). The faux-filesystem is dynamically created during simulator configuration using Python functions. 4) If the host cannot open the file, the open attempt failed in "3)". Return the host's error code back through the system call to the simulated process. If running a debug trace, also notify the user that the open call failed.
Any success will set sim_fd to something other than -1 and skip the next conditions effectively bypassing them.
The file was opened successfully and needs to be recorded in the process' file descriptor array so that it can be retrieved later. The target file descriptor that is chosen will be the lowest unused file descriptor. Return the indirect target file descriptor back to the simulated process to act as a handle for the opened file.
Definition at line 756 of file syscall_emul.hh.
References DPRINTF_SYSCALL, gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), gem5::ArmISA::mode, gem5::SyscallDesc::name(), gem5::EmulatedDriver::open(), gem5::MipsISA::p, startswith(), gem5::PortProxy::tryReadString(), and warn_if.
SyscallReturn gem5::openFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
VPtr<> | pathname, | ||
int | tgt_flags, | ||
int | mode | ||
) |
Target open() handler.
Definition at line 906 of file syscall_emul.hh.
References gem5::ArmISA::mode.
|
inline |
Check for inequality of two reference counting pointers.
Definition at line 294 of file refcnt.hh.
References gem5::MipsISA::l, and gem5::MipsISA::r.
|
inline |
Check for inequality of of a reference counting pointers and a regular pointer.
Definition at line 303 of file refcnt.hh.
References gem5::MipsISA::l, and gem5::MipsISA::r.
|
inline |
Check for inequality of of a reference counting pointers and a regular pointer.
Definition at line 312 of file refcnt.hh.
References gem5::MipsISA::l, and gem5::MipsISA::r.
Definition at line 213 of file time.hh.
References gem5::MipsISA::l, and gem5::MipsISA::r.
|
constexpr |
Definition at line 167 of file temperature.hh.
References gem5::Temperature::value.
|
constexpr |
Definition at line 161 of file temperature.hh.
References gem5::Temperature::value.
Referenced by arrayParamIn().
std::enable_if_t<std::is_integral<A>::value, ConstProxyPtr<T, Proxy> > gem5::operator+ | ( | A | a, |
const ConstProxyPtr< T, Proxy > & | other | ||
) |
Definition at line 232 of file proxy_ptr.hh.
References gem5::ArmISA::a.
std::enable_if_t<std::is_integral<A>::value, ProxyPtr<T, Proxy> > gem5::operator+ | ( | A | a, |
const ProxyPtr< T, Proxy > & | other | ||
) |
Definition at line 355 of file proxy_ptr.hh.
References gem5::ArmISA::a.
Definition at line 247 of file time.hh.
References gem5::MipsISA::l, and gem5::MipsISA::r.
Definition at line 255 of file time.hh.
References gem5::MipsISA::l, and gem5::MipsISA::r.
|
constexpr |
Definition at line 173 of file temperature.hh.
References gem5::Temperature::value.
Definition at line 219 of file time.hh.
References gem5::MipsISA::l, and gem5::MipsISA::r.
Referenced by gem5::branch_prediction::MultiperspectivePerceptron::findBest().
std::ostream & gem5::operator<< | ( | std::ostream & | os, |
const ArmSemihosting::InPlaceArg & | ipa | ||
) |
Definition at line 1045 of file semihosting.cc.
References gem5::ArmSemihosting::InPlaceArg::addr, ccprintf(), gem5::X86ISA::os, and gem5::ArmSemihosting::InPlaceArg::size.
std::ostream& gem5::operator<< | ( | std::ostream & | os, |
const ConstProxyPtr< T, Proxy > & | vptr | ||
) |
Definition at line 390 of file proxy_ptr.hh.
References gem5::ConstProxyPtr< T, Proxy >::addr(), ccprintf(), and gem5::X86ISA::os.
|
inline |
Definition at line 228 of file pixel.hh.
References csprintf(), gem5::X86ISA::os, and gem5::PixelConverter::rgba8888_le.
|
inlinestatic |
Definition at line 156 of file port.hh.
References gem5::Port::name(), and gem5::X86ISA::os.
|
inline |
Definition at line 89 of file Check.hh.
References gem5::Check::print().
|
inline |
Definition at line 77 of file CheckTable.hh.
References gem5::CheckTable::print().
std::ostream& gem5::operator<< | ( | std::ostream & | out, |
const Cycles & | cycles | ||
) |
Definition at line 35 of file types.cc.
References gem5::Cycles::c.
|
inline |
Definition at line 156 of file RubyTester.hh.
References gem5::RubyTester::print().
std::ostream& gem5::operator<< | ( | std::ostream & | out, |
const Temperature & | temp | ||
) |
Definition at line 68 of file temperature.cc.
References gem5::Temperature::value.
|
inline |
Definition at line 263 of file time.hh.
References gem5::Time::date().
Definition at line 226 of file time.hh.
References gem5::MipsISA::l, and gem5::MipsISA::r.
Definition at line 73 of file pixel.hh.
References gem5::Pixel::blue, gem5::Pixel::green, gem5::Pixel::padding, and gem5::Pixel::red.
|
inline |
Check for equality of two reference counting pointers.
Definition at line 268 of file refcnt.hh.
References gem5::MipsISA::l, and gem5::MipsISA::r.
|
inline |
Check for equality of of a reference counting pointers and a regular pointer.
Definition at line 277 of file refcnt.hh.
References gem5::MipsISA::l, and gem5::MipsISA::r.
|
inline |
Check for equality of of a reference counting pointers and a regular pointer.
Definition at line 286 of file refcnt.hh.
References gem5::MipsISA::l, and gem5::MipsISA::r.
Definition at line 207 of file time.hh.
References gem5::MipsISA::l, and gem5::MipsISA::r.
Definition at line 233 of file time.hh.
References gem5::MipsISA::l, and gem5::MipsISA::r.
Definition at line 240 of file time.hh.
References gem5::MipsISA::l, and gem5::MipsISA::r.
|
static |
Definition at line 66 of file debug.cc.
References gem5::OutputDirectory::create(), gem5::OutputDirectory::find(), gem5::Trace::setDebugLogger(), simout, and gem5::OutputStream::stream().
Referenced by gem5::ArmISA::Crypto::aesAddRoundKey(), gem5::ArmISA::Crypto::aesDecrypt(), gem5::ArmISA::Crypto::aesEncrypt(), gem5::ArmISA::Crypto::aesInvMixColumns(), gem5::ArmISA::Crypto::aesInvShiftRows(), gem5::ArmISA::Crypto::aesInvSubBytes(), gem5::ArmISA::Crypto::aesMixColumns(), gem5::ArmISA::Crypto::aesShiftRows(), gem5::ArmISA::Crypto::aesSubBytes(), gem5::ArmISA::RemoteGDB::getXferFeaturesRead(), gem5::ArmISA::Crypto::load2Reg(), gem5::ArmISA::Crypto::load3Reg(), pybind_init_debug(), gem5::X86ISA::I8259::requestInterrupt(), reverseBits(), gem5::ArmISA::Crypto::sha1C(), gem5::ArmISA::Crypto::sha1H(), gem5::ArmISA::Crypto::sha1M(), gem5::ArmISA::Crypto::sha1Op(), gem5::ArmISA::Crypto::sha1P(), gem5::ArmISA::Crypto::sha1Su0(), gem5::ArmISA::Crypto::sha1Su1(), gem5::ArmISA::Crypto::sha256H(), gem5::ArmISA::Crypto::sha256H2(), gem5::ArmISA::Crypto::sha256Su0(), gem5::ArmISA::Crypto::sha256Su1(), gem5::ArmISA::Crypto::store1Reg(), and TEST().
|
inline |
Definition at line 76 of file fs9p.hh.
References p9toh(), and gem5::ArmISA::v.
|
inline |
Convert p9 byte order (LE) to host byte order.
Definition at line 69 of file fs9p.hh.
References letoh(), and gem5::ArmISA::v.
Referenced by gem5::VirtIO9PBase::FSQueue::onNotifyDescriptor(), p9toh(), and gem5::VirtIO9PProxy::serverDataReady().
void gem5::paramIn | ( | CheckpointIn & | cp, |
const std::string & | name, | ||
ExtMachInst & | machInst | ||
) |
Definition at line 72 of file types.cc.
References gem5::X86ISA::ExtMachInst::addrSize, gem5::X86ISA::ExtMachInst::displacement, gem5::X86ISA::ExtMachInst::dispSize, gem5::X86ISA::ExtMachInst::immediate, gem5::X86ISA::ExtMachInst::legacy, gem5::X86ISA::ExtMachInst::mode, gem5::X86ISA::ExtMachInst::modRM, name(), gem5::X86ISA::ExtMachInst::op, gem5::X86ISA::ExtMachInst::opcode, gem5::X86ISA::ExtMachInst::opSize, gem5::X86ISA::ExtMachInst::rex, gem5::X86ISA::ExtMachInst::sib, gem5::X86ISA::ExtMachInst::stackSize, gem5::X86ISA::ExtMachInst::type, and gem5::X86ISA::ExtMachInst::vex.
Referenced by gem5::ArmSemihosting::FileBase::create(), gem5::Globals::unserialize(), gem5::Pl011::unserialize(), gem5::FlashDevice::unserialize(), gem5::PacketFifoEntry::unserialize(), gem5::EthPacketData::unserialize(), gem5::ArmISA::PMU::unserialize(), gem5::FDArray::unserialize(), gem5::EtherLink::Link::unserialize(), gem5::Plic::unserialize(), gem5::Pl050::unserialize(), gem5::Iob::unserialize(), gem5::copy_engine_reg::Regs::unserialize(), gem5::Clint::unserialize(), gem5::IdeController::Channel::unserialize(), gem5::EmulationPageTable::unserialize(), gem5::MC146818::unserialize(), gem5::SparcISA::TLB::unserialize(), gem5::Intel8254Timer::Counter::unserialize(), gem5::Time::unserialize(), gem5::MemState::unserialize(), gem5::PacketFifo::unserialize(), gem5::copy_engine_reg::ChanRegs::unserialize(), gem5::Uart8250::unserialize(), gem5::ArmSemihosting::unserialize(), gem5::ArchTimer::unserialize(), gem5::MultiLevelPageTable< EntryTypes >::unserialize(), gem5::sinic::Device::unserialize(), gem5::loader::SymbolTable::unserialize(), gem5::VirtQueue::unserialize(), gem5::ArmISA::TlbEntry::unserialize(), gem5::PciDevice::unserialize(), and gem5::igbreg::Regs::unserialize().
bool gem5::paramInImpl | ( | CheckpointIn & | cp, |
const std::string & | name, | ||
T & | param | ||
) |
Definition at line 336 of file serialize.hh.
References gem5::Serializable::currentSection(), gem5::CheckpointIn::find(), and name().
Referenced by optParamIn(), and paramIn().
void gem5::paramOut | ( | CheckpointOut & | cp, |
const std::string & | name, | ||
ExtMachInst const & | machInst | ||
) |
Definition at line 40 of file types.cc.
References gem5::X86ISA::ExtMachInst::addrSize, gem5::X86ISA::ExtMachInst::displacement, gem5::X86ISA::ExtMachInst::dispSize, gem5::X86ISA::ExtMachInst::immediate, gem5::X86ISA::ExtMachInst::legacy, gem5::X86ISA::ExtMachInst::mode, gem5::X86ISA::ExtMachInst::modRM, name(), gem5::X86ISA::ExtMachInst::op, gem5::X86ISA::ExtMachInst::opcode, gem5::X86ISA::ExtMachInst::opSize, gem5::X86ISA::ExtMachInst::rex, gem5::X86ISA::ExtMachInst::sib, gem5::X86ISA::ExtMachInst::stackSize, gem5::X86ISA::ExtMachInst::type, and gem5::X86ISA::ExtMachInst::vex.
Referenced by mappingParamOut(), gem5::Globals::serialize(), gem5::Pl011::serialize(), gem5::FlashDevice::serialize(), gem5::PacketFifoEntry::serialize(), gem5::EthPacketData::serialize(), gem5::Random::serialize(), gem5::FDArray::serialize(), gem5::EtherLink::Link::serialize(), gem5::Plic::serialize(), gem5::copy_engine_reg::Regs::serialize(), gem5::Pl050::serialize(), gem5::Iob::serialize(), gem5::Ticked::serialize(), gem5::Clint::serialize(), gem5::IdeController::Channel::serialize(), gem5::EmulationPageTable::serialize(), gem5::MC146818::serialize(), gem5::Intel8254Timer::Counter::serialize(), gem5::MemState::serialize(), gem5::Time::serialize(), gem5::PacketFifo::serialize(), gem5::copy_engine_reg::ChanRegs::serialize(), gem5::Uart8250::serialize(), gem5::ArmSemihosting::serialize(), gem5::ArchTimer::serialize(), gem5::MultiLevelPageTable< EntryTypes >::serialize(), gem5::ArmSemihosting::FileBase::serialize(), gem5::GenericTimer::serialize(), gem5::loader::SymbolTable::serialize(), gem5::sinic::Device::serialize(), gem5::ArmISA::TlbEntry::serialize(), gem5::PciDevice::serialize(), gem5::System::serialize(), and gem5::igbreg::Regs::serialize().
SyscallReturn gem5::pipe2Func | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
VPtr<> | tgt_addr, | ||
int | flags | ||
) |
Target pipe() handler.
Now patch the read object to record the target file descriptor chosen as the write end of the pipe.
On some architectures, it's possible to use more than one register for a return value. In those cases, pipe returns its values rather than write them into a buffer.
Copy the target file descriptors into buffer space and then copy the buffer space back into the target address space.
Definition at line 801 of file syscall_emul.cc.
References gem5::BufferArg::bufferPtr(), gem5::BaseBufferArg::copyOut(), gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), and gem5::MipsISA::p.
Referenced by pipeFunc(), and pipePseudoFunc().
SyscallReturn gem5::pipeFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
VPtr<> | tgt_addr | ||
) |
SyscallReturn gem5::pipePseudoFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc | ||
) |
Pseudo Funcs - These functions use a different return convension, returning a second value in a register other than the normal return register.
Definition at line 789 of file syscall_emul.cc.
References pipe2Func().
Referenced by gem5::ArmISA::SyscallTable32::SyscallTable32(), and gem5::ArmISA::SyscallTable64::SyscallTable64().
SyscallReturn gem5::pollFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
VPtr<> | fdsPtr, | ||
int | nfds, | ||
int | tmout | ||
) |
Record the target file descriptors in a local variable. We need to replace them with host file descriptors but we need a temporary copy for later. Afterwards, replace each target file descriptor in the poll_fd array with its host_fd.
We cannot allow an infinite poll to occur or it will inevitably cause a deadlock in the gem5 simulator with clone. We must pass in tmout with a non-negative value, however it also makes no sense to poll on the underlying host for any other time than tmout a zero timeout.
If blocking indefinitely, check the signal list to see if a signal would break the poll out of the retry cycle and try to return the signal interrupt instead.
Replace each host_fd in the returned poll_fd array with its original target file descriptor.
Copy out the pollfd struct because the host may have updated fields in the structure.
Definition at line 1005 of file syscall_emul.hh.
References gem5::BufferArg::bufferPtr(), gem5::BaseBufferArg::copyIn(), gem5::BaseBufferArg::copyOut(), gem5::ArmISA::fd, gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getSystemPtr(), gem5::ThreadContext::getVirtProxy(), gem5::MipsISA::index, gem5::MipsISA::p, gem5::SyscallReturn::retry(), gem5::System::signalList, and gem5::ArmISA::status.
SyscallReturn gem5::pread64Func | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | tgt_fd, | ||
VPtr<> | bufPtr, | ||
int | nbytes, | ||
int | offset | ||
) |
Definition at line 1775 of file syscall_emul.hh.
References gem5::BufferArg::bufferPtr(), gem5::BaseBufferArg::copyOut(), gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), gem5::ArmISA::offset, and gem5::MipsISA::p.
void gem5::print_backtrace | ( | ) |
Print a gem5 post-mortem report.
Definition at line 54 of file backtrace_glibc.cc.
References STATIC_ERR.
Referenced by abortHandler(), gem5::Trace::OstreamLogger::logMessage(), and segvHandler().
void gem5::printSize | ( | std::ostream & | stream, |
size_t | size | ||
) |
Definition at line 287 of file fa_lru.cc.
Referenced by gem5::FALRU::CacheTracking::CacheTracking().
void gem5::printSystems | ( | ) |
Definition at line 527 of file system.cc.
References gem5::System::printSystems().
SyscallReturn gem5::prlimitFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | pid, | ||
int | resource, | ||
VPtr<> | n, | ||
VPtr< typename OS::rlimit > | rlp | ||
) |
Definition at line 1865 of file syscall_emul.hh.
References gem5::PowerISA::bo, gem5::ArmISA::byteOrder(), htog(), gem5::ArmISA::n, and warn.
uint64_t gem5::procInfo | ( | const char * | filename, |
const char * | target | ||
) |
Definition at line 47 of file hostinfo.cc.
References gem5::ArmISA::format, gem5::ArmISA::fp, and startswith().
Referenced by memUsage().
SyscallReturn gem5::pwrite64Func | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | tgt_fd, | ||
VPtr<> | bufPtr, | ||
int | nbytes, | ||
int | offset | ||
) |
Definition at line 1796 of file syscall_emul.hh.
References gem5::BufferArg::bufferPtr(), gem5::BaseBufferArg::copyIn(), gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), gem5::ArmISA::offset, and gem5::MipsISA::p.
void gem5::py_interact | ( | ) |
Definition at line 37 of file py_interact.cc.
void gem5::pybind_init_core | ( | py::module_ & | m_native | ) |
Definition at line 216 of file core.cc.
References gem5::ListenSocket::allDisabled(), clockFrequencyFixed(), compileDate, curTick(), gem5::ListenSocket::disableAll(), doExitCleanup(), gem5::Logger::FATAL, fixClockFrequency(), flag_DEBUG, flag_NDEBUG, flag_TRACING_ON, gem5::Temperature::fromCelsius(), gem5::Temperature::fromFahrenheit(), gem5::Temperature::fromKelvin(), gem5Version, getClockFrequency(), gem5::Logger::HACK, gem5::Logger::INFO, gem5::Random::init(), init_drain(), init_loader(), init_net(), init_range(), init_serialize(), gem5::ListenSocket::loopbackOnly(), MaxTick, gem5::Logger::PANIC, pybindSimObjectResolver, random_mt, gem5::sim_clock::as_int::s, gem5::SimObject::serializeAll(), setClockFrequency(), gem5::Logger::setLevel(), setOutputDir(), gem5::SimObject::setSimObjectResolver(), gem5::ArmISA::t, gem5::Temperature::toCelsius(), gem5::Temperature::toFahrenheit(), gem5::Temperature::toKelvin(), and gem5::Logger::WARN.
Referenced by gem5::EmbeddedPyBind::initAll().
void gem5::pybind_init_core | ( | pybind11::module_ & | m_native | ) |
void gem5::pybind_init_debug | ( | py::module_ & | m_native | ) |
Definition at line 85 of file debug.cc.
References gem5::debug::allFlags(), gem5::debug::allFlagsVersion, gem5::debug::Flag::desc(), gem5::debug::Flag::disable(), gem5::Trace::disable(), gem5::debug::Flag::enable(), gem5::Trace::enable(), ignore(), gem5::debug::SimpleFlag::isFormat(), gem5::debug::CompoundFlag::kids(), gem5::debug::Flag::name(), output(), schedBreak(), setRemoteGDBPort(), and gem5::debug::Flag::tracing().
Referenced by gem5::EmbeddedPyBind::initAll().
void gem5::pybind_init_debug | ( | pybind11::module_ & | m_native | ) |
void gem5::pybind_init_event | ( | py::module_ & | m_native | ) |
Definition at line 104 of file event.cc.
References curEventQueue(), gem5::EventBase::Default_Pri, gem5::EventQueue::deschedule(), gem5::Event::dump(), gem5::EventQueue::dump(), gem5::ArmISA::e, gem5::PowerISA::eq, exitSimLoop(), gem5::GlobalSimLoopExitEvent::getCause(), gem5::GlobalSimLoopExitEvent::getCode(), getEventQueue(), gem5::Event::isExitEvent(), gem5::ArmISA::m, MaxTick, gem5::Event::name(), PRIO, gem5::Event::priority(), gem5::ArmISA::q, gem5::EventQueue::reschedule(), gem5::Event::scheduled(), simulate(), gem5::Event::squash(), gem5::Event::squashed(), gem5::ArmISA::t, and gem5::Event::when().
Referenced by gem5::EmbeddedPyBind::initAll().
void gem5::pybind_init_event | ( | pybind11::module_ & | m_native | ) |
void gem5::pybind_init_stats | ( | py::module_ & | m_native | ) |
Definition at line 107 of file stats.cc.
References gem5::statistics::Group::addStatGroup(), gem5::statistics::Info::baseCheck(), gem5::statistics::Output::begin(), gem5::statistics::Output::beginGroup(), gem5::statistics::DistData::bucket_size, cast_stat_info(), gem5::statistics::Info::check(), gem5::statistics::DistData::cvec, gem5::statistics::DistInfo::data, gem5::statistics::Info::desc, gem5::statistics::Info::enable(), gem5::statistics::enable(), gem5::statistics::enabled(), gem5::statistics::Output::end(), gem5::statistics::Output::endGroup(), gem5::statistics::Info::flags, gem5::statistics::Group::getStatGroups(), gem5::statistics::units::Base::getUnitString(), gem5::statistics::Info::id, gem5::statistics::initHDF5(), gem5::statistics::initSimStats(), gem5::statistics::initText(), gem5::statistics::DistData::logs, gem5::ArmISA::m, gem5::statistics::DistData::max_val, gem5::statistics::DistData::min_val, name(), gem5::statistics::Info::name, gem5::statistics::DistData::overflow, gem5::statistics::periodicStatDump(), gem5::statistics::Group::preDumpStats(), gem5::statistics::Info::prepare(), gem5::statistics::processDumpQueue(), gem5::statistics::processResetQueue(), gem5::statistics::registerPythonStatsHandlers(), gem5::statistics::Group::regStats(), gem5::statistics::Info::reset(), gem5::statistics::Group::resetStats(), gem5::statistics::ScalarInfo::result(), gem5::statistics::VectorInfo::result(), gem5::statistics::schedStatEvent(), gem5::statistics::VectorInfo::size(), gem5::statistics::DistData::squares, gem5::statistics::statsList(), gem5::statistics::FormulaInfo::str(), gem5::statistics::VectorInfo::subdescs, gem5::statistics::VectorInfo::subnames, gem5::statistics::DistData::sum, gem5::statistics::ScalarInfo::total(), gem5::statistics::VectorInfo::total(), gem5::statistics::DistData::underflow, gem5::statistics::Info::unit, gem5::statistics::updateEvents(), gem5::statistics::Output::valid(), gem5::statistics::ScalarInfo::value(), gem5::statistics::VectorInfo::value(), gem5::statistics::Info::visit(), and gem5::statistics::Info::zero().
void gem5::pybind_init_stats | ( | pybind11::module_ & | m_native | ) |
Referenced by gem5::EmbeddedPyBind::initAll().
void gem5::pybind_init_tracers | ( | py::module_ & | m_native | ) |
Definition at line 85 of file pygen.cc.
References gem5::ArmISA::m.
|
inline |
|
static |
Definition at line 100 of file init_signals.cc.
References STATIC_ERR.
Referenced by abortHandler(), and segvHandler().
SyscallReturn gem5::readFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | tgt_fd, | ||
VPtr<> | buf_ptr, | ||
int | nbytes | ||
) |
Definition at line 2400 of file syscall_emul.hh.
References gem5::BufferArg::bufferPtr(), gem5::BaseBufferArg::copyOut(), gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), gem5::MipsISA::p, and gem5::SyscallReturn::retry().
SyscallReturn gem5::readlinkatFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | dirfd, | ||
VPtr<> | pathname, | ||
VPtr<> | buf, | ||
size_t | bufsiz | ||
) |
Target readlinkat() handler.
Definition at line 938 of file syscall_emul.hh.
References readlinkFunc(), and warn.
SyscallReturn gem5::readlinkFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
VPtr<> | pathname, | ||
VPtr<> | buf_ptr, | ||
size_t | bufsiz | ||
) |
Target readlink() handler.
Definition at line 391 of file syscall_emul.cc.
References gem5::BufferArg::bufferPtr(), gem5::BaseBufferArg::copyOut(), fatal, gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), gem5::MipsISA::p, gem5::PortProxy::tryReadString(), and warn_once.
Referenced by readlinkatFunc(), gem5::ArmISA::SyscallTable32::SyscallTable32(), and gem5::ArmISA::SyscallTable64::SyscallTable64().
Fault gem5::readMemAtomic | ( | XC * | xc, |
Addr | addr, | ||
uint8_t * | mem, | ||
std::size_t | size, | ||
Request::Flags | flags, | ||
const std::vector< bool > & | byte_enable | ||
) |
Read from memory in atomic mode.
Definition at line 102 of file memhelpers.hh.
References gem5::X86ISA::addr, and mem.
Referenced by readMemAtomic().
Fault gem5::readMemAtomic | ( | XC * | xc, |
Trace::InstRecord * | traceData, | ||
Addr | addr, | ||
MemT & | mem, | ||
Request::Flags | flags | ||
) |
Read from memory in atomic mode.
Definition at line 112 of file memhelpers.hh.
References gem5::X86ISA::addr, gtoh(), mem, NoFault, readMemAtomic(), and gem5::Trace::InstRecord::setData().
Fault gem5::readMemAtomicBE | ( | XC * | xc, |
Trace::InstRecord * | traceData, | ||
Addr | addr, | ||
MemT & | mem, | ||
Request::Flags | flags | ||
) |
Definition at line 138 of file memhelpers.hh.
References gem5::X86ISA::addr, and mem.
Fault gem5::readMemAtomicLE | ( | XC * | xc, |
Trace::InstRecord * | traceData, | ||
Addr | addr, | ||
MemT & | mem, | ||
Request::Flags | flags | ||
) |
Definition at line 129 of file memhelpers.hh.
References gem5::X86ISA::addr, and mem.
SyscallReturn gem5::readvFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | tgt_fd, | ||
uint64_t | tiov_base, | ||
size_t | count | ||
) |
Target readv() handler.
Definition at line 1562 of file syscall_emul.hh.
References gem5::ArmISA::byteOrder(), gem5::X86ISA::count, gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), gtoh(), htog(), gem5::ArmISA::i, gem5::MipsISA::p, gem5::PortProxy::readBlob(), and gem5::PortProxy::writeBlob().
SyscallReturn gem5::recvfromFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | tgt_fd, | ||
VPtr<> | bufrPtr, | ||
size_t | bufrLen, | ||
int | flags, | ||
VPtr<> | addrPtr, | ||
VPtr<> | addrlenPtr | ||
) |
Definition at line 1221 of file syscall_emul.cc.
References gem5::BufferArg::bufferPtr(), gem5::BaseBufferArg::copyIn(), gem5::BaseBufferArg::copyOut(), gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), gem5::MipsISA::p, and gem5::ArmISA::sa.
SyscallReturn gem5::recvmsgFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | tgt_fd, | ||
VPtr<> | msgPtr, | ||
int | flags | ||
) |
struct msghdr { void *msg_name; // optional address socklen_t msg_namelen; // size of address struct iovec *msg_iov; // iovec array size_t msg_iovlen; // number entries in msg_iov i // entries correspond to buffer void *msg_control; // ancillary data size_t msg_controllen; // ancillary data buffer len int msg_flags; // flags on received message };
struct iovec { void *iov_base; // starting address size_t iov_len; // number of bytes to transfer };
The plan with this system call is to replace all of the pointers in the structure and the substructure with BufferArg class pointers. We will copy every field from the structures into our BufferArg classes.
We will use these address place holders to retain the pointers which we are going to replace with our own buffers in our simulator address space.
Record msg_name pointer then replace with buffer pointer.
Record msg_iov pointer then replace with buffer pointer. Also, setup an array of buffer pointers for the iovec structs record and replace their pointers with buffer pointers.
Record msg_control pointer then replace with buffer pointer.
Definition at line 1313 of file syscall_emul.cc.
References gem5::BufferArg::bufferPtr(), gem5::BaseBufferArg::copyIn(), gem5::BaseBufferArg::copyOut(), gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), gem5::ArmISA::i, and gem5::MipsISA::p.
void gem5::registerExitCallback | ( | const std::function< void()> & | ) |
Register an exit callback.
Register a callback to be called when Python exits.
Defined in sim/main.cc.
Definition at line 146 of file core.cc.
References exitCallbacks().
Referenced by gem5::BaseTags::BaseTags(), gem5::CowDiskImage::CowDiskImage(), gem5::Trace::InstPBTrace::createTraceFile(), gem5::MemTraceProbe::MemTraceProbe(), and gem5::VirtIO9PDiod::VirtIO9PDiod().
void gem5::registerNativeModules | ( | ) |
Definition at line 239 of file init.cc.
References gem5::EmbeddedPyBind::initAll(), and panic.
Referenced by main().
SyscallReturn gem5::renameatFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | olddirfd, | ||
VPtr<> | oldpath, | ||
int | newdirfd, | ||
VPtr<> | newpath | ||
) |
Target renameat() handler.
Definition at line 949 of file syscall_emul.hh.
References renameFunc(), and warn.
SyscallReturn gem5::renameFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
VPtr<> | oldpath, | ||
VPtr<> | newpath | ||
) |
Target rename() handler.
Definition at line 520 of file syscall_emul.cc.
References gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), gem5::MipsISA::p, and gem5::PortProxy::tryReadString().
Referenced by renameatFunc(), gem5::ArmISA::SyscallTable32::SyscallTable32(), and gem5::ArmISA::SyscallTable64::SyscallTable64().
|
static |
Definition at line 189 of file mshr.cc.
References gem5::Packet::allocate(), gem5::Packet::cmd, DPRINTF, gem5::Packet::hasData(), gem5::Packet::hasRespData(), gem5::MemCmd::ReadExReq, gem5::MemCmd::SCUpgradeFailReq, gem5::MemCmd::SCUpgradeReq, gem5::MemCmd::StoreCondFailReq, gem5::MemCmd::StoreCondReq, and gem5::MemCmd::UpgradeReq.
Referenced by gem5::MSHR::allocateTarget(), and gem5::MSHR::TargetList::replaceUpgrades().
std::enable_if_t<std::is_integral<T>::value && sizeof(T) == 1, T> gem5::reverseBits | ( | T | val, |
size_t | size = sizeof(T) |
||
) |
Definition at line 251 of file bitfield.hh.
References reverseBitsLookUpTable, and gem5::X86ISA::val.
SyscallReturn gem5::rmdirFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
VPtr<> | pathname | ||
) |
Definition at line 1056 of file syscall_emul.cc.
References gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), gem5::MipsISA::p, and gem5::PortProxy::tryReadString().
Definition at line 154 of file types.hh.
References MicroPCRomBit.
Referenced by gem5::X86ISA::X86FaultBase::invoke(), gem5::X86ISA::InitInterrupt::invoke(), and TEST().
|
inline |
void gem5::SafeRead | ( | std::ifstream & | stream, |
T & | data | ||
) |
Definition at line 225 of file disk_image.cc.
References data, and SafeRead().
void gem5::SafeRead | ( | std::ifstream & | stream, |
void * | data, | ||
int | count | ||
) |
Definition at line 210 of file disk_image.cc.
References gem5::X86ISA::count, data, and panic.
Referenced by gem5::CowDiskImage::open(), SafeRead(), and SafeReadSwap().
void gem5::SafeReadSwap | ( | std::ifstream & | stream, |
T & | data | ||
) |
Definition at line 232 of file disk_image.cc.
References data, letoh(), and SafeRead().
Referenced by gem5::CowDiskImage::open().
void gem5::SafeWrite | ( | std::ofstream & | stream, |
const T & | data | ||
) |
Definition at line 308 of file disk_image.cc.
References data, and SafeWrite().
void gem5::SafeWrite | ( | std::ofstream & | stream, |
const void * | data, | ||
int | count | ||
) |
Definition at line 293 of file disk_image.cc.
References gem5::X86ISA::count, data, and panic.
Referenced by SafeWrite(), SafeWriteSwap(), and gem5::CowDiskImage::save().
void gem5::SafeWriteSwap | ( | std::ofstream & | stream, |
const T & | data | ||
) |
Definition at line 315 of file disk_image.cc.
References data, letoh(), and SafeWrite().
Referenced by gem5::CowDiskImage::save().
void gem5::schedBreak | ( | Tick | when | ) |
Cause the simulator to execute a breakpoint.
when | the tick to break |
Definition at line 86 of file debug.cc.
References warn.
Referenced by pybind_init_debug(), and schedRelBreak().
SyscallReturn gem5::schedGetaffinityFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
pid_t | pid, | ||
size_t | cpusetsize, | ||
VPtr<> | cpu_set_mask | ||
) |
Target sched_getaffinity.
Definition at line 2619 of file syscall_emul.hh.
References gem5::BufferArg::bufferPtr(), gem5::BaseBufferArg::copyIn(), gem5::BaseBufferArg::copyOut(), gem5::ThreadContext::getSystemPtr(), gem5::ThreadContext::getVirtProxy(), gem5::ArmISA::i, gem5::System::Threads::size(), gem5::System::threads, and warnUnsupportedOS().
void gem5::schedRelBreak | ( | Tick | delta | ) |
Cause the simulator to execute a breakpoint relative to the current tick.
delta | the number of ticks to execute until breaking |
Definition at line 93 of file debug.cc.
References curTick(), and schedBreak().
Referenced by gem5::RiscvISA::BreakpointFault::invokeSE().
|
static |
Segmentation fault signal handler.
Definition at line 161 of file init_signals.cc.
References print_backtrace(), raiseFatalSignal(), and STATIC_ERR.
Referenced by initSignals().
SyscallReturn gem5::selectFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | nfds, | ||
VPtr< typename OS::fd_set > | readfds, | ||
VPtr< typename OS::fd_set > | writefds, | ||
VPtr< typename OS::fd_set > | errorfds, | ||
VPtr< typename OS::timeval > | timeout | ||
) |
Host fields. Notice that these use the definitions from the system headers instead of the gem5 headers and libraries. If the host and target have different header file definitions, this will not work.
We need to translate the target file descriptor set into a host file descriptor set. This involves both our internal process fd array and the fd_set defined in Linux header files. The nfds field also needs to be updated as it will be only target specific after retrieving it from the target; the nfds value is expected to be the highest file descriptor that needs to be checked, so we need to extend it out for nfds_h when we do the update.
By this point, we know that we are looking at a valid file descriptor set on the target. We need to check if the target file descriptor value passed in as iter is part of the set.
We know that the target file descriptor belongs to the set, but we do not yet know if the file descriptor is valid or that we have a host mapping. Check that now.
Add the sim_fd to tgt_fd translation into trans_map for use later when we need to zero the target fd_set structures and then update them with hits returned from the host select call.
We know that the host file descriptor exists so now we check if we need to update the max count for nfds_h before passing the duplicated structure into the host.
Add the host file descriptor to the set that we are going to pass into the host.
It might be possible to decrement the timeval based on some derivation of wall clock determined from elapsed simulator ticks but that seems like overkill. Rather, we just set the timeval with zero timeout. (There is no reason to block during the simulation as it only decreases simulator performance.)
If the timeval pointer is null, setup a new timeval structure to pass into the host select call. Unfortunately, we will need to manually check the return value and throw a retry fault if the return value is zero. Allowing the system call to block will likely deadlock the event queue.
If blocking indefinitely, check the signal list to see if a signal would break the poll out of the retry cycle and try to return the signal interrupt instead.
We need to translate the host file descriptor set into a target file descriptor set. This involves both our internal process fd array and the fd_set defined in header files.
Definition at line 2227 of file syscall_emul.hh.
References gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getSystemPtr(), gem5::ArmISA::i, gem5::MipsISA::p, gem5::SyscallReturn::retry(), and gem5::System::signalList.
SyscallReturn gem5::sendmsgFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | tgt_fd, | ||
VPtr<> | msgPtr, | ||
int | flags | ||
) |
Reserve buffer space.
Assuming msgHdr.msg_iovlen >= 1, then there is no point calling recvmsg without a buffer.
Cannot instantiate buffers till inside the loop. Create array to hold buffer addresses, to be used during copyIn of send data.
Iterate through the iovec structures: Get the base buffer addreses, reserve iov_len amount of space for each. Put the buf address into the bufferArray for later retrieval.
Free dynamically allocated memory.
Malloced above.
Definition at line 1451 of file syscall_emul.cc.
References gem5::BufferArg::bufferPtr(), gem5::BaseBufferArg::copyIn(), gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), and gem5::MipsISA::p.
SyscallReturn gem5::sendtoFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | tgt_fd, | ||
VPtr<> | bufrPtr, | ||
size_t | bufrLen, | ||
int | flags, | ||
VPtr<> | addrPtr, | ||
socklen_t | addrLen | ||
) |
Definition at line 1281 of file syscall_emul.cc.
References gem5::BufferArg::bufferPtr(), gem5::BaseBufferArg::copyIn(), gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), gem5::MipsISA::p, and gem5::ArmISA::sa.
void gem5::serialize | ( | const ThreadContext & | tc, |
CheckpointOut & | cp | ||
) |
Thread context serialization helpers.
These helper functions provide a way to the data in a ThreadContext. They are provided as separate helper function since implementing them as members of the ThreadContext interface would be confusing when the ThreadContext is exported via a proxy.
Definition at line 157 of file thread_context.cc.
References arrayParamOut, CCRegClass, FloatRegClass, gem5::ThreadContext::getIsaPtr(), gem5::ArmISA::i, IntRegClass, gem5::ThreadContext::pcState(), gem5::ThreadContext::readCCRegFlat(), gem5::ThreadContext::readFloatRegFlat(), gem5::ThreadContext::readIntRegFlat(), gem5::ThreadContext::readVecPredRegFlat(), gem5::ThreadContext::readVecRegFlat(), gem5::BaseISA::regClasses(), SERIALIZE_ARRAY, SERIALIZE_CONTAINER, VecPredRegClass, and VecRegClass.
Referenced by exitSimLoop(), gem5::o3::ThreadState::serialize(), gem5::SimpleThread::serialize(), and gem5::Iris::BaseCPU::serializeThread().
void gem5::setClockFrequency | ( | Tick | tps | ) |
Definition at line 118 of file core.cc.
References panic_if.
Referenced by pybind_init_core(), and sc_core::sc_set_time_resolution().
|
inline |
Definition at line 1022 of file x86_cpu.cc.
References gem5::MipsISA::index, gem5::X86ISA::MISCREG_SEG_BASE(), gem5::X86ISA::MISCREG_SEG_LIMIT(), and gem5::ThreadContext::setMiscReg().
|
inline |
Definition at line 997 of file x86_cpu.cc.
References gem5::ArmISA::attr, gem5::MipsISA::index, gem5::X86ISA::MISCREG_SEG_ATTR(), gem5::X86ISA::MISCREG_SEG_BASE(), gem5::X86ISA::MISCREG_SEG_LIMIT(), gem5::X86ISA::MISCREG_SEG_SEL(), and gem5::ThreadContext::setMiscReg().
void gem5::setDebugFlag | ( | const char * | string | ) |
Definition at line 163 of file debug.cc.
References gem5::debug::changeFlag().
Referenced by gem5::Trace::TarmacTracer::TarmacTracer(), and TEST().
|
inline |
Definition at line 42 of file fenv.cc.
References gem5::ArmISA::rm, and roundOps.
|
inlinestatic |
Definition at line 742 of file x86_cpu.cc.
References gem5::MipsISA::index, gem5::X86ISA::MISCREG_SEG_BASE(), gem5::X86ISA::MISCREG_SEG_LIMIT(), and gem5::ThreadContext::readMiscRegNoEffect().
|
inlinestatic |
Definition at line 717 of file x86_cpu.cc.
References gem5::ArmISA::attr, gem5::MipsISA::index, gem5::X86ISA::MISCREG_SEG_ATTR(), gem5::X86ISA::MISCREG_SEG_BASE(), gem5::X86ISA::MISCREG_SEG_LIMIT(), gem5::X86ISA::MISCREG_SEG_SEL(), and gem5::ThreadContext::readMiscRegNoEffect().
void gem5::setOutputDir | ( | const std::string & | dir | ) |
Definition at line 127 of file core.cc.
References gem5::OutputDirectory::setDirectory(), and simout.
Referenced by pybind_init_core().
SyscallReturn gem5::setpgidFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | pid, | ||
int | pgid | ||
) |
Target setpgid() handler.
Definition at line 893 of file syscall_emul.cc.
References gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getSystemPtr(), gem5::ThreadContext::Halted, gem5::Process::pgid(), gem5::Process::pid(), gem5::ThreadContext::status(), and gem5::System::threads.
void gem5::setRemoteGDBPort | ( | int | port | ) |
Definition at line 128 of file debug.cc.
References remote_gdb_base_port.
Referenced by pybind_init_debug().
SyscallReturn gem5::setsockoptFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | tgt_fd, | ||
int | level, | ||
int | optname, | ||
VPtr<> | valPtr, | ||
socklen_t | len | ||
) |
Definition at line 1622 of file syscall_emul.cc.
References gem5::BufferArg::bufferPtr(), gem5::BaseBufferArg::copyIn(), gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), gem5::ArmISA::len, gem5::X86ISA::level, gem5::MipsISA::p, and gem5::ArmISA::status.
SyscallReturn gem5::setTidAddressFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
uint64_t | tidPtr | ||
) |
Target set_tid_address() handler.
Definition at line 269 of file syscall_emul.cc.
References gem5::Process::childClearTID, and gem5::ThreadContext::getProcessPtr().
Referenced by gem5::ArmISA::SyscallTable32::SyscallTable32(), and gem5::ArmISA::SyscallTable64::SyscallTable64().
|
static |
Definition at line 70 of file init_signals.cc.
References fatalSigStack, and gem5::X86ISA::stack.
Referenced by initSignals().
SyscallReturn gem5::shutdownFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | tgt_fd, | ||
int | how | ||
) |
Target shutdown() handler.
Definition at line 1149 of file syscall_emul.cc.
References gem5::ThreadContext::getProcessPtr(), and gem5::MipsISA::p.
GlobalSimLoopExitEvent * gem5::simulate | ( | Tick | num_cycles | ) |
Simulate for num_cycles additional cycles.
If num_cycles is -1 (the default), do not limit simulation; some other event must terminate the loop. Exported to Python.
Delete the simulation quantum event.
Definition at line 83 of file simulate.cc.
References curTick(), gem5::BaseGlobalEvent::deschedule(), doSimLoop(), fatal, gem5::Event::globalEvent(), gem5::ArmISA::i, inform, inParallelMode, mainEventQueue, MaxTick, numMainEventQueues, gem5::EventBase::Progress_Event_Pri, gem5::BaseGlobalEvent::reschedule(), simQuantum, simulate_limit_event, thread_loop(), threadBarrier, and gem5::Barrier::wait().
Referenced by gem5::ruby::RubySystem::memWriteback(), pybind_init_event(), and gem5::ruby::RubySystem::startup().
void gem5::sleep | ( | const Time & | time | ) |
Definition at line 142 of file time.cc.
References gem5::ArmISA::ts.
Referenced by gem5::Root::timeSync().
SyscallReturn gem5::socketFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | domain, | ||
int | type, | ||
int | prot | ||
) |
Definition at line 2187 of file syscall_emul.hh.
References gem5::ArmISA::domain, gem5::ThreadContext::getProcessPtr(), gem5::MipsISA::p, gem5::X86ISA::prot, and gem5::X86ISA::type.
SyscallReturn gem5::socketpairFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | domain, | ||
int | type, | ||
int | prot, | ||
VPtr<> | svPtr | ||
) |
Definition at line 2204 of file syscall_emul.hh.
References gem5::BufferArg::bufferPtr(), gem5::BaseBufferArg::copyOut(), gem5::ArmISA::domain, gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), gem5::MipsISA::p, gem5::X86ISA::prot, gem5::ArmISA::status, and gem5::X86ISA::type.
|
inlinestatic |
Definition at line 421 of file ns_gige_reg.h.
References CFGR_DUPSTS, CFGR_LNKSTS, CFGR_SPDSTS0, CFGR_SPDSTS1, and CFGR_ZERO.
bool gem5::split_first | ( | const std::string & | s, |
std::string & | lhs, | ||
std::string & | rhs, | ||
char | c | ||
) |
Definition at line 38 of file str.cc.
References gem5::ArmISA::c, gem5::ArmISA::offset, and gem5::ArmISA::s.
Referenced by TEST().
bool gem5::split_last | ( | const std::string & | s, |
std::string & | lhs, | ||
std::string & | rhs, | ||
char | c | ||
) |
Definition at line 53 of file str.cc.
References gem5::ArmISA::c, gem5::ArmISA::offset, and gem5::ArmISA::s.
Referenced by TEST().
|
inline |
Return true if 's' starts with the prefix string 'prefix'.
Definition at line 242 of file str.hh.
References gem5::ArmISA::s.
Referenced by gem5::Process::absolutePath(), chdirFunc(), gem5::Process::checkPathRedirect(), normalizePath(), openatFunc(), procInfo(), gem5::System::stripSystemName(), and TEST().
|
inline |
Return true if 's' starts with the prefix string 'prefix'.
Definition at line 252 of file str.hh.
References gem5::ArmISA::s.
|
inline |
Return true if 's' starts with the prefix string 'prefix'.
Definition at line 262 of file str.hh.
References gem5::ArmISA::s.
SyscallReturn gem5::stat64Func | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
VPtr<> | pathname, | ||
VPtr< typename OS::tgt_stat64 > | tgt_stat | ||
) |
Target stat64() handler.
Definition at line 1208 of file syscall_emul.hh.
References gem5::Process::checkPathRedirect(), gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), and gem5::PortProxy::tryReadString().
SyscallReturn gem5::statfsFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
VPtr<> | pathname, | ||
VPtr< typename OS::tgt_statfs > | tgt_stat | ||
) |
Target statfs() handler.
Definition at line 1388 of file syscall_emul.hh.
References gem5::Process::checkPathRedirect(), gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), gem5::PortProxy::tryReadString(), and warnUnsupportedOS().
SyscallReturn gem5::statFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
VPtr<> | pathname, | ||
VPtr< typename OS::tgt_stat > | tgt_stat | ||
) |
Target stat() handler.
Definition at line 1181 of file syscall_emul.hh.
References gem5::Process::checkPathRedirect(), gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), and gem5::PortProxy::tryReadString().
|
inline |
Definition at line 156 of file byteswap.hh.
References gem5::ArmISA::a, swap_byte(), and gem5::ArmISA::v.
|
inline |
Definition at line 76 of file base.hh.
References gem5::ArmISA::v.
Referenced by betole(), htole(), letobe(), letoh(), swap_byte(), and TEST().
|
inline |
Definition at line 85 of file base.hh.
References swap_byte(), and gem5::ArmISA::v.
|
inline |
Definition at line 116 of file byteswap.hh.
References swap_byte64(), and gem5::RiscvISA::x.
|
inline |
Definition at line 124 of file byteswap.hh.
References swap_byte32(), and gem5::RiscvISA::x.
|
inline |
Definition at line 132 of file byteswap.hh.
References swap_byte16(), and gem5::RiscvISA::x.
|
inline |
Definition at line 140 of file byteswap.hh.
References gem5::RiscvISA::x.
|
inline |
Definition at line 101 of file byteswap.hh.
References gem5::RiscvISA::x.
Referenced by swap_byte(), and TEST().
|
inline |
Definition at line 87 of file byteswap.hh.
References gem5::RiscvISA::x.
Referenced by swap_byte(), and TEST().
|
inline |
Definition at line 68 of file byteswap.hh.
References gem5::RiscvISA::x.
Referenced by swap_byte(), and TEST().
SyscallReturn gem5::symlinkFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
VPtr<> | pathname, | ||
VPtr<> | new_pathname | ||
) |
Target symlink() handler.
Definition at line 485 of file syscall_emul.cc.
References gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), and gem5::MipsISA::p.
|
static |
Definition at line 65 of file timer.cc.
Referenced by gem5::PosixKvmTimer::PosixKvmTimer().
SyscallReturn gem5::sysinfoFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
VPtr< typename OS::tgt_sysinfo > | sysinfo | ||
) |
Target sysinfo() handler.
Definition at line 964 of file syscall_emul.hh.
References gem5::ThreadContext::getProcessPtr(), and seconds_since_epoch.
void gem5::takeCheckpoint | ( | Tick | when | ) |
Function to cause the simulator to take a checkpoint from the debugger.
Cause the simulator to return to python to create a checkpoint.
when | the cycle to break |
Definition at line 102 of file debug.cc.
References curTick(), and exitSimLoop().
void gem5::takeOverFrom | ( | ThreadContext & | new_tc, |
ThreadContext & | old_tc | ||
) |
Copy state between thread contexts in preparation for CPU handover.
new_tc | Destination ThreadContext. |
old_tc | Source ThreadContext. |
Definition at line 254 of file thread_context.cc.
References gem5::ThreadContext::contextId(), gem5::ThreadContext::copyArchRegs(), FullSystem, gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getSystemPtr(), gem5::ThreadContext::Halted, gem5::ThreadContext::setContextId(), gem5::ThreadContext::setStatus(), gem5::ThreadContext::setThreadId(), gem5::ThreadContext::status(), and gem5::ThreadContext::threadId().
Referenced by gem5::SimpleThread::takeOverFrom(), and gem5::o3::ThreadContext::takeOverFrom().
|
static |
Test and clear the global async_event flag, such that each time the flag is cleared, only one thread returns true (and thus is assigned to handle the corresponding async event(s)).
Definition at line 160 of file simulate.cc.
References async_event, and asyncEventMutex.
Referenced by doSimLoop().
SyscallReturn gem5::tgkillFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | tgid, | ||
int | tid, | ||
int | sig | ||
) |
This system call is intended to allow killing a specific thread within an arbitrary thread group if sanctioned with permission checks. It's usually true that threads share the termination signal as pointed out by the pthread_kill man page and this seems to be the intended usage. Due to this being an emulated environment, assume the following: Threads are allowed to call tgkill because the EUID for all threads should be the same. There is no signal handling mechanism for kernel registration of signal handlers since signals are poorly supported in emulation mode. Since signal handlers cannot be registered, all threads within in a thread group must share the termination signal. We never exhaust PIDs so there's no chance of finding the wrong one due to PID rollover.
Definition at line 2143 of file syscall_emul.hh.
References exitGroupFunc(), gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getSystemPtr(), gem5::Process::pid(), gem5::Process::tgid(), and gem5::System::threads.
|
static |
The main function for all subordinate threads (i.e., all threads other than the main thread).
These threads start by waiting on threadBarrier. Once all threads have arrived at threadBarrier, they enter the simulation loop concurrently. When they exit the loop, they return to waiting on threadBarrier. This process is repeated until the simulation terminates.
Definition at line 67 of file simulate.cc.
References doSimLoop(), threadBarrier, and gem5::Barrier::wait().
Referenced by simulate().
SyscallReturn gem5::timeFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
VPtr<> | taddr | ||
) |
Target time() function.
Definition at line 2126 of file syscall_emul.hh.
References gem5::ArmISA::byteOrder(), getElapsedTimeMicro(), gem5::ThreadContext::getVirtProxy(), htog(), gem5::MipsISA::p, seconds_since_epoch, and gem5::ArmISA::t.
SyscallReturn gem5::timesFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
VPtr< typename OS::tms > | bufp | ||
) |
Target times() function.
Definition at line 2107 of file syscall_emul.hh.
References gem5::ArmISA::byteOrder(), curTick(), htog(), and gem5::sim_clock::as_int::s.
|
inline |
Turn a string representation of a boolean into a boolean value.
Definition at line 204 of file str.hh.
References gem5::ArmISA::s, and to_lower().
Referenced by gem5::ParseParam< bool >::parse(), sc_dt::sc_uint_bitref_r::print(), sc_dt::sc_int_bitref_r::print(), sc_dt::sc_unsigned_bitref_r::print(), sc_dt::sc_signed_bitref_r::print(), sc_dt::scfx_rep::set_slice(), and TEST().
|
inline |
Definition at line 74 of file str.hh.
References gem5::ArmISA::c, gem5::ArmISA::len, and gem5::ArmISA::s.
|
inline |
Definition at line 217 of file pixel.hh.
References gem5::PixelConverter::rgba8888_le, and gem5::PixelConverter::toPixel().
Referenced by gem5::pseudo_inst::loadsymbol(), gem5::ParseParam< T, decltype(to_number("", std::declval< T & >()), void())>::parse(), gem5::ParseParam< BitUnionType< T > >::parse(), and TEST().
|
inline |
Turn a string representation of a number, either integral, floating point, or enum into an actual number.
Use to_bool for booleans.
value | The string representing the number |
retval | The resulting value |
Definition at line 186 of file str.hh.
References panic.
void gem5::tokenize | ( | std::vector< std::string > & | v, |
const std::string & | s, | ||
char | token, | ||
bool | ignore | ||
) |
Definition at line 68 of file str.cc.
References ignore(), gem5::ArmISA::s, gem5::scmi::token, and gem5::ArmISA::v.
Referenced by arrayParamIn(), gem5::ObjectMatch::domatch(), gem5::CxxIniFile::getParamVector(), gem5::statistics::Info::less(), gem5::IniFile::Section::printUnreferenced(), gem5::ObjectMatch::setExpression(), TEST(), and gem5::statistics::validateStatName().
|
inline |
Returns true if the given memory access (address, size) needs to be fragmented across aligned fixed-size blocks.
addr | Address of the memory access. |
size | Size of the memory access. |
block_size | Block size in bytes. |
Definition at line 80 of file utils.hh.
References gem5::X86ISA::addr, and addrBlockOffset().
Referenced by gem5::minor::LSQ::pushRequest(), and gem5::o3::LSQ::pushRequest().
SyscallReturn gem5::truncate64Func | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
VPtr<> | pathname, | ||
int64_t | length | ||
) |
Target truncate64() handler.
Definition at line 573 of file syscall_emul.cc.
References gem5::Process::checkPathRedirect(), gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), and gem5::PortProxy::tryReadString().
SyscallReturn gem5::truncateFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
VPtr<> | pathname, | ||
off_t | length | ||
) |
Target truncate() handler.
Definition at line 542 of file syscall_emul.cc.
References gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), gem5::MipsISA::p, and gem5::PortProxy::tryReadString().
Referenced by gem5::ArmISA::SyscallTable32::SyscallTable32(), and gem5::ArmISA::SyscallTable64::SyscallTable64().
|
static |
Definition at line 172 of file remote_gdb.cc.
References gem5::X86ISA::addr, gem5::BaseMMU::Execute, gem5::ThreadContext::getMMUPtr(), NoFault, gem5::BaseMMU::Read, and gem5::BaseMMU::translateFunctional().
Referenced by gem5::ArmISA::RemoteGDB::acc().
SyscallReturn gem5::umaskFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc | ||
) |
Target umask() handler.
Definition at line 613 of file syscall_emul.cc.
Referenced by gem5::ArmISA::SyscallTable32::SyscallTable32().
|
static |
Definition at line 55 of file mc146818.cc.
References gem5::X86ISA::val.
Referenced by gem5::MC146818::writeData().
SyscallReturn gem5::unimplementedFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc | ||
) |
Handler for unimplemented syscalls that we haven't thought about.
Definition at line 64 of file syscall_emul.cc.
References fatal, gem5::SyscallDesc::name(), and gem5::SyscallDesc::num().
SyscallReturn gem5::unlinkatFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | dirfd, | ||
VPtr<> | pathname | ||
) |
Target unlinkat() handler.
Definition at line 916 of file syscall_emul.hh.
References unlinkFunc(), and warn.
SyscallReturn gem5::unlinkFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
VPtr<> | pathname | ||
) |
Target unlink() handler.
Definition at line 449 of file syscall_emul.cc.
References gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), gem5::MipsISA::p, and gem5::PortProxy::tryReadString().
Referenced by gem5::ArmISA::SyscallTable32::SyscallTable32(), gem5::ArmISA::SyscallTable64::SyscallTable64(), and unlinkatFunc().
void gem5::unserialize | ( | ThreadContext & | tc, |
CheckpointIn & | cp | ||
) |
Definition at line 206 of file thread_context.cc.
References arrayParamIn(), CCRegClass, FloatRegClass, gem5::ThreadContext::getIsaPtr(), gem5::ArmISA::i, IntRegClass, gem5::ThreadContext::pcState(), gem5::BaseISA::regClasses(), gem5::ThreadContext::setCCRegFlat(), gem5::ThreadContext::setFloatRegFlat(), gem5::ThreadContext::setIntRegFlat(), gem5::ThreadContext::setVecPredRegFlat(), gem5::ThreadContext::setVecRegFlat(), gem5::GenericISA::DelaySlotPCState< InstWidth >::unserialize(), UNSERIALIZE_ARRAY, UNSERIALIZE_CONTAINER, VecPredRegClass, and VecRegClass.
Referenced by gem5::o3::ThreadState::unserialize(), and gem5::SimpleThread::unserialize().
|
static |
Definition at line 831 of file x86_cpu.cc.
References bitsToFloat64(), gem5::X86ISA::convX87TagsToXTags(), DPRINTF, gem5::X86ISA::FLOATREG_FPR(), gem5::X86ISA::FLOATREG_XMM_HIGH(), gem5::X86ISA::FLOATREG_XMM_LOW(), gem5::ArmISA::i, gem5::X86ISA::MISCREG_FCW, gem5::X86ISA::MISCREG_FOP, gem5::X86ISA::MISCREG_FSW, gem5::X86ISA::MISCREG_FTW, gem5::X86ISA::MISCREG_MXCSR, gem5::ThreadContext::readFloatReg(), gem5::ThreadContext::readMiscReg(), gem5::ThreadContext::readMiscRegNoEffect(), and gem5::X86ISA::storeFloat80().
Referenced by gem5::X86KvmCPU::updateKvmStateFPULegacy(), and gem5::X86KvmCPU::updateKvmStateFPUXSave().
|
static |
Definition at line 1051 of file x86_cpu.cc.
References gem5::X86ISA::convX87XTagsToTags(), DPRINTF, gem5::X86ISA::FLOATREG_FPR(), gem5::X86ISA::FLOATREG_XMM_HIGH(), gem5::X86ISA::FLOATREG_XMM_LOW(), floatToBits64(), gem5::ArmISA::i, gem5::X86ISA::loadFloat80(), gem5::X86ISA::MISCREG_FCW, gem5::X86ISA::MISCREG_FOP, gem5::X86ISA::MISCREG_FSW, gem5::X86ISA::MISCREG_FTAG, gem5::X86ISA::MISCREG_FTW, gem5::X86ISA::MISCREG_MXCSR, gem5::X86ISA::MISCREG_X87_TOP, gem5::ThreadContext::setFloatReg(), and gem5::ThreadContext::setMiscRegNoEffect().
Referenced by gem5::X86KvmCPU::updateThreadContextFPU(), and gem5::X86KvmCPU::updateThreadContextXSave().
SyscallReturn gem5::utimesFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
VPtr<> | pathname, | ||
VPtr< typename OS::timeval[2]> | tp | ||
) |
Target utimes() handler.
Definition at line 1943 of file syscall_emul.hh.
References gem5::ArmISA::byteOrder(), gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), gtoh(), gem5::ArmISA::i, and gem5::PortProxy::tryReadString().
SyscallReturn gem5::wait4Func | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
pid_t | pid, | ||
VPtr<> | statPtr, | ||
int | options, | ||
VPtr<> | rusagePtr | ||
) |
Currently, wait4 is only implemented so that it will wait for children exit conditions which are denoted by a SIGCHLD signals posted into the system signal list. We return no additional information via any of the parameters supplied to wait4. If nothing is found in the system signal list, we will wait indefinitely for SIGCHLD to post by retrying the call.
Definition at line 2467 of file syscall_emul.hh.
References gem5::BufferArg::bufferPtr(), gem5::BaseBufferArg::copyOut(), DPRINTF_SYSCALL, gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getSystemPtr(), gem5::ThreadContext::getVirtProxy(), gem5::MipsISA::p, gem5::SyscallReturn::retry(), and gem5::System::signalList.
void gem5::warnUnsupportedOS | ( | std::string | syscall_name | ) |
Definition at line 58 of file syscall_emul.cc.
References warn.
Referenced by eventfdFunc(), fallocateFunc(), schedGetaffinityFunc(), and statfsFunc().
SyscallReturn gem5::writeFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | tgt_fd, | ||
VPtr<> | buf_ptr, | ||
int | nbytes | ||
) |
We don't want to poll on /dev/random. The kernel will not enable the file descriptor for writing unless the entropy in the system falls below write_wakeup_threshold. This is not guaranteed to happen depending on host settings.
Definition at line 2428 of file syscall_emul.hh.
References gem5::BufferArg::bufferPtr(), gem5::BaseBufferArg::copyIn(), gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), gem5::MipsISA::p, and gem5::SyscallReturn::retry().
Fault gem5::writeMemAtomic | ( | XC * | xc, |
Trace::InstRecord * | traceData, | ||
const MemT & | mem, | ||
Addr | addr, | ||
Request::Flags | flags, | ||
uint64_t * | res | ||
) |
Definition at line 198 of file memhelpers.hh.
References gem5::X86ISA::addr, gtoh(), htog(), mem, gem5::Request::MEM_SWAP, gem5::Request::MEM_SWAP_COND, NoFault, gem5::Trace::InstRecord::setData(), and writeMemAtomic().
Fault gem5::writeMemAtomic | ( | XC * | xc, |
uint8_t * | mem, | ||
Addr | addr, | ||
std::size_t | size, | ||
Request::Flags | flags, | ||
uint64_t * | res, | ||
const std::vector< bool > & | byte_enable | ||
) |
Write to memory in atomic mode.
Definition at line 189 of file memhelpers.hh.
References gem5::X86ISA::addr, and mem.
Referenced by writeMemAtomic().
Fault gem5::writeMemAtomicBE | ( | XC * | xc, |
Trace::InstRecord * | traceData, | ||
const MemT & | mem, | ||
Addr | addr, | ||
Request::Flags | flags, | ||
uint64_t * | res | ||
) |
Definition at line 228 of file memhelpers.hh.
References gem5::X86ISA::addr, and mem.
Fault gem5::writeMemAtomicLE | ( | XC * | xc, |
Trace::InstRecord * | traceData, | ||
const MemT & | mem, | ||
Addr | addr, | ||
Request::Flags | flags, | ||
uint64_t * | res | ||
) |
Definition at line 219 of file memhelpers.hh.
References gem5::X86ISA::addr, and mem.
Fault gem5::writeMemTiming | ( | XC * | xc, |
Trace::InstRecord * | traceData, | ||
MemT | mem, | ||
Addr | addr, | ||
Request::Flags | flags, | ||
uint64_t * | res | ||
) |
Definition at line 156 of file memhelpers.hh.
References gem5::X86ISA::addr, htog(), mem, gem5::Trace::InstRecord::setData(), and writeMemTiming().
Fault gem5::writeMemTiming | ( | XC * | xc, |
uint8_t * | mem, | ||
Addr | addr, | ||
std::size_t | size, | ||
Request::Flags | flags, | ||
uint64_t * | res, | ||
const std::vector< bool > & | byte_enable | ||
) |
Write to memory in timing mode.
Definition at line 147 of file memhelpers.hh.
References gem5::X86ISA::addr, and mem.
Referenced by writeMemTiming().
Fault gem5::writeMemTimingBE | ( | XC * | xc, |
Trace::InstRecord * | traceData, | ||
MemT | mem, | ||
Addr | addr, | ||
Request::Flags | flags, | ||
uint64_t * | res | ||
) |
Definition at line 179 of file memhelpers.hh.
References gem5::X86ISA::addr, and mem.
Fault gem5::writeMemTimingLE | ( | XC * | xc, |
Trace::InstRecord * | traceData, | ||
MemT | mem, | ||
Addr | addr, | ||
Request::Flags | flags, | ||
uint64_t * | res | ||
) |
Definition at line 170 of file memhelpers.hh.
References gem5::X86ISA::addr, and mem.
Definition at line 72 of file intelmp.cc.
References gem5::X86ISA::addr, htole(), gem5::X86ISA::val, and gem5::PortProxy::writeBlob().
Referenced by gem5::X86ISA::intelmp::FloatingPointer::writeOut(), gem5::X86ISA::intelmp::ConfigTable::writeOut(), gem5::X86ISA::intelmp::Processor::writeOut(), gem5::X86ISA::intelmp::Bus::writeOut(), gem5::X86ISA::intelmp::IOAPIC::writeOut(), gem5::X86ISA::intelmp::IntAssignment::writeOut(), gem5::X86ISA::intelmp::AddrSpaceMapping::writeOut(), gem5::X86ISA::intelmp::BusHierarchy::writeOut(), and gem5::X86ISA::intelmp::CompatAddrSpaceMod::writeOut().
Definition at line 86 of file intelmp.cc.
References gem5::X86ISA::addr, gem5::ArmISA::i, warn, and gem5::PortProxy::writeBlob().
Referenced by gem5::X86ISA::intelmp::ConfigTable::writeOut(), and gem5::X86ISA::intelmp::Bus::writeOut().
|
static |
Write callback to use with libpng APIs.
pngPtr | pointer to the png_struct structure |
data | pointer to the data being written |
length | number of bytes being written |
Definition at line 67 of file pngwriter.cc.
References data.
Referenced by gem5::PngWriter::write().
Definition at line 49 of file e820.cc.
References gem5::X86ISA::addr, htole(), gem5::X86ISA::val, and gem5::PortProxy::writeBlob().
Referenced by gem5::X86ISA::E820Table::writeTo().
SyscallReturn gem5::writevFunc | ( | SyscallDesc * | desc, |
ThreadContext * | tc, | ||
int | tgt_fd, | ||
uint64_t | tiov_base, | ||
size_t | count | ||
) |
Target writev() handler.
Definition at line 1599 of file syscall_emul.hh.
References gem5::ArmISA::byteOrder(), gem5::X86ISA::count, gem5::ThreadContext::getProcessPtr(), gem5::ThreadContext::getVirtProxy(), gtoh(), gem5::ArmISA::i, gem5::MipsISA::p, and gem5::PortProxy::readBlob().
__thread EventQueue * gem5::_curEventQueue = NULL |
The current event queue for the running thread.
Access to this queue does not require any locking from the thread.
Definition at line 58 of file eventq.cc.
Referenced by curEventQueue().
|
static |
const uint64_t gem5::AmbaVendor = 0xb105f00d00000000ULL |
Definition at line 52 of file amba_device.cc.
volatile bool gem5::async_event = false |
Some asynchronous event has happened.
Definition at line 32 of file async.cc.
Referenced by doSimLoop(), dumprstStatsHandler(), dumpStatsHandler(), exitNowHandler(), ioHandler(), gem5::PollQueue::setupAsyncIO(), and testAndClearAsyncEvent().
volatile bool gem5::async_exception = false |
volatile bool gem5::async_exit = false |
Async request to exit simulator.
Definition at line 35 of file async.cc.
Referenced by doSimLoop(), and exitNowHandler().
volatile bool gem5::async_io = false |
Async I/O request (SIGIO).
Definition at line 36 of file async.cc.
Referenced by doSimLoop(), ioHandler(), and gem5::PollQueue::setupAsyncIO().
volatile bool gem5::async_statdump = false |
Async request to dump stats.
Definition at line 33 of file async.cc.
Referenced by doSimLoop(), dumprstStatsHandler(), and dumpStatsHandler().
volatile bool gem5::async_statreset = false |
Async request to reset stats.
Definition at line 34 of file async.cc.
Referenced by doSimLoop(), and dumprstStatsHandler().
std::mutex gem5::asyncEventMutex |
Mutex for handling async events.
Definition at line 49 of file simulate.cc.
Referenced by testAndClearAsyncEvent().
gem5::c2 = 31 |
Definition at line 174 of file intmath.hh.
Referenced by gem5::branch_prediction::MultiperspectivePerceptron::MPPBranchInfo::hash2(), gem5::MemCmd::operator!=(), and gem5::MemCmd::operator==().
const int gem5::CHECK_SIZE = (1 << CHECK_SIZE_BITS) |
Definition at line 49 of file Check.hh.
Referenced by gem5::CheckTable::addCheck(), gem5::CheckTable::CheckTable(), gem5::Check::initiateCheck(), gem5::Check::initiateFlush(), and gem5::Check::performCallback().
const int gem5::CHECK_SIZE_BITS = 2 |
Definition at line 48 of file Check.hh.
Referenced by gem5::CheckTable::addCheck().
int gem5::ckptCount = 0 |
Definition at line 59 of file serialize.cc.
int gem5::ckptMaxCount = 0 |
Definition at line 58 of file serialize.cc.
int gem5::ckptPrevCount = -1 |
Definition at line 60 of file serialize.cc.
std::map< std::string, CxxConfigDirectoryEntry * > gem5::cxx_config_directory |
Directory of all SimObject classes config details.
Definition at line 46 of file cxx_config.cc.
Referenced by gem5::CxxConfigManager::findObjectType().
|
constexpr |
Definition at line 50 of file amdgpu_device.hh.
Referenced by gem5::AMDGPUDevice::read(), gem5::AMDGPUDevice::readDoorbell(), gem5::AMDGPUDevice::write(), and gem5::AMDGPUDevice::writeDoorbell().
|
constexpr |
Definition at line 267 of file vec_reg.hh.
const uint8_t gem5::EEPROM_PMATCH0_ADDR = 0xC |
Definition at line 59 of file ns_gige.hh.
Referenced by gem5::NSGigE::eepromKick().
const uint8_t gem5::EEPROM_PMATCH1_ADDR = 0xB |
Definition at line 58 of file ns_gige.hh.
Referenced by gem5::NSGigE::eepromKick().
const uint8_t gem5::EEPROM_PMATCH2_ADDR = 0xA |
Definition at line 57 of file ns_gige.hh.
Referenced by gem5::NSGigE::eepromKick().
const uint8_t gem5::EEPROM_READ = 0x2 |
Definition at line 55 of file ns_gige.hh.
Referenced by gem5::NSGigE::eepromKick().
const uint8_t gem5::EEPROM_SIZE = 64 |
Definition at line 56 of file ns_gige.hh.
Referenced by gem5::NSGigE::eepromKick(), and gem5::IGbE::write().
|
static |
Definition at line 67 of file init_signals.cc.
Referenced by setupAltStack().
const uint16_t gem5::FHASH_ADDR = 0x100 |
Definition at line 51 of file ns_gige.hh.
Referenced by gem5::NSGigE::read(), and gem5::NSGigE::write().
const uint16_t gem5::FHASH_SIZE = 0x100 |
Definition at line 52 of file ns_gige.hh.
Referenced by gem5::NSGigE::read(), gem5::NSGigE::serialize(), gem5::NSGigE::unserialize(), and gem5::NSGigE::write().
const bool gem5::flag_DEBUG = false |
Definition at line 92 of file core.cc.
Referenced by pybind_init_core().
const bool gem5::flag_NDEBUG = false |
Definition at line 97 of file core.cc.
Referenced by pybind_init_core().
const bool gem5::flag_TRACING_ON = TRACING_ON |
Definition at line 99 of file core.cc.
Referenced by pybind_init_core().
|
static |
Definition at line 59 of file op_class.hh.
|
static |
Definition at line 60 of file op_class.hh.
|
static |
Definition at line 61 of file op_class.hh.
|
static |
Definition at line 64 of file op_class.hh.
|
static |
Definition at line 104 of file op_class.hh.
|
static |
Definition at line 105 of file op_class.hh.
|
static |
Definition at line 65 of file op_class.hh.
|
static |
Definition at line 63 of file op_class.hh.
|
static |
Definition at line 62 of file op_class.hh.
|
static |
Definition at line 66 of file op_class.hh.
|
constexpr |
Definition at line 49 of file amdgpu_device.hh.
Referenced by gem5::AMDGPUDevice::read(), gem5::AMDGPUDevice::readFrame(), gem5::AMDGPUDevice::write(), and gem5::AMDGPUDevice::writeFrame().
bool gem5::FullSystem |
The FullSystem variable can be used to determine the current mode of simulation.
Definition at line 223 of file root.cc.
Referenced by gem5::ArmISA::RemoteGDB::acc(), gem5::System::allocPhysPages(), gem5::BaseSimpleCPU::BaseSimpleCPU(), gem5::MiscRegOp64::checkEL1Trap(), gem5::BaseCPU::checkInterrupts(), gem5::minor::Execute::checkInterrupts(), gem5::ArmISA::ISA::clear(), gem5::ArmISA::ISA::clear32(), gem5::o3::Commit::commit(), gem5::X86ISA::TLB::finalizePhysical(), gem5::System::freeMemSize(), gem5::ArmSystem::getArmSystem(), gem5::ArmISA::ISA::getCurSveVecLenInBits(), gem5::minor::Execute::hasInterrupt(), gem5::ArmSystem::haveLPAE(), gem5::ArmSystem::haveSecurity(), gem5::ArmSystem::haveSemihosting(), gem5::ArmSystem::haveVirtualization(), gem5::ArmISA::ISA::MiscRegLUTEntryInitializer::highest(), gem5::ArmSystem::highestEL(), gem5::ArmSystem::highestELIs64(), gem5::ArmISA::ISA::initializeMiscRegMetadata(), gem5::ThreadState::initMemProxies(), gem5::Iris::ThreadContext::initMemProxies(), gem5::o3::CPU::insertThread(), gem5::FaultBase::invoke(), gem5::X86ISA::X86FaultBase::invoke(), gem5::SparcISA::SparcFaultBase::invoke(), gem5::X86ISA::X86Trap::invoke(), gem5::MipsISA::MipsFaultBase::invoke(), gem5::RiscvISA::RiscvFault::invoke(), gem5::GenericPageTableFault::invoke(), gem5::MipsISA::ResetFault::invoke(), gem5::MipsISA::CoprocessorUnusableFault::invoke(), gem5::MipsISA::AddressFault< TlbInvalidFault >::invoke(), gem5::X86ISA::InvalidOpcode::invoke(), gem5::SparcISA::FastInstructionAccessMMUMiss::invoke(), gem5::ArmISA::ArmFault::invoke(), gem5::SparcISA::FastDataAccessMMUMiss::invoke(), gem5::SparcISA::SpillNNormal::invoke(), gem5::MipsISA::TlbFault< TlbInvalidFault >::invoke(), gem5::SparcISA::FillNNormal::invoke(), gem5::SparcISA::TrapInstruction::invoke(), gem5::X86ISA::PageFault::invoke(), gem5::ArmISA::Reset::invoke(), gem5::ArmISA::UndefinedInstruction::invoke(), gem5::ArmISA::SupervisorCall::invoke(), gem5::ArmISA::SecureMonitorCall::invoke(), gem5::ArmISA::ArmSev::invoke(), gem5::ArmISA::ISA::ISA(), gem5::System::memSize(), gem5::MinorCPU::MinorCPU(), gem5::NonCachingSimpleCPU::NonCachingSimpleCPU(), gem5::ArmSemihosting::portProxy(), gem5::BaseSimpleCPU::postExecute(), gem5::BaseCPU::postInterrupt(), gem5::ruby::RubyPort::PioRequestPort::recvRangeChange(), gem5::BaseCPU::registerThreadContexts(), gem5::X86ISA::Interrupts::requestInterrupt(), gem5::Root::serialize(), gem5::CheckerCPU::setSystem(), gem5::o3::Decode::squash(), gem5::System::System(), takeOverFrom(), gem5::o3::CPU::tick(), gem5::o3::Fetch::tick(), gem5::ArmISA::TLB::TLB(), gem5::Trace::ExeTracerRecord::traceInst(), gem5::X86ISA::TLB::translate(), gem5::RiscvISA::TLB::translate(), gem5::X86ISA::GpuTLB::translate(), gem5::ArmISA::TLB::translateAtomic(), gem5::ArmISA::TLB::translateComplete(), gem5::X86ISA::TLB::translateFunctional(), gem5::SparcISA::TLB::translateFunctional(), gem5::ArmISA::TLB::translateFunctional(), and gem5::Checker< gem5::RefCountingPtr >::verify().
unsigned int gem5::FullSystemInt |
|
static |
Definition at line 165 of file remote_gdb.cc.
Referenced by gem5::BaseRemoteGDB::recv(), and gem5::BaseRemoteGDB::send().
|
static |
Definition at line 163 of file remote_gdb.cc.
Referenced by gem5::BaseRemoteGDB::recv(), and gem5::BaseRemoteGDB::send().
|
static |
Definition at line 164 of file remote_gdb.cc.
Referenced by gem5::BaseRemoteGDB::recv().
|
static |
Definition at line 162 of file remote_gdb.cc.
Referenced by gem5::BaseRemoteGDB::recv(), and gem5::BaseRemoteGDB::send().
|
static |
Definition at line 52 of file gpu_nomali.cc.
thread_local GTestLogOutput gem5::gtestLogOutput |
Definition at line 33 of file logging.cc.
Referenced by LoggingFixture::SetUp(), TEST(), and TEST_F().
gem5::high = AB + c2 |
Definition at line 176 of file intmath.hh.
Referenced by gem5::ArmSemihosting::callElapsed32(), gem5::ArmISA::FpOp::dbl(), gem5::guest_abi::Argument< ABI, Arg, typename std::enable_if_t< std::is_base_of< ArmISA::RegABI32, ABI >::value &&std::is_integral< Arg >::value &&ABI::template IsWide< Arg >::value > >::get(), gem5::guest_abi::Argument< X86ISA::EmuLinux::SyscallABI32, Arg, typename std::enable_if_t< std::is_integral< Arg >::value &&X86ISA::EmuLinux::SyscallABI32::IsWide< Arg >::value > >::get(), gem5::guest_abi::Argument< SparcISA::SEWorkload::SyscallABI32, Arg, typename std::enable_if_t< std::is_integral< Arg >::value &&SparcISA::SEWorkload::SyscallABI32::IsWide< Arg >::value > >::get(), gem5::X86ISA::X86_64Process::initState(), gem5::ArmISA::makeDouble(), gem5::GenericSyscallABI32::mergeRegs(), mulSigned(), mulSignedManual(), MultiSocketSimpleSwitchAT::MultiSocketSimpleSwitchAT(), mulUnsigned(), gem5::statistics::DistPrint::operator()(), sc_dt::overflow(), sc_dt::sc_fxnum::set_bit(), gem5::KvmKernelGicV2::setIntState(), gem5::KvmVM::setIRQLine(), and gem5::X86ISA::Interrupts::setReg().
const ByteOrder gem5::HostByteOrder = ByteOrder::big |
Definition at line 171 of file byteswap.hh.
const char* gem5::hostname = "m5.eecs.umich.edu" |
Definition at line 348 of file syscall_emul.cc.
Referenced by gethostnameFunc().
statistics::Value & gem5::hostSeconds = rootStats.hostSeconds |
Definition at line 48 of file stats.cc.
Referenced by gem5::BaseCPU::GlobalStats::GlobalStats().
|
static |
ElemIndex value that indicates that the register is not a vector.
Definition at line 182 of file types.hh.
Referenced by gem5::RegId::RegId().
const uint8_t gem5::image_file[] |
This image file contains the text "This is a test image.\n" 31 times.
Definition at line 40 of file small_image_file.test.hh.
Referenced by TEST().
const uint8_t gem5::image_file_gzipped[] |
This is "image_file" compressed using GZip.
Definition at line 132 of file small_image_file.test.hh.
Referenced by TEST().
bool gem5::inParallelMode = false |
Current mode of execution: parallel / serial.
Definition at line 59 of file eventq.cc.
Referenced by gem5::EventQueue::deschedule(), gem5::EventQueue::reschedule(), gem5::EventQueue::schedule(), and simulate().
|
static |
Definition at line 107 of file op_class.hh.
|
static |
Definition at line 56 of file op_class.hh.
const Addr gem5::IntCtlAddr = 0x0400 |
Definition at line 47 of file iob.hh.
Referenced by gem5::Iob::readIob(), and gem5::Iob::writeIob().
const Addr gem5::IntCtlSize = 0x0020 |
Definition at line 48 of file iob.hh.
Referenced by gem5::Iob::readIob(), and gem5::Iob::writeIob().
|
static |
Definition at line 58 of file op_class.hh.
const Addr gem5::IntManAddr = 0x0000 |
Definition at line 45 of file iob.hh.
Referenced by gem5::Iob::readIob(), and gem5::Iob::writeIob().
const Addr gem5::IntManSize = 0x0020 |
Definition at line 46 of file iob.hh.
Referenced by gem5::Iob::readIob(), and gem5::Iob::writeIob().
|
static |
Definition at line 57 of file op_class.hh.
const Addr gem5::IntVecDisAddr = 0x0800 |
Definition at line 50 of file iob.hh.
Referenced by gem5::Iob::writeIob().
const Addr gem5::IntVecDisSize = 0x0100 |
Definition at line 51 of file iob.hh.
Referenced by gem5::Iob::writeIob().
Definition at line 247 of file types.hh.
Referenced by gem5::memory::AbstractMemory::checkLockedAddrList(), gem5::System::Threads::insert(), gem5::ruby::Sequencer::issueRequest(), and gem5::memory::LockedAddr::matchesContext().
Definition at line 253 of file types.hh.
Referenced by gem5::BaseXBar::findPort(), gem5::CoherentXBar::forwardAtomic(), gem5::CoherentXBar::forwardFunctional(), gem5::CoherentXBar::forwardTiming(), gem5::fastmodel::CortexR52::getPort(), gem5::ArmSigInterruptPinGen::getPort(), gem5::SimpleMemobj::getPort(), gem5::SimpleCache::getPort(), gem5::SnoopFilter::portToMask(), gem5::CoherentXBar::recvAtomicBackdoor(), gem5::CoherentXBar::recvAtomicSnoop(), gem5::CoherentXBar::recvFunctionalSnoop(), gem5::CoherentXBar::recvTimingReq(), gem5::NoncoherentXBar::recvTimingResp(), gem5::CoherentXBar::recvTimingResp(), gem5::CoherentXBar::recvTimingSnoopReq(), gem5::CoherentXBar::recvTimingSnoopResp(), and gem5::SnoopFilter::setCPUSidePorts().
Definition at line 243 of file types.hh.
Referenced by gem5::o3::Fetch::branchCount(), gem5::minor::Execute::checkInterrupts(), gem5::o3::Fetch::doSquash(), gem5::o3::Fetch::drainSanityCheck(), gem5::minor::Decode::evaluate(), gem5::minor::Fetch2::evaluate(), gem5::minor::Execute::evaluate(), gem5::minor::Fetch1::evaluate(), gem5::o3::Commit::executingHtmTransaction(), gem5::o3::Fetch::fetch(), gem5::o3::Fetch::finishTranslation(), gem5::o3::Commit::getCommittingThread(), gem5::minor::Execute::getCommittingThread(), gem5::o3::Fetch::getFetchingThread(), gem5::o3::CPU::getFreeTid(), gem5::minor::Execute::getIssuingThread(), gem5::o3::LSQ::getLatestHtmUid(), gem5::minor::Decode::getScheduledThread(), gem5::minor::Fetch2::getScheduledThread(), gem5::minor::Fetch1::getScheduledThread(), gem5::o3::Fetch::iqCount(), gem5::o3::Fetch::lsqCount(), gem5::o3::LSQ::numHtmStarts(), gem5::o3::LSQ::numHtmStops(), gem5::o3::Commit::oldestReady(), gem5::MipsISA::readRegOtherThread(), gem5::o3::Fetch::recvReqRetry(), gem5::o3::Commit::resetHtmStartsStops(), gem5::o3::LSQ::resetHtmStartsStops(), gem5::o3::Commit::roundRobin(), gem5::o3::Fetch::roundRobin(), gem5::o3::LSQ::setLastRetiredHtmUid(), and gem5::MipsISA::setRegOtherThread().
|
static |
Definition at line 243 of file arm_cpu.cc.
|
static |
Definition at line 106 of file op_class.hh.
const Addr gem5::JIntABusyAddr = 0x0B00 |
Definition at line 61 of file iob.hh.
Referenced by gem5::Iob::readJBus(), and gem5::Iob::writeJBus().
const Addr gem5::JIntBusyAddr = 0x0900 |
Definition at line 59 of file iob.hh.
Referenced by gem5::Iob::readJBus(), and gem5::Iob::writeJBus().
const Addr gem5::JIntBusySize = 0x0100 |
Definition at line 60 of file iob.hh.
Referenced by gem5::Iob::readJBus(), and gem5::Iob::writeJBus().
const Addr gem5::JIntData0Addr = 0x0400 |
Definition at line 55 of file iob.hh.
Referenced by gem5::Iob::readJBus().
const Addr gem5::JIntData1Addr = 0x0500 |
Definition at line 56 of file iob.hh.
Referenced by gem5::Iob::readJBus().
const Addr gem5::JIntDataA0Addr = 0x0600 |
Definition at line 57 of file iob.hh.
Referenced by gem5::Iob::readJBus().
const Addr gem5::JIntDataA1Addr = 0x0700 |
Definition at line 58 of file iob.hh.
Referenced by gem5::Iob::readJBus().
const Addr gem5::JIntVecAddr = 0x0A00 |
Definition at line 49 of file iob.hh.
Referenced by gem5::Iob::readIob(), and gem5::Iob::writeIob().
const GEM5_WEAK char* gem5::m5MainCommands[] |
std::vector< EventQueue * > gem5::mainEventQueue |
Array for main event queues.
Definition at line 57 of file eventq.cc.
Referenced by gem5::BaseGlobalEvent::deschedule(), gem5::LdsState::TickEvent::deschedule(), gem5::Trace::TarmacParserRecord::dump(), dumpMainQueue(), eventqDump(), getEventQueue(), gem5::BaseGlobalEvent::reschedule(), gem5::BaseGlobalEvent::schedule(), gem5::LdsState::TickEvent::schedule(), simulate(), and gem5::Root::unserialize().
Definition at line 171 of file types.hh.
Referenced by gem5::prefetch::SignaturePath::addPrefetch(), gem5::prefetch::AccessMapPatternMatching::calculatePrefetch(), gem5::AddrRange::getOffset(), gem5::KernelWorkload::initState(), gem5::SectorSubBlk::insert(), gem5::TaggedEntry::invalidate(), gem5::TempCacheBlk::invalidate(), gem5::KernelWorkload::KernelWorkload(), gem5::loader::MemoryImage::minAddr(), gem5::prefetch::STeMS::reconstructSequence(), and TEST().
const int gem5::MaxNiagaraProcs = 32 |
Definition at line 43 of file iob.hh.
Referenced by gem5::Iob::Iob(), gem5::Iob::serialize(), and gem5::Iob::unserialize().
int gem5::maxThreadsPerCPU = 1 |
const Tick gem5::MaxTick = 0xffffffffffffffffULL |
Definition at line 60 of file types.hh.
Referenced by gem5::o3::ElasticTrace::addCommittedInst(), gem5::o3::ElasticTrace::addSquashedInst(), gem5::memory::MemCtrl::addToReadQueue(), gem5::memory::MemCtrl::chooseNextFRFCFS(), gem5::memory::DRAMInterface::chooseNextFRFCFS(), gem5::memory::NVMInterface::chooseNextFRFCFS(), gem5::memory::NVMInterface::chooseRead(), gem5::PacketQueue::deferredPacketReadyTime(), gem5::BaseTrafficGen::drain(), gem5::CacheBlk::getWhenReady(), gem5::TraceCPU::FixedRetryGen::init(), gem5::CacheBlk::invalidate(), gem5::Trace::OstreamLogger::logMessage(), gem5::memory::DRAMInterface::minBankPrep(), gem5::memory::MemCtrl::minReadToWriteDataGap(), gem5::memory::MemCtrl::minWriteToReadDataGap(), gem5::ExitGen::nextPacketTick(), gem5::IdleGen::nextPacketTick(), gem5::RandomGen::nextPacketTick(), gem5::LinearGen::nextPacketTick(), gem5::StridedGen::nextPacketTick(), gem5::HybridGen::nextPacketTick(), gem5::TraceGen::nextPacketTick(), gem5::prefetch::Multi::nextPrefetchReadyTime(), gem5::prefetch::Queued::nextPrefetchReadyTime(), gem5::Queue< WriteQueueEntry >::nextReadyTime(), sc_gem5::Scheduler::oneCycle(), gem5::memory::NVMInterface::processReadReadyEvent(), pybind_init_core(), pybind_init_event(), gem5::BaseCache::recvTimingReq(), gem5::BaseCache::recvTimingResp(), gem5::BaseTrafficGen::retryReq(), sc_core::sc_max_time(), sc_core::sc_start(), gem5::PacketQueue::schedSendEvent(), gem5::BaseTrafficGen::scheduleUpdate(), gem5::BaseCache::CacheReqPacketQueue::sendDeferredPacket(), simulate(), gem5::Sp805::stopCounter(), TEST(), gem5::BaseKvmCPU::tick(), gem5::Sp805::timeoutExpired(), sc_gem5::Scheduler::timeToPending(), and gem5::BaseTrafficGen::transition().
|
constexpr |
Definition at line 111 of file vec_reg.hh.
|
static |
Definition at line 102 of file op_class.hh.
Referenced by gem5::ArmISA::SveIndexedMemSV< RegElemType, MemElemType, MicroopType, FirstFaultWritebackMicroopType >::SveIndexedMemSV(), and gem5::ArmISA::SveIndexedMemVI< RegElemType, MemElemType, MicroopType, FirstFaultWritebackMicroopType >::SveIndexedMemVI().
|
static |
Definition at line 103 of file op_class.hh.
Definition at line 151 of file types.hh.
Referenced by isRomMicroPC(), normalMicroPC(), romMicroPC(), and TEST().
|
static |
Minimum number of cycles that a host can spend in a KVM call (used to calculate the resolution of some timers).
The value of this constant is a bit arbitrary, but in practice, we can't really do anything useful in less than ~1000 cycles.
Definition at line 77 of file timer.cc.
Referenced by gem5::PosixKvmTimer::calcResolution(), and gem5::PerfKvmTimer::calcResolution().
|
constexpr |
Definition at line 51 of file amdgpu_device.hh.
Referenced by gem5::AMDGPUDevice::read(), gem5::AMDGPUDevice::readMMIO(), gem5::AMDGPUDevice::write(), and gem5::AMDGPUDevice::writeMMIO().
|
constexpr |
Definition at line 260 of file types.hh.
Referenced by gem5::ArmISA::AArch64AArch32SystemAccessTrap(), gem5::o3::ElasticTrace::addCommittedInst(), gem5::ArmISA::addPACDA(), gem5::ArmISA::addPACDB(), gem5::ArmISA::addPACGA(), gem5::ArmISA::addPACIA(), gem5::ArmISA::addPACIB(), gem5::ArmISA::ISA::addressTranslation(), gem5::ArmISA::ISA::addressTranslation64(), gem5::o3::ElasticTrace::addSquashedInst(), gem5::TimingSimpleCPU::advanceInst(), gem5::BaseSimpleCPU::advancePC(), gem5::Checker< gem5::RefCountingPtr >::advancePC(), gem5::AtomicSimpleCPU::amoMem(), amoMemAtomic(), gem5::ArmISA::authDA(), gem5::ArmISA::authDB(), gem5::ArmISA::authIA(), gem5::ArmISA::authIB(), gem5::o3::LSQ::SplitDataRequest::buildPackets(), gem5::ArmISA::ArmStaticInst::checkAdvSIMDOrFPEnabled32(), gem5::PowerISA::TLB::checkCacheability(), gem5::BaseSimpleCPU::checkForInterrupts(), gem5::ArmISA::ArmStaticInst::checkForWFxTrap32(), gem5::ArmISA::ArmStaticInst::checkForWFxTrap64(), gem5::ArmISA::ArmStaticInst::checkFPAdvSIMDTrap64(), gem5::RiscvISA::TLB::checkPermissions(), gem5::ArmISA::TLB::checkPermissions(), gem5::ArmISA::TLB::checkPermissions64(), gem5::ArmISA::ArmStaticInst::checkSETENDEnabled(), gem5::ArmISA::ArmStaticInst::checkSveEnabled(), gem5::o3::LSQUnit::checkViolations(), gem5::o3::Commit::Commit(), gem5::minor::Execute::commit(), gem5::o3::Commit::commitHead(), gem5::minor::Execute::commitInst(), gem5::o3::Commit::commitInsts(), gem5::ArmISAInst::MicroTfence64::completeAcc(), gem5::TimingSimpleCPU::completeDataAccess(), gem5::TimingSimpleCPU::completeIfetch(), gem5::ArmISA::TableWalker::doL1Descriptor(), gem5::ArmISA::TableWalker::doL1DescriptorWrapper(), gem5::ArmISA::TableWalker::doL2Descriptor(), gem5::ArmISA::TableWalker::doL2DescriptorWrapper(), gem5::ArmISA::TableWalker::doLongDescriptor(), gem5::ArmISA::TableWalker::doLongDescriptorWrapper(), gem5::BaseKvmCPU::doMMIOAccess(), gem5::o3::InstructionQueue::doSquash(), gem5::RiscvISA::TLB::doTranslate(), gem5::minor::Decode::evaluate(), gem5::X86ISA::MicroHalt::execute(), gem5::RiscvISA::MemFenceMicro::execute(), gem5::SparcISA::Nop::execute(), gem5::ArmISA::SveLdStructSS< Element, MicroopLdMemType, MicroopDeIntrlvType >::execute(), gem5::SparcISA::WarnUnimplemented::execute(), gem5::ArmISAInst::Tstart64::execute(), gem5::WarnUnimplemented::execute(), gem5::ArmISAInst::Tcancel64::execute(), gem5::ArmISAInst::MicroTfence64::execute(), gem5::ArmISAInst::MicroTcommit64::execute(), gem5::ArmISA::SveStStructSS< Element, MicroopStMemType, MicroopIntrlvType >::execute(), gem5::MiscRegImplDefined64::execute(), gem5::ArmISA::SveLdStructSI< Element, MicroopLdMemType, MicroopDeIntrlvType >::execute(), gem5::ArmISA::SveStStructSI< Element, MicroopStMemType, MicroopIntrlvType >::execute(), gem5::ArmISA::SveIndexedMemVI< RegElemType, MemElemType, MicroopType, FirstFaultWritebackMicroopType >::execute(), gem5::McrMrcMiscInst::execute(), gem5::ArmISA::SveIndexedMemSV< RegElemType, MemElemType, MicroopType, FirstFaultWritebackMicroopType >::execute(), gem5::o3::IEW::executeInsts(), gem5::o3::LSQUnit::executeLoad(), gem5::minor::Execute::executeMemRefInst(), gem5::o3::LSQUnit::executeStore(), gem5::o3::Fetch::fetchCacheLine(), gem5::ArmISA::TableWalker::fetchDescriptor(), gem5::Iris::TLB::finalizePhysical(), gem5::X86ISA::TLB::finalizePhysical(), gem5::SparcISA::TLB::finalizePhysical(), gem5::ArmISA::TLB::finalizePhysical(), gem5::ArmISA::Stage2LookUp::finish(), gem5::WholeTranslationState::finish(), gem5::prefetch::Queued::DeferredPacket::finish(), gem5::DataTranslation< ExecContextPtr >::finish(), gem5::minor::LSQ::SingleDataRequest::finish(), gem5::minor::LSQ::SplitDataRequest::finish(), gem5::o3::LSQ::SingleDataRequest::finish(), gem5::o3::LSQ::SplitDataRequest::finish(), gem5::ArmISA::TableWalker::Stage2Walk::finish(), gem5::o3::Fetch::finishTranslation(), gem5::TimingSimpleCPU::finishTranslation(), gem5::WholeTranslationState::getFault(), gem5::Iris::Interrupts::getInterrupt(), gem5::RiscvISA::Interrupts::getInterrupt(), gem5::SparcISA::Interrupts::getInterrupt(), gem5::X86ISA::Interrupts::getInterrupt(), gem5::ArmISA::TLB::getResultTe(), gem5::ArmISA::Stage2LookUp::getTe(), gem5::ArmISA::TLB::getTE(), gem5::o3::Commit::handleInterrupt(), gem5::minor::Execute::handleMemResponse(), gem5::minor::Fetch1::handleTLBResponse(), gem5::o3::LSQ::HtmCmdRequest::HtmCmdRequest(), gem5::ArmISAInst::MicroTfence64::initiateAcc(), gem5::minor::ExecContext::initiateHtmCmd(), gem5::TimingSimpleCPU::initiateHtmCmd(), gem5::CheckerCPU::initiateHtmCmd(), gem5::TimingSimpleCPU::initiateMemAMO(), gem5::TimingSimpleCPU::initiateMemRead(), gem5::o3::Commit::isDrained(), gem5::minor::ForwardLineData::isFault(), gem5::minor::MinorDynInst::isFault(), gem5::minor::LSQ::LSQRequest::makePacket(), gem5::ArmISA::Stage2LookUp::mergeTe(), gem5::minor::Fetch1::minorTraceResponseLine(), gem5::BaseCPU::mwaitAtomic(), gem5::minor::operator<<(), gem5::PMP::pmpCheck(), gem5::o3::CPU::processInterrupts(), gem5::minor::Fetch1::processResponse(), gem5::ArmISA::TableWalker::processWalkWrapper(), gem5::o3::Commit::propagateInterrupt(), gem5::minor::LSQ::pushRequest(), gem5::o3::LSQ::pushRequest(), gem5::o3::LSQUnit::read(), gem5::ArmISA::TableWalker::readDataUntimed(), gem5::AtomicSimpleCPU::readMem(), gem5::CheckerCPU::readMem(), gem5::X86ISA::readMemAtomic(), readMemAtomic(), gem5::Trace::TarmacParserRecord::readMemNoEffect(), gem5::X86ISA::readPackedMemAtomic(), gem5::RiscvISA::Walker::WalkerState::recvPacket(), gem5::X86ISA::Walker::WalkerState::recvPacket(), gem5::minor::ForwardLineData::reportData(), gem5::minor::MinorDynInst::reportData(), gem5::minor::LSQ::SplitDataRequest::retireResponse(), gem5::TimingSimpleCPU::sendFetch(), gem5::WholeTranslationState::setNoFault(), gem5::RiscvISA::Walker::start(), gem5::X86ISA::Walker::start(), gem5::RiscvISA::Walker::WalkerState::startFunctional(), gem5::X86ISA::Walker::WalkerState::startFunctional(), gem5::X86ISA::Walker::WalkerState::startWalk(), gem5::RiscvISA::Walker::WalkerState::startWalk(), gem5::X86ISA::Walker::WalkerState::stepWalk(), gem5::RiscvISA::Walker::WalkerState::stepWalk(), gem5::ArmISA::stripPAC(), gem5::minor::Execute::takeInterrupt(), gem5::ArmISA::SelfDebug::testBreakPoints(), gem5::ArmISA::SelfDebug::testDebug(), gem5::ArmISA::TLB::testTranslation(), gem5::ArmISA::SelfDebug::testVectorCatch(), gem5::ArmISA::TLB::testWalk(), gem5::ArmISA::SelfDebug::testWatchPoints(), gem5::AtomicSimpleCPU::tick(), gem5::X86ISA::TLB::translate(), gem5::RiscvISA::TLB::translate(), gem5::EmulationPageTable::translate(), gem5::X86ISA::GpuTLB::translate(), gem5::ArmISA::TLB::translateComplete(), gem5::ArmISA::TLB::translateFs(), gem5::Iris::TLB::translateFunctional(), gem5::X86ISA::TLB::translateFunctional(), gem5::SparcISA::TLB::translateFunctional(), gem5::X86ISA::TLB::translateInt(), gem5::X86ISA::GpuTLB::translateInt(), gem5::ArmISA::TLB::translateMmuOn(), gem5::TimingSimpleCPU::translationFault(), gem5::MiscRegOp64::trap(), gem5::ArmISA::trapPACUse(), gem5::ArmISA::ArmStaticInst::trapWFx(), gem5::TranslatingPortProxy::tryTLBsOnce(), gem5::minor::Execute::tryToBranch(), gem5::minor::Fetch1::tryToSendToTransfers(), gem5::minor::LSQ::tryToSendToTransfers(), gem5::minor::LSQ::LSQRequest::tryToSuppressFault(), tryTranslate(), gem5::ArmISA::ArmStaticInst::undefinedFault64(), gem5::Checker< gem5::RefCountingPtr >::validateState(), gem5::ArmISA::ArmFault::vectorCatch(), gem5::Checker< gem5::RefCountingPtr >::verify(), gem5::ArmISA::TableWalker::walk(), gem5::WholeTranslationState::WholeTranslationState(), gem5::o3::LSQUnit::write(), gem5::o3::LSQUnit::writeback(), gem5::o3::IEW::writebackInsts(), gem5::AtomicSimpleCPU::writeMem(), gem5::TimingSimpleCPU::writeMem(), gem5::CheckerCPU::writeMem(), writeMemAtomic(), gem5::X86ISA::writeMemAtomic(), and gem5::o3::DynInst::~DynInst().
StaticInstPtr gem5::nopStaticInstPtr = new NopStaticInst |
Pointer to a statically allocated generic "nop" instruction object.
Definition at line 66 of file nop_static_inst.cc.
Referenced by gem5::o3::Fetch::finishTranslation().
const char* gem5::NsDmaState[] |
Definition at line 82 of file ns_gige.cc.
const char* gem5::NsRxStateStrings[] |
Definition at line 60 of file ns_gige.cc.
Referenced by gem5::NSGigE::rxKick().
const char* gem5::NsTxStateStrings[] |
Definition at line 71 of file ns_gige.cc.
Referenced by gem5::NSGigE::txKick().
const StaticInstPtr gem5::nullStaticInstPtr |
Statically allocated null StaticInstPtr.
Definition at line 36 of file null_static_inst.cc.
Referenced by gem5::BaseSimpleCPU::advancePC(), gem5::Checker< gem5::RefCountingPtr >::advancePC(), gem5::o3::Commit::commitHead(), gem5::minor::Fetch2::evaluate(), gem5::Checker< gem5::RefCountingPtr >::handlePendingInt(), gem5::minor::MinorDynInst::init(), and gem5::Checker< gem5::RefCountingPtr >::verify().
|
static |
Definition at line 85 of file inst_util.hh.
|
static |
Definition at line 85 of file inst_util.hh.
Referenced by gem5::Gcn3ISA::processDPP(), and gem5::VegaISA::processDPP().
|
static |
Definition at line 108 of file op_class.hh.
Referenced by gem5::o3::InstructionQueue::dumpLists(), gem5::SimpleExecContext::ExecContextStats::ExecContextStats(), gem5::minor::Execute::Execute(), gem5::FuncUnit::FuncUnit(), gem5::o3::InstructionQueue::hasReadyInsts(), gem5::o3::InstructionQueue::IQStats::IQStats(), and gem5::o3::InstructionQueue::resetState().
|
staticconstexpr |
Definition at line 57 of file armv8_cpu.cc.
Referenced by gem5::ArmV8KvmCPU::dump(), gem5::ArmV8KvmCPU::updateKvmState(), and gem5::ArmV8KvmCPU::updateThreadContext().
|
staticconstexpr |
Definition at line 52 of file armv8_cpu.cc.
Referenced by gem5::ArmV8KvmCPU::dump(), gem5::ArmV8KvmCPU::updateKvmState(), and gem5::ArmV8KvmCPU::updateThreadContext().
uint32_t gem5::numMainEventQueues = 0 |
Current number of allocated main event queues.
Definition at line 56 of file eventq.cc.
Referenced by gem5::BaseGlobalEventTemplate< GlobalSyncEvent >::BaseGlobalEventTemplate(), gem5::BaseGlobalEvent::deschedule(), dumpMainQueue(), eventqDump(), getEventQueue(), gem5::BaseGlobalEvent::reschedule(), gem5::BaseGlobalEvent::schedule(), gem5::BaseGlobalEvent::scheduled(), simulate(), gem5::Root::unserialize(), gem5::BaseGlobalEvent::when(), and gem5::BaseGlobalEvent::~BaseGlobalEvent().
const uint8_t gem5::NumOutputBits = 14 |
Definition at line 47 of file i8042.cc.
Referenced by gem5::X86ISA::I8042::write().
|
static |
Definition at line 82 of file fs9p.cc.
Referenced by gem5::VirtIO9PBase::dumpMsg().
PybindSimObjectResolver gem5::pybindSimObjectResolver |
Definition at line 74 of file core.cc.
Referenced by pybind_init_core().
const uint8_t gem5::RamSize = 32 |
Definition at line 46 of file i8042.cc.
Referenced by gem5::X86ISA::I8042::write().
int gem5::remote_gdb_base_port = 7000 |
Definition at line 117 of file debug.cc.
Referenced by getRemoteGDBPort(), and setRemoteGDBPort().
const uint8_t gem5::reverseBitsLookUpTable |
Lookup table used for High Speed bit reversing.
Definition at line 44 of file bitfield.cc.
Referenced by reverseBits().
|
constexpr |
Definition at line 55 of file amdgpu_device.hh.
Referenced by gem5::AMDGPUDevice::AMDGPUDevice(), and gem5::AMDGPUDevice::readROM().
Root::RootStats & gem5::rootStats = Root::RootStats::instance |
|
static |
Definition at line 39 of file fenv.cc.
Referenced by getFpRound(), and setFpRound().
|
static |
Definition at line 84 of file inst_util.hh.
|
static |
Definition at line 84 of file inst_util.hh.
Referenced by gem5::Gcn3ISA::dppInstImpl(), gem5::VegaISA::dppInstImpl(), gem5::VegaISA::processDPP(), and gem5::Gcn3ISA::processDPP().
const int gem5::RX_INT = 0x1 |
Definition at line 46 of file uart.hh.
Referenced by gem5::Uart8250::dataAvailable(), gem5::Uart8250::readIir(), gem5::Uart8250::readRbr(), and gem5::Uart8250::writeIer().
const unsigned gem5::seconds_since_epoch = 1000 * 1000 * 1000 |
Approximate seconds since the epoch (1/1/1970).
About a billion, by my reckoning. We want to keep this a constant (not use the real-world time) to keep simulations repeatable.
Definition at line 516 of file syscall_emul.hh.
Referenced by clock_gettimeFunc(), gettimeofdayFunc(), sysinfoFunc(), and timeFunc().
|
static |
Definition at line 68 of file op_class.hh.
|
static |
Definition at line 67 of file op_class.hh.
|
static |
Definition at line 94 of file op_class.hh.
|
static |
Definition at line 93 of file op_class.hh.
|
static |
Definition at line 69 of file op_class.hh.
|
static |
Definition at line 70 of file op_class.hh.
|
static |
Definition at line 71 of file op_class.hh.
|
static |
Definition at line 77 of file op_class.hh.
|
static |
Definition at line 82 of file op_class.hh.
|
static |
Definition at line 83 of file op_class.hh.
|
static |
Definition at line 84 of file op_class.hh.
|
static |
Definition at line 85 of file op_class.hh.
|
static |
Definition at line 86 of file op_class.hh.
|
static |
Definition at line 87 of file op_class.hh.
|
static |
Definition at line 89 of file op_class.hh.
|
static |
Definition at line 88 of file op_class.hh.
|
static |
Definition at line 92 of file op_class.hh.
|
static |
Definition at line 91 of file op_class.hh.
|
static |
Definition at line 90 of file op_class.hh.
|
static |
Definition at line 72 of file op_class.hh.
|
static |
Definition at line 74 of file op_class.hh.
|
static |
Definition at line 73 of file op_class.hh.
|
static |
Definition at line 101 of file op_class.hh.
|
static |
Definition at line 79 of file op_class.hh.
|
static |
Definition at line 80 of file op_class.hh.
|
static |
Definition at line 81 of file op_class.hh.
|
static |
Definition at line 96 of file op_class.hh.
|
static |
Definition at line 95 of file op_class.hh.
|
static |
Definition at line 98 of file op_class.hh.
|
static |
Definition at line 97 of file op_class.hh.
|
static |
Definition at line 99 of file op_class.hh.
|
static |
Definition at line 100 of file op_class.hh.
|
static |
Definition at line 76 of file op_class.hh.
|
static |
Definition at line 75 of file op_class.hh.
|
static |
Definition at line 78 of file op_class.hh.
statistics::Value & gem5::simFreq = rootStats.simFreq |
OutputDirectory gem5::simout |
Definition at line 62 of file output.cc.
Referenced by gem5::ArmSemihosting::callTmpNam(), gem5::Trace::InstPBTrace::createTraceFile(), gem5::Pl111::dmaDone(), gem5::X86ISA::GpuTLB::exitCallback(), gem5::ComputeUnit::exitCallback(), gem5::statistics::initHDF5(), gem5::statistics::initText(), gem5::MemTraceProbe::MemTraceProbe(), gem5::FDArray::openOutputFile(), output(), gem5::linux::DmesgDump::process(), gem5::linux::KernelPanic::process(), gem5::ProtocolTester::ProtocolTester(), gem5::HDLcd::pxlFrameDone(), setOutputDir(), gem5::SimPoint::SimPoint(), gem5::VirtIO9PDiod::startDiod(), gem5::ArmISA::FsLinux::startup(), gem5::Terminal::terminalDump(), gem5::VncInput::VncInput(), gem5::pseudo_inst::writefile(), gem5::ProtocolTester::~ProtocolTester(), gem5::SimPoint::~SimPoint(), and sc_gem5::TraceFile::~TraceFile().
Tick gem5::simQuantum = 0 |
Simulation Quantum for multiple eventq simulation.
The quantum value is the period length after which the queues synchronize themselves with each other. This means that any event to scheduled on Queue A which is generated by an event on Queue B should be at least simQuantum ticks away in future.
Definition at line 48 of file eventq.cc.
Referenced by exitSimLoop(), gem5::statistics::schedStatEvent(), and simulate().
statistics::Formula & gem5::simSeconds = rootStats.simSeconds |
Definition at line 45 of file stats.cc.
Referenced by gem5::memory::AbstractMemory::MemStats::regStats(), gem5::memory::MemCtrl::CtrlStats::regStats(), gem5::memory::DRAMInterface::DRAMStats::regStats(), gem5::memory::NVMInterface::NVMStats::regStats(), gem5::SMMUv3BaseCache::SMMUv3BaseCacheStats::SMMUv3BaseCacheStats(), and gem5::WalkCache::WalkCacheStats::WalkCacheStats().
statistics::Value & gem5::simTicks = rootStats.simTicks |
Definition at line 46 of file stats.cc.
Referenced by gem5::CommMonitor::samplePeriodic().
GlobalSimLoopExitEvent * gem5::simulate_limit_event = nullptr |
Definition at line 75 of file simulate.cc.
Referenced by simulate().
volatile int gem5::stop = false |
Definition at line 42 of file cprintftime.cc.
Referenced by do_test(), handle_alarm(), and main().
|
static |
Definition at line 55 of file memtest.cc.
int gem5::TESTER_NETWORK =0 |
Definition at line 51 of file GarnetSyntheticTraffic.cc.
Barrier* gem5::threadBarrier |
Global barrier for synchronizing threads entering/exiting the simulation loop.
Definition at line 53 of file simulate.cc.
Referenced by simulate(), and thread_loop().
const int gem5::TX_INT = 0x2 |
Definition at line 47 of file uart.hh.
Referenced by gem5::Uart8250::readIir(), gem5::Uart8250::Uart8250(), gem5::Uart8250::writeIer(), and gem5::Uart8250::writeThr().
const uint8_t gem5::UART_MCR_LOOP = 0x10 |
Definition at line 46 of file uart8250.hh.
Referenced by gem5::Uart8250::Registers::Registers().
std::set<std::string> gem5::version_tags |
The version tags for this build of the simulator, to be stored in the Globals section during serialization and compared upon unserialization.
Referenced by gem5::Globals::serialize(), and gem5::Globals::unserialize().
|
constexpr |
Definition at line 54 of file amdgpu_device.hh.
Referenced by gem5::AMDGPUDevice::AMDGPUDevice().