38#ifndef __ARCH_ARM_KVM_ARMV8_CPU_HH__
39#define __ARCH_ARM_KVM_ARMV8_CPU_HH__
51struct ArmV8KvmCPUParams;
90 void dump()
const override;
115 const char *
_name,
bool _is_device =
false)
This is an implementation of a KVM-based ARMv8-compatible CPU.
void updateKvmState() override
Update the KVM state from the current thread context.
static const std::set< ArmISA::MiscRegIndex > deviceRegSet
Device registers (needing "effectful" MiscReg writes)
void dump() const override
Dump the internal state to the terminal.
ArmV8KvmCPU(const ArmV8KvmCPUParams ¶ms)
static const std::vector< ArmV8KvmCPU::IntRegInfo > intRegMap
Mapping between gem5 integer registers and integer registers in kvm.
static const std::vector< ArmV8KvmCPU::MiscRegInfo > miscRegMap
Mapping between gem5 misc registers and registers in kvm.
const std::vector< ArmV8KvmCPU::MiscRegInfo > & getSysRegMap() const
Get a map between system registers in kvm and gem5 registers.
void startup() override
startup() is the final initialization call before simulation.
std::vector< ArmV8KvmCPU::MiscRegInfo > sysRegMap
Cached mapping between system registers in kvm and misc regs in gem5.
static const std::vector< ArmV8KvmCPU::MiscRegInfo > miscRegIdMap
Mapping between gem5 ID misc registers and registers in kvm.
void updateThreadContext() override
Update the current thread context with the KVM state.
const Params & params() const
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
Mapping between integer registers in gem5 and KVM.
IntRegInfo(uint64_t _kvm, RegIndex _idx, const char *_name)
RegIndex idx
Register index in gem5.
uint64_t kvm
Register index in KVM.
const char * name
Name to use in debug dumps.
Mapping between misc registers in gem5 and registers in KVM.
MiscRegInfo(uint64_t _kvm, ArmISA::MiscRegIndex _idx, const char *_name, bool _is_device=false)
ArmISA::MiscRegIndex idx
Register index in gem5.
const char * name
Name to use in debug dumps.
uint64_t kvm
Register index in KVM.
bool is_device
is device register? (needs 'effectful' state update)