38#ifndef __ARCH_ARM_KVM_ARM_CPU_HH__
39#define __ARCH_ARM_KVM_ARM_CPU_HH__
46#include "params/ArmKvmCPU.hh"
103 pc.as<ArmISA::PCState>().setNPC(
pc->instAddr());
140 bool getRegList(
struct kvm_reg_list ®s)
const;
ARM implementation of a KVM-based hardware virtualized CPU.
static const std::set< uint64_t > invariant_regs
List of co-processor registers that KVM requires to be identical on both the host and the guest.
ArmISA::MiscRegIndex decodeVFPCtrlReg(uint64_t id) const
void updateKvmState()
Update the KVM state from the current thread context.
void dumpKvmStateCoProc(uint64_t id)
static KvmIntRegInfo kvmIntRegs[]
bool isInvariantReg(uint64_t id)
Determine if a register is invariant.
void dumpKvmStateVFP(uint64_t id)
void updateKvmStateCore()
void startup()
startup() is the final initialization call before simulation.
void updateKvmStateVFP(uint64_t id, bool show_warnings)
std::vector< uint64_t > RegIndexVector
ArmKvmCPU(const ArmKvmCPUParams ¶ms)
void updateTCStateVFP(uint64_t id, bool show_warnings)
void updateKvmStateMisc()
bool irqAsserted
Cached state of the IRQ line.
Tick kvmRun(Tick ticks)
Request KVM to run the guest for a given number of ticks.
bool fiqAsserted
Cached state of the FIQ line.
RegIndexVector _regIndexList
Cached copy of the list of co-processor registers supported by KVM.
ArmISA::MiscRegIndex decodeCoProcReg(uint64_t id) const
static KvmCoreMiscRegInfo kvmCoreMiscRegs[]
void updateTCStateCoProc(uint64_t id, bool show_warnings)
const RegIndexVector & getRegList() const
Get a list of registers supported by getOneReg() and setOneReg().
void updateThreadContext()
Update the current thread context with the KVM state.
void updateKvmStateCoProc(uint64_t id, bool show_warnings)
void stutterPC(PCStateBase &pc) const
Modify a PCStatePtr's value so that its next PC is the current PC.
void kvmArmVCpuInit(uint32_t target)
Base class for KVM based CPU models.
void init() override
init() is called after all C++ SimObjects have been created and all ports are connected.
const Params & params() const
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
uint64_t Tick
Tick count type.
const char * name
Name in debug output.
const ArmISA::MiscRegIndex idx
gem5 index
const char * name
Name in debug output.
const RegIndex idx
gem5 index