From 81be8b9d157a038c1d8f3ebf7e2ec8eba0eac935 Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Thu, 25 Oct 2012 14:05:24 +0100 Subject: arm: Create a GIC base class and make the PL390 derive from it This patch moves the GIC interface to a separate base class and makes all interrupt devices use that base class instead of a pointer to the PL390 implementation. This allows us to have multiple GIC implementations. Future implementations will allow in-kernel GIC implementations when using hardware virtualization. --HG-- rename : src/dev/arm/gic.cc => src/dev/arm/gic_pl390.cc rename : src/dev/arm/gic.hh => src/dev/arm/gic_pl390.hh --- src/dev/arm/pl111.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/dev/arm/pl111.cc') diff --git a/src/dev/arm/pl111.cc b/src/dev/arm/pl111.cc index acb3b7dd8..2cf401ce4 100644 --- a/src/dev/arm/pl111.cc +++ b/src/dev/arm/pl111.cc @@ -45,10 +45,11 @@ #include "debug/PL111.hh" #include "debug/Uart.hh" #include "dev/arm/amba_device.hh" -#include "dev/arm/gic.hh" +#include "dev/arm/base_gic.hh" #include "dev/arm/pl111.hh" #include "mem/packet.hh" #include "mem/packet_access.hh" +#include "sim/system.hh" // clang complains about std::set being overloaded with Packet::set if // we open up the entire namespace std -- cgit v1.2.3