38#ifndef __ARCH_ARM_KVM_ARM_CPU_HH__
39#define __ARCH_ARM_KVM_ARM_CPU_HH__
47#include "params/ArmKvmCPU.hh"
72 void dump()
const override;
104 pc.as<ArmISA::PCState>().setNPC(
pc.instAddr());
141 bool getRegList(
struct kvm_reg_list ®s)
const;
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 dump() const override
Dump the internal state to the terminal.
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)
BaseKvmCPU(const BaseKvmCPUParams ¶ms)
const Params & params() const
const FlagsType init
This Stat is Initialized.
Copyright (c) 2024 Arm Limited 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