dev-arm: Added unimplemented GICv2 GICC_DIR
authorAnouk Van Laer <anouk.vanlaer@arm.com>
Thu, 27 Sep 2018 15:49:30 +0000 (16:49 +0100)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Fri, 4 Jan 2019 13:24:40 +0000 (13:24 +0000)
This GICC CPU register is not implemented but just gives a warning.

Change-Id: I7630aa1df78dde5cf84a87e26cd580b00b283673
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Anouk Van Laer <anouk.vanlaer@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/15275
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>

src/dev/arm/gic_v2.cc
src/dev/arm/gic_v2.hh

index 293c72f1fadf0aa4fd7ed9424f0eea6882c369fc..1e58718f9ab15481d7b2fc3522ab6fc01a8e3328 100644 (file)
@@ -622,6 +622,9 @@ GicV2::writeCpu(ContextID ctx, Addr daddr, uint32_t data)
       case GICC_APR3:
         warn("GIC APRn write ignored because not implemented: %#x\n", daddr);
         break;
+      case GICC_DIR:
+        warn("GIC DIR write ignored because not implemented: %#x\n", daddr);
+        break;
       default:
         panic("Tried to write Gic cpu at offset %#x\n", daddr);
         break;
index 4afad89f6cc558ebfc7e61e26a3665cfcf0aa44a..49465ad56d3119bebf47acf97f2964fcbdaebb1d 100644 (file)
@@ -110,6 +110,7 @@ class GicV2 : public BaseGic, public BaseGicRegisters
         GICC_APR2  = 0xd8, // active priority register 2
         GICC_APR3  = 0xdc, // active priority register 3
         GICC_IIDR  = 0xfc, // cpu interface id register
+        GICC_DIR   = 0x1000, // deactive interrupt register
     };
 
     static const int SGI_MAX = 16;  // Number of Software Gen Interrupts