gem5 v24.0.0.0
Loading...
Searching...
No Matches
base_cpu.cc File Reference
#include "arch/arm/kvm/base_cpu.hh"
#include <linux/kvm.h>
#include <mutex>
#include "arch/arm/interrupts.hh"
#include "base/uncontended_mutex.hh"
#include "debug/KvmInt.hh"
#include "dev/arm/generic_timer.hh"
#include "params/BaseArmKvmCPU.hh"
#include "params/GenericTimer.hh"

Go to the source code of this file.

Namespaces

namespace  gem5
 Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
 

Macros

#define INTERRUPT_ID(type, vcpu, irq)
 
#define INTERRUPT_VCPU_IRQ(vcpu)    INTERRUPT_ID(KVM_ARM_IRQ_TYPE_CPU, vcpu, KVM_ARM_IRQ_CPU_IRQ)
 
#define INTERRUPT_VCPU_FIQ(vcpu)    INTERRUPT_ID(KVM_ARM_IRQ_TYPE_CPU, vcpu, KVM_ARM_IRQ_CPU_FIQ)
 

Macro Definition Documentation

◆ INTERRUPT_ID

#define INTERRUPT_ID ( type,
vcpu,
irq )
Value:
( \
((type) << KVM_ARM_IRQ_TYPE_SHIFT) | \
((vcpu) << KVM_ARM_IRQ_VCPU_SHIFT) | \
((irq) << KVM_ARM_IRQ_NUM_SHIFT))

Definition at line 55 of file base_cpu.cc.

◆ INTERRUPT_VCPU_FIQ

#define INTERRUPT_VCPU_FIQ ( vcpu)     INTERRUPT_ID(KVM_ARM_IRQ_TYPE_CPU, vcpu, KVM_ARM_IRQ_CPU_FIQ)

Definition at line 63 of file base_cpu.cc.

Referenced by gem5::BaseArmKvmCPU::kvmRun().

◆ INTERRUPT_VCPU_IRQ

#define INTERRUPT_VCPU_IRQ ( vcpu)     INTERRUPT_ID(KVM_ARM_IRQ_TYPE_CPU, vcpu, KVM_ARM_IRQ_CPU_IRQ)

Definition at line 60 of file base_cpu.cc.

Referenced by gem5::BaseArmKvmCPU::kvmRun().


Generated on Tue Jun 18 2024 16:24:08 for gem5 by doxygen 1.11.0