Giacomo Travaglini has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/55615 )
Change subject: dev-arm: Add a KVM Gicv3 model to VExpress_GEM5_Foundation
......................................................................
dev-arm: Add a KVM Gicv3 model to VExpress_GEM5_Foundation
Signed-off-by: Giacomo Travaglini <giacomo.travagl...@arm.com>
Change-Id: Ic5cfeeec59630253acb3ccc451553eb4eb7907e2
---
M src/dev/arm/RealView.py
1 file changed, 16 insertions(+), 4 deletions(-)
diff --git a/src/dev/arm/RealView.py b/src/dev/arm/RealView.py
index 6cb28dd..8d6837e 100644
--- a/src/dev/arm/RealView.py
+++ b/src/dev/arm/RealView.py
@@ -73,12 +73,14 @@
# emulation. Use a GIC model that automatically switches between
# gem5's GIC model and KVM's GIC model if KVM is available.
try:
- from m5.objects.KvmGic import MuxingKvmGicV2
+ from m5.objects.KvmGic import MuxingKvmGicV2, MuxingKvmGicV3
kvm_gicv2_class = MuxingKvmGicV2
+ kvm_gicv3_class = MuxingKvmGicV3
except ImportError:
# KVM support wasn't compiled into gem5. Fallback to a
# software-only GIC.
kvm_gicv2_class = Gic400
+ kvm_gicv3_class = Gicv3
pass
class AmbaPioDevice(BasicPioDevice):
@@ -1420,9 +1422,9 @@
clcd = Pl111(pio_addr=0x1c1f0000, interrupt=ArmSPI(num=46))
- gic = Gicv3(dist_addr=0x2f000000, redist_addr=0x2f100000,
- maint_int=ArmPPI(num=25), gicv4=False,
- its=NULL)
+ gic = kvm_gicv3_class(dist_addr=0x2f000000, redist_addr=0x2f100000,
+ maint_int=ArmPPI(num=25), gicv4=False,
+ its=NULL)
pci_host = GenericArmPciHost(
conf_base=0x40000000, conf_size='256MiB', conf_device_bits=12,
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/55615
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: Ic5cfeeec59630253acb3ccc451553eb4eb7907e2
Gerrit-Change-Number: 55615
Gerrit-PatchSet: 1
Gerrit-Owner: Giacomo Travaglini <giacomo.travagl...@arm.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s