base_cpu.cc (11178:555325cbf464) base_cpu.cc (11793:ef606668d247)
1/*
2 * Copyright (c) 2012, 2015 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 30 unchanged lines hidden (view full) ---

39
40#include "arch/arm/kvm/base_cpu.hh"
41
42#include <linux/kvm.h>
43
44#include "debug/KvmInt.hh"
45#include "params/BaseArmKvmCPU.hh"
46
1/*
2 * Copyright (c) 2012, 2015 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 30 unchanged lines hidden (view full) ---

39
40#include "arch/arm/kvm/base_cpu.hh"
41
42#include <linux/kvm.h>
43
44#include "debug/KvmInt.hh"
45#include "params/BaseArmKvmCPU.hh"
46
47
48#define INTERRUPT_ID(type, vcpu, irq) ( \
49 ((type) << KVM_ARM_IRQ_TYPE_SHIFT) | \
50 ((vcpu) << KVM_ARM_IRQ_VCPU_SHIFT) | \
51 ((irq) << KVM_ARM_IRQ_NUM_SHIFT))
52
53#define INTERRUPT_VCPU_IRQ(vcpu) \
54 INTERRUPT_ID(KVM_ARM_IRQ_TYPE_CPU, vcpu, KVM_ARM_IRQ_CPU_IRQ)
55

--- 99 unchanged lines hidden ---
47#define INTERRUPT_ID(type, vcpu, irq) ( \
48 ((type) << KVM_ARM_IRQ_TYPE_SHIFT) | \
49 ((vcpu) << KVM_ARM_IRQ_VCPU_SHIFT) | \
50 ((irq) << KVM_ARM_IRQ_NUM_SHIFT))
51
52#define INTERRUPT_VCPU_IRQ(vcpu) \
53 INTERRUPT_ID(KVM_ARM_IRQ_TYPE_CPU, vcpu, KVM_ARM_IRQ_CPU_IRQ)
54

--- 99 unchanged lines hidden ---