summaryrefslogtreecommitdiff
path: root/src/arch/arm/kvm/KvmGic.py
diff options
context:
space:
mode:
authorCurtis Dunham <Curtis.Dunham@arm.com>2017-02-14 15:09:18 -0600
committerCurtis Dunham <Curtis.Dunham@arm.com>2017-02-14 15:09:18 -0600
commit0edf6dc9560364691ca0d359ab8321b936f0ec85 (patch)
treea712a0487f7f024d9c329c2bb427c71a827cfa1d /src/arch/arm/kvm/KvmGic.py
parent41beacce088e8f682a0e8ac48f22a3fa4805a43b (diff)
downloadgem5-0edf6dc9560364691ca0d359ab8321b936f0ec85.tar.xz
arm, kvm: implement MuxingKvmGic
This device allows us to, when KVM support is detected and compiled in, instantiate the same Gic device whether the actual simulation is with KVM cores or simulated cores. Checkpointing is not yet supported. Change-Id: I67e4e0b6fb7ab5058e52c933f4f3d8e7ab24981e Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src/arch/arm/kvm/KvmGic.py')
-rw-r--r--src/arch/arm/kvm/KvmGic.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/arch/arm/kvm/KvmGic.py b/src/arch/arm/kvm/KvmGic.py
index 9ae52db22..d4cbd6c8b 100644
--- a/src/arch/arm/kvm/KvmGic.py
+++ b/src/arch/arm/kvm/KvmGic.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2015 ARM Limited
+# Copyright (c) 2015, 2017 ARM Limited
# All rights reserved.
#
# The license below extends only to copyright in the software and shall
@@ -38,7 +38,7 @@
from m5.params import *
from m5.proxy import *
-from Gic import BaseGic
+from Gic import BaseGic, Pl390
from KvmVM import KvmVM
from System import System
@@ -52,3 +52,7 @@ class KvmGic(BaseGic):
system = Param.System(Parent.any,
'System this interrupt controller belongs to')
+
+class MuxingKvmGic(Pl390):
+ type = 'MuxingKvmGic'
+ cxx_header = "arch/arm/kvm/gic.hh"