dev, arm: Initialized the iccrpr register in the GIC
authorAndreas Sandberg <andreas.sandberg@arm.com>
Wed, 11 Nov 2015 10:18:38 +0000 (10:18 +0000)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Wed, 11 Nov 2015 10:18:38 +0000 (10:18 +0000)
The IICRPR register in the GIC is currently not being initialized when
the GIC is instantiated. Initialize to the value mandated by the
architecture specification.

src/dev/arm/gic_pl390.cc

index fb1711c927f251ee999e25fb901aa2a80d16d8e2..0de8a86c4b1820a0c7215b6bdd582308b4babd5c 100644 (file)
@@ -60,6 +60,7 @@ Pl390::Pl390(const Params *p)
     itLinesLog2 = ceilLog2(itLines);
 
     for (int x = 0; x < CPU_MAX; x++) {
+        iccrpr[x] = 0xff;
         cpuEnabled[x] = false;
         cpuPriority[x] = 0xff;
         cpuBpr[x] = 0;