gem5  v20.1.0.0
Classes | Macros | Functions | Variables
armv8_cpu.cc File Reference
#include "arch/arm/kvm/armv8_cpu.hh"
#include <linux/kvm.h>
#include "debug/KvmContext.hh"
#include "params/ArmV8KvmCPU.hh"

Go to the source code of this file.

Classes

union  KvmFPReg
 

Macros

#define EXTRACT_FIELD(v, name)   (((v) & name ## _MASK) >> name ## _SHIFT)
 
#define CORE_REG(name, size)
 
#define INT_REG(name)   CORE_REG(name, U64)
 
#define SIMD_REG(name)   CORE_REG(name, U128)
 
#define SYS_MPIDR_EL1   ARM64_SYS_REG(0b11, 0b000, 0b0000, 0b0000, 0b101)
 
#define FP_REGS_PER_VFP_REG   4
 

Functions

constexpr uint64_t kvmXReg (const int num)
 
constexpr uint64_t kvmFPReg (const int num)
 

Variables

constexpr static unsigned NUM_XREGS = NUM_ARCH_INTREGS - 1
 
constexpr static unsigned NUM_QREGS = NumVecV8ArchRegs
 

Macro Definition Documentation

◆ CORE_REG

#define CORE_REG (   name,
  size 
)
Value:
(KVM_REG_ARM64 | KVM_REG_ARM_CORE | \
KVM_REG_SIZE_ ## size | \
KVM_REG_ARM_CORE_REG(name))

Definition at line 60 of file armv8_cpu.cc.

◆ EXTRACT_FIELD

#define EXTRACT_FIELD (   v,
  name 
)    (((v) & name ## _MASK) >> name ## _SHIFT)

Definition at line 57 of file armv8_cpu.cc.

◆ FP_REGS_PER_VFP_REG

#define FP_REGS_PER_VFP_REG   4

Definition at line 98 of file armv8_cpu.cc.

◆ INT_REG

#define INT_REG (   name)    CORE_REG(name, U64)

Definition at line 65 of file armv8_cpu.cc.

◆ SIMD_REG

#define SIMD_REG (   name)    CORE_REG(name, U128)

Definition at line 66 of file armv8_cpu.cc.

◆ SYS_MPIDR_EL1

#define SYS_MPIDR_EL1   ARM64_SYS_REG(0b11, 0b000, 0b0000, 0b0000, 0b101)

Definition at line 68 of file armv8_cpu.cc.

Function Documentation

◆ kvmFPReg()

constexpr uint64_t kvmFPReg ( const int  num)
constexpr

◆ kvmXReg()

constexpr uint64_t kvmXReg ( const int  num)
constexpr

Variable Documentation

◆ NUM_QREGS

constexpr static unsigned NUM_QREGS = NumVecV8ArchRegs
staticconstexpr

◆ NUM_XREGS

constexpr static unsigned NUM_XREGS = NUM_ARCH_INTREGS - 1
staticconstexpr
name
const std::string & name()
Definition: trace.cc:50

Generated on Wed Sep 30 2020 14:02:18 for gem5 by doxygen 1.8.17